package com.xindazhou.business.controller.app.community.comment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "移动端 - 创建评论 Request VO")
@Data
public class CommentCreateReqVO {

    @Schema(description = "帖子ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "帖子ID不能为空")
    private Long postId;

    @Schema(description = "父评论ID，0表示顶级评论", example = "0")
    private Long parentId;

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String content;

}

