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.framework.common.pojo.PageParam;
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 PageParam {

    @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 String businessOwner;

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

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

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

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

    @Schema(description = "技术负责人3")
    private String 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 String envInfo;

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