Skip to content

Commit c46c3dc

Browse files
评论的
1 parent 17a0247 commit c46c3dc

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

src/main/java/com/lark/project/service/comment/builder/CreateCommentReq.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import com.lark.project.core.annotation.Body;
2121
import com.lark.project.core.annotation.Path;
2222

23+
import java.util.List;
24+
2325
public 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+
}

src/main/java/com/lark/project/service/comment/builder/CreateCommentReqBody.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,29 @@
1818

1919
import com.google.gson.annotations.SerializedName;
2020

21+
import java.util.List;
22+
2123

2224
public 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
}

src/main/java/com/lark/project/service/comment/builder/UpdateCommentReq.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import com.lark.project.core.annotation.Body;
2121
import com.lark.project.core.annotation.Path;
2222

23+
import java.util.List;
24+
2325
public 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+
}

src/main/java/com/lark/project/service/comment/builder/UpdateCommentReqBody.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,29 @@
1818

1919
import com.google.gson.annotations.SerializedName;
2020

21+
import java.util.List;
22+
2123

2224
public 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
}

0 commit comments

Comments
 (0)