package org.agt.module.license.controller.admin.project.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.LocalDateTime;

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

@Schema(description = "管理后台 - 项目分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProjectPageReqVO extends CommonExportReqVO {

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

    @Schema(description = "项目编号", example = "2000")
    private String code;

    @Schema(description = "合同编号", example = "1111")
    private String contractCode;

    @Schema(description = "商务状态", example = "2")
    private Integer businessStatus;

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

    @Schema(description = "客户对接人")
    private String customerOwner;

    @Schema(description = "技术负责人")
    private Long technicalOwner;

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

    @Schema(description = "技术负责人2")
    private Long technicalOwnerB;

    @Schema(description = "技术负责人3")
    private Long technicalOwnerC;

    @Schema(description = "项目开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "项目结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

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

    @Schema(description = "环境信息")
    private Integer envInfo;

    @Schema(description = "软件版本")
    private Integer softwareVersion;

    @Schema(description = "操作系统平台")
    private Integer operatingSystem;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "sn")
    private String serialNo;

    @Schema(description = "客户ID", example = "111")
    private Long customerId;

    @Schema(description = "排列字段")
    private String sortField;

    @Schema(description = "排列顺序")
    private String sortOrder;
}