package cc.iotkit.manager.dto.vo.category.vo;

import cc.iotkit.model.iccid.DIccidRecordDO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

//@Schema(description = "管理后台 - 物联网卡 Response VO")
@ApiModel(value = "DIccidRecordRespVO")
@Data
@AutoMapper(target = DIccidRecordDO.class)
public class DIccidRecordRespVO implements Serializable {
 private static final long serialVersionUID = -1L;

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

    //@Schema(description = "厂商编号|合作商编号", example = "张三")
    @ExcelProperty("厂商编号|合作商编号")
    private String userCode;

    //@Schema(description = "物联网卡号", example = "6236")
    @ExcelProperty("物联网卡号")
    private String iccid;

   // @Schema(description = "物联网卡运营商", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("物联网卡运营商")
    private Integer simType;

    //@Schema(description = "发货日期")
    @ExcelProperty("发货日期")
    private String dateline;

    //@Schema(description = "状态(0,已授权,1未授权,2未支付)")
    @ExcelProperty("状态")
    private Integer state;

    //@Schema(description = "订单id", example = "7866")
    @ExcelProperty("订单id")
    private String orderId;

   // @Schema(description = "授权码")
    @ExcelProperty("授权码")
    private String authorizationCode;

   // @Schema(description = "物联网卡来源0-其他 1-官方")
    @ExcelProperty("物联网卡来源0-其他 1-官方")
    private Integer source;

    //@Schema(description = "厂商名称|合作商名称")
    @ExcelProperty("厂商名称|合作商名称")
    private String user;

   // @Schema(description = "imei")
    @ExcelProperty("imei")
    private String imei;

   // @Schema(description = "创建时间")
   // @ExcelProperty("创建时间")
   // private LocalDateTime createTime;
   // @Schema(description = "逻辑删除；0：未删除(默认)；1：已删除")
    private Integer deleted;
   // @Schema(description = "有效天数")
    @ExcelProperty("有效天数")
    private Integer validDays;
   @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
   @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expirationTime;
}