package org.agt.module.license.controller.admin.comment.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 评论 树形Response VO")
@Data
@ExcelIgnoreUnannotated
public class CommentTreeRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4294")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "项目ID", example = "18334")
    @ExcelProperty("项目ID")
    private Long projectId;

    @Schema(description = "用户ID", example = "30248")
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "父ID", example = "20143")
    @ExcelProperty("父ID")
    private Long parentId;

    @Schema(description = "内容")
    @ExcelProperty("内容")
    private String content;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "评论用户")
    private String author;

    @Schema(description = "评论用户头像")
    private String avatar;

    @Schema(description = "回复用户ID", example = "30248")
    private Long replyUserId;

    @Schema(description = "回复用户")
    private String replyUser;

    @Schema(description = "深度")
    private Integer depth;

    @Schema(description = "子列表")
    private List<CommentTreeRespVO> children;
}