File tree Expand file tree Collapse file tree 4 files changed +42
-2
lines changed
src/main/java/com/lark/project/service/comment/builder Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 2020import com .lark .project .core .annotation .Body ;
2121import com .lark .project .core .annotation .Path ;
2222
23+ import java .util .List ;
24+
2325public class CreateCommentReq {
2426 @ Path
2527 @ SerializedName ("project_key" )
@@ -111,9 +113,14 @@ public Builder content(String content) {
111113 return this ;
112114 }
113115
116+ public Builder richText (List <Object > richText ) {
117+ this .body .setRichText (richText );
118+ return this ;
119+ }
120+
114121 public CreateCommentReq build () {
115122 return new CreateCommentReq (this );
116123 }
117124
118125 }
119- }
126+ }
Original file line number Diff line number Diff line change 1818
1919import com .google .gson .annotations .SerializedName ;
2020
21+ import java .util .List ;
22+
2123
2224public class CreateCommentReqBody {
2325 @ SerializedName ("content" )
2426 private String content ;
2527
28+ @ SerializedName ("rich_text" )
29+ private List <Object > richText ;
30+
2631 public String getContent () {
2732 return this .content ;
2833 }
2934
3035 public void setContent (String content ) {
3136 this .content = content ;
3237 }
38+
39+ public List <Object > getRichText () {
40+ return this .richText ;
41+ }
42+
43+ public void setRichText (List <Object > richText ) {
44+ this .richText = richText ;
45+ }
3346}
Original file line number Diff line number Diff line change 2020import com .lark .project .core .annotation .Body ;
2121import com .lark .project .core .annotation .Path ;
2222
23+ import java .util .List ;
24+
2325public class UpdateCommentReq {
2426 @ Path
2527 @ SerializedName ("project_key" )
@@ -129,9 +131,14 @@ public Builder content(String content) {
129131 return this ;
130132 }
131133
134+ public Builder richText (List <Object > richText ) {
135+ this .body .setRichText (richText );
136+ return this ;
137+ }
138+
132139 public UpdateCommentReq build () {
133140 return new UpdateCommentReq (this );
134141 }
135142
136143 }
137- }
144+ }
Original file line number Diff line number Diff line change 1818
1919import com .google .gson .annotations .SerializedName ;
2020
21+ import java .util .List ;
22+
2123
2224public class UpdateCommentReqBody {
2325 @ SerializedName ("content" )
2426 private String content ;
2527
28+ @ SerializedName ("rich_text" )
29+ private List <Object > richText ;
30+
2631 public String getContent () {
2732 return this .content ;
2833 }
2934
3035 public void setContent (String content ) {
3136 this .content = content ;
3237 }
38+
39+ public List <Object > getRichText () {
40+ return this .richText ;
41+ }
42+
43+ public void setRichText (List <Object > richText ) {
44+ this .richText = richText ;
45+ }
3346}
You can’t perform that action at this time.
0 commit comments