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


import cc.iotkit.common.api.BaseDto;
import cc.iotkit.model.iccid.DIccidRecordDO;
import cc.iotkit.model.rule.TaskInfo;
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.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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


//@Schema(description = "管理后台 - 物联网卡分页 Request VO")
@ApiModel(value = "DIccidRecordPageReqVO")
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DIccidRecordDO.class, reverseConvertGenerate = false)
@ToString(callSuper = true)
public class DIccidRecordPageReqVO extends BaseDto implements Serializable {
    private static final long serialVersionUID = -1L;

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

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

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

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

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

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

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

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

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

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

   // @Schema(description = "创建时间")
   // @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
   // private LocalDateTime[] createTime;
   // @Schema(description = "逻辑删除；0：未删除(默认)；1：已删除")
    private Integer deleted;
   // @Schema(description = "有效天数")
    @ExcelProperty("有效天数")
    private Integer validDays;

   // @Schema(description = "到期时间")
   // @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
   @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
   @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expirationTime;
}