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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.agt.module.license.controller.admin.common.vo.CommonExportReqVO;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static org.agt.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static org.agt.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 报表 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ReportProgressProjectReqVO extends CommonExportReqVO {

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

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

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

    @Schema(description = "项目状态", example = "18334")
    private Integer status;

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

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

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

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

    @Schema(description = "客户id")
    private Long customerId;

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

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

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

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

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] updateTime;

    @Schema(description = "更新时间-开始")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate updateTimeStart;

    @Schema(description = "更新时间-结束")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate updateTimeEnd;

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

    @Schema(description = "评论用户ID")
    private Long authorId;

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

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

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