package cn.iocoder.yudao.module.pms.controller.admin.qhse.cert.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 计量器具-证书管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotMeasureCertRespVO {

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

    @Schema(description = "证书类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("证书类型")
    private String type;

    @Schema(description = "证书类别", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("证书类别")
    private String classify;

    @Schema(description = "证书所属公司/个人", requiredMode = Schema.RequiredMode.REQUIRED)
//    @ExcelProperty("证书所属公司/个人")
    private String certBelong;
    @Schema(description = "证件名称")
    private String certName;

    @Schema(description = "证书颁发机构")
    @ExcelProperty("证书颁发机构")
    private String certOrg;

    @Schema(description = "证书标准")
    @ExcelProperty("证书标准")
    private String certStandard;

    @Schema(description = "证书颁发时间")
    @ExcelProperty("证书颁发时间")
    private LocalDateTime certIssue;

    @Schema(description = "证书有效期")
    @ExcelProperty("证书有效期")
    private LocalDateTime certExpire;

    @Schema(description = "到期前提醒")
    @ExcelProperty("到期前提醒")
    private Integer noticeBefore;

    @Schema(description = "证书图片上传")
    @ExcelProperty("证书图片")
    private String certPic;

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "部门id", example = "29429")
//    @ExcelProperty("部门id")
    private Long deptId;
    @Schema(description = "所在部门")
    @ExcelProperty("所在部门")
    private String deptName;
    /**
     * 用户id
     */
    private Long userId;

    @Schema(description = "用户名称")
    @ExcelProperty("用户名称")
    private String userName;

    @Schema(description = "是否到期")
    private Boolean expired;

    @Schema(description = "是否60天预警")
    private Boolean alertWarn;

    @Schema(description = "培训周期")
    private String trainCycle;
}