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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import org.agt.framework.excel.core.annotations.DictFormat;
import org.agt.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - License Response VO")
@Data
@ExcelIgnoreUnannotated
public class LicenseRespVO {

    @Schema(description = "客户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31667")
    @ExcelProperty("客户ID")
    private Long customerId;

    @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2496")
    @ExcelProperty("项目ID")
    private Long projectId;

    @Schema(description = "sn", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("sn")
    private String sn;

    @Schema(description = "到期时间")
    @ExcelProperty("到期时间")
    private LocalDateTime expirationTime;

    @Schema(description = "网元开关")
    @ExcelProperty(value = "网元开关", converter = DictConvert.class)
    @DictFormat("lic_ne_switch") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String neSwitch;

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

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

    @Schema(description = "激活码")
    @ExcelProperty("激活码")
    private String activationCode;

    @Schema(description = "License内容")
    @ExcelProperty("License内容")
    private String licenseContent;

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

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

    @Schema(description = "状态", example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("lic_license_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

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

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

}