package org.agt.module.license.controller.admin.license.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 java.util.List;

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

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

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

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

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

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

    @Schema(description = "到期时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expiryDate;

    @Schema(description = "网元激活码列表")
    private List<LicenseDetailVO> neCodeList;

    @Schema(description = "用户数")
    private Integer userNumber;

    @Schema(description = "基站数")
    private Integer ranNumber;

    @Schema(description = "文件URL")
    private String fileUrl;

    @Schema(description = "申请人")
    private Long applicant;

    @Schema(description = "申请时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] applicationTime;

    @Schema(description = "审批人")
    private Long approver;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    private String remark;

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

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

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