package com.ruoyi.controller.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author liwenlong
 * @date 2023/4/17 14:17
 */
@Data
public class VoteCommentReq {


    @NotNull(message = "投票id不能为空")
    @ApiModelProperty(value = "投票id", required = true)
    private Long voteId;

    @ApiModelProperty(value = "上级评论id，如果没有上级评论，(不传值默认0，评论帖子)")
    private Long parentId = 0L;

    @ApiModelProperty(value = "评论内容", required = true)
    @NotNull(message = "评论内容不能为空")
    private String content;

    @ApiModelProperty("评论图片")
    private String image;
}
