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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 计量器具-证书管理新增/修改 Request VO")
@Data
public class IotMeasureCertSaveReqVO {

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

    @Schema(description = "证书类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "证书类型不能为空")
    private String type;

    @Schema(description = "证书类别", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "证书类别不能为空")
    private String classify;

    @Schema(description = "证书所属公司/个人", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "证书所属公司/个人不能为空")
    private String certBelong;

    @Schema(description = "证件名称")
    private String certName;

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

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

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

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

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

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

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

    @Schema(description = "部门id", example = "29429")
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;
    private String userName;

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