Skip to content

Commit 08691b9

Browse files
committed
request model add fieldKey field
1 parent 599c3cf commit 08691b9

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

client/src/main/java/cn/vika/client/api/model/CreateRecordRequest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,29 @@
2020

2121
import java.util.List;
2222

23+
import com.fasterxml.jackson.annotation.JsonInclude;
24+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
25+
2326
/**
2427
* Create Record Model
2528
* @author Shawn Deng
2629
* @date 2021-02-19 15:41:12
2730
*/
2831
public class CreateRecordRequest {
2932

33+
@JsonInclude(Include.NON_NULL)
34+
private FieldKey fieldKey;
35+
3036
private List<RecordMap> records;
3137

38+
public FieldKey getFieldKey() {
39+
return fieldKey;
40+
}
41+
42+
public void setFieldKey(FieldKey fieldKey) {
43+
this.fieldKey = fieldKey;
44+
}
45+
3246
public List<RecordMap> getRecords() {
3347
return records;
3448
}
@@ -41,4 +55,9 @@ public CreateRecordRequest withRecords(List<RecordMap> records) {
4155
this.records = records;
4256
return this;
4357
}
58+
59+
public CreateRecordRequest withFieldKey(FieldKey fieldKey) {
60+
this.fieldKey = fieldKey;
61+
return this;
62+
}
4463
}

client/src/main/java/cn/vika/client/api/model/UpdateRecordRequest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,29 @@
2020

2121
import java.util.List;
2222

23+
import com.fasterxml.jackson.annotation.JsonInclude;
24+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
25+
2326
/**
2427
* Create Record Model
2528
* @author Shawn Deng
2629
* @date 2021-02-19 15:41:12
2730
*/
2831
public class UpdateRecordRequest {
2932

33+
@JsonInclude(Include.NON_NULL)
34+
private FieldKey fieldKey;
35+
3036
private List<UpdateRecord> records;
3137

38+
public FieldKey getFieldKey() {
39+
return fieldKey;
40+
}
41+
42+
public void setFieldKey(FieldKey fieldKey) {
43+
this.fieldKey = fieldKey;
44+
}
45+
3246
public List<UpdateRecord> getRecords() {
3347
return records;
3448
}
@@ -41,4 +55,9 @@ public UpdateRecordRequest withRecords(List<UpdateRecord> records) {
4155
this.records = records;
4256
return this;
4357
}
58+
59+
public UpdateRecordRequest withFieldKey(FieldKey fieldKey) {
60+
this.fieldKey = fieldKey;
61+
return this;
62+
}
4463
}

0 commit comments

Comments
 (0)