File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
client/src/main/java/cn/vika/client/api/model Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 2020
2121import 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 */
2831public 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}
Original file line number Diff line number Diff line change 2020
2121import 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 */
2831public 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}
You can’t perform that action at this time.
0 commit comments