Skip to content

Commit 0993040

Browse files
修复
1 parent 17a0247 commit 0993040

3 files changed

Lines changed: 111 additions & 2 deletions

File tree

src/main/java/com/lark/project/service/field/builder/UpdateFieldReq.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.google.gson.annotations.SerializedName;
2020
import com.lark.project.core.annotation.Body;
2121
import com.lark.project.core.annotation.Path;
22+
import com.lark.project.service.field.model.TeamOption;
2223
import com.lark.project.service.field.model.FieldValue;
2324

2425
import java.util.List;
@@ -136,6 +137,16 @@ public Builder authorizedRoles(List<String> authorizedRoles) {
136137
return this;
137138
}
138139

140+
public Builder teamOption(TeamOption teamOption) {
141+
this.body.setTeamOption(teamOption);
142+
return this;
143+
}
144+
145+
public Builder numberConfig(UpdateFieldReqBody.NumberConfig numberConfig) {
146+
this.body.setNumberConfig(numberConfig);
147+
return this;
148+
}
149+
139150
public UpdateFieldReq build() {
140151
return new UpdateFieldReq(this);
141152
}

src/main/java/com/lark/project/service/field/builder/UpdateFieldReqBody.java

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@
1717
package com.lark.project.service.field.builder;
1818

1919
import com.google.gson.annotations.SerializedName;
20-
import com.lark.project.service.field.model.FieldValue;
21-
20+
import com.lark.project.service.field.model.TeamOption;
2221
import java.util.List;
2322

2423

2524
public class UpdateFieldReqBody {
25+
@SerializedName("number_config")
26+
private NumberConfig numberConfig;
27+
28+
@SerializedName("team_option")
29+
private TeamOption teamOption;
30+
2631
@SerializedName("field_name")
2732
private String fieldName;
2833
@SerializedName("field_key")
@@ -46,6 +51,80 @@ public String getFieldName() {
4651
return this.fieldName;
4752
}
4853

54+
public NumberConfig getNumberConfig() {
55+
return this.numberConfig;
56+
}
57+
58+
public void setNumberConfig(NumberConfig numberConfig) {
59+
this.numberConfig = numberConfig;
60+
}
61+
62+
public static class NumberConfig {
63+
@SerializedName("scaling_ratio")
64+
private String scalingRatio;
65+
@SerializedName("display_digits")
66+
private Integer displayDigits;
67+
@SerializedName("symbol_setting")
68+
private SymbolSetting symbolSetting;
69+
70+
public String getScalingRatio() {
71+
return scalingRatio;
72+
}
73+
74+
public void setScalingRatio(String scalingRatio) {
75+
this.scalingRatio = scalingRatio;
76+
}
77+
78+
public Integer getDisplayDigits() {
79+
return displayDigits;
80+
}
81+
82+
public void setDisplayDigits(Integer displayDigits) {
83+
this.displayDigits = displayDigits;
84+
}
85+
86+
public SymbolSetting getSymbolSetting() {
87+
return symbolSetting;
88+
}
89+
90+
public void setSymbolSetting(SymbolSetting symbolSetting) {
91+
this.symbolSetting = symbolSetting;
92+
}
93+
}
94+
95+
public static class SymbolSetting {
96+
@SerializedName("display")
97+
private String display;
98+
@SerializedName("value")
99+
private String value;
100+
@SerializedName("layout")
101+
private String layout;
102+
103+
public String getDisplay() {
104+
return display;
105+
}
106+
107+
public void setDisplay(String display) {
108+
this.display = display;
109+
}
110+
111+
public String getValue() {
112+
return value;
113+
}
114+
115+
public void setValue(String value) {
116+
this.value = value;
117+
}
118+
119+
public String getLayout() {
120+
return layout;
121+
}
122+
123+
public void setLayout(String layout) {
124+
this.layout = layout;
125+
}
126+
}
127+
49128
public void setFieldName(String fieldName) {
50129
this.fieldName = fieldName;
51130
}
@@ -113,4 +192,12 @@ public List<String> getAuthorizedRoles() {
113192
public void setAuthorizedRoles(List<String> authorizedRoles) {
114193
this.authorizedRoles = authorizedRoles;
115194
}
195+
196+
public TeamOption getTeamOption() {
197+
return this.teamOption;
198+
}
199+
200+
public void setTeamOption(TeamOption teamOption) {
201+
this.teamOption = teamOption;
202+
}
116203
}

src/main/java/com/lark/project/service/workitem/model/WorkItemRelation.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class WorkItemRelation {
2828
@SerializedName("name")
2929
private String name;
3030

31+
@SerializedName("relation_type")
32+
private Long relationType;
33+
3134
@SerializedName("disabled")
3235
private Boolean disabled;
3336

@@ -56,6 +59,14 @@ public void setName(String name) {
5659
this.name = name;
5760
}
5861

62+
public Long getRelationType() {
63+
return this.relationType;
64+
}
65+
66+
public void setRelationType(Long relationType) {
67+
this.relationType = relationType;
68+
}
69+
5970
public Boolean getDisabled() {
6071
return this.disabled;
6172
}

0 commit comments

Comments
 (0)