package com.luojia_channel.modules.post.dto.req;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "评论保存DTO")
public class CommentSaveDTO {
    @Schema(
            description = "评论id"
    )
    private Long id;

    @Schema(
            description = "评论内容",
            required = true,
            minLength = 1,
            maxLength = 500,
            example = "+3"
    )
    private String content;

    @Schema(
            description = "评论的帖子id"
    )
    private Long postId;

    @Schema(
            description = "该评论的父评论id，若不是回复则传入空值"
    )
    private Long parentCommentId;

}
