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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.BooleanEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.agt.framework.excel.core.annotations.DictFormat;
import org.agt.framework.excel.core.convert.DictConvert;

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

@Schema(description = "管理后台 - 报表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ReportProgressProjectRespVO {

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

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

    @Schema(description = "客户名称")
    @ExcelProperty("客户名称")
    private String customerName;

    @Schema(description = "项目名称", example = "18334")
    @ExcelProperty("项目名称")
    private String projectName;

    @Schema(description = "项目状态", example = "18334")
    @ExcelProperty(value = "项目状态", converter = DictConvert.class)
    @DictFormat("lic_project_status")
    private Integer status;

    @Schema(description = "商务状态", example = "18334")
    @ExcelProperty(value = "商务状态", converter = DictConvert.class)
    @DictFormat("lic_business_status")
    private Integer businessStatus;

    @Schema(description = "serialNo", example = "随便")
    @ExcelProperty("SN")
    private String serialNo;

    @Schema(description = "业务负责人")
    @ExcelProperty("业务负责人")
    private String businessOwnerName;

    @Schema(description = "技术负责人1")
    @ExcelProperty("技术负责人1")
    private String technicalOwnerAName;

    @Schema(description = "技术负责人2")
    @ExcelProperty("技术负责人2")
    private String technicalOwnerBName;

    @Schema(description = "项目开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("项目开始时间")
    private LocalDateTime startTime;

    @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 author;

    @Schema(description = "内容")
    @ExcelProperty("进展记录")
    @ContentStyle(wrapped = BooleanEnum.TRUE)
    private String content;

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

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

    @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<ReportProgressProjectRespVO> children;
}