Commit 2814329d authored by 刘基明's avatar 刘基明

接口修改

parent 154269ef
package com.tanpu.community.api.beans.req.comment; package com.tanpu.community.api.beans.req.comment;
import com.tanpu.community.api.beans.req.theme.ThemeContentReq;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -12,6 +11,7 @@ import javax.validation.constraints.NotEmpty; ...@@ -12,6 +11,7 @@ import javax.validation.constraints.NotEmpty;
public class CreateCommentReq { public class CreateCommentReq {
@NotEmpty(message = "主题id不能为空") @NotEmpty(message = "主题id不能为空")
@ApiModelProperty(value = "主题Id")
private String themeId; private String themeId;
@ApiModelProperty(value = "一级评论id(对主题的一级评论,此项为空)") @ApiModelProperty(value = "一级评论id(对主题的一级评论,此项为空)")
...@@ -21,8 +21,7 @@ public class CreateCommentReq { ...@@ -21,8 +21,7 @@ public class CreateCommentReq {
private String replyId; private String replyId;
@NotEmpty(message = "评论内容不能为空") @NotEmpty(message = "评论内容不能为空")
private ThemeContentReq comment; @ApiModelProperty(value = "评论内容")
private String comment;
@ApiModelProperty(value = "是否同步到专栏")
private boolean copyToNewsFeed;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment