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

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

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

@Schema(description = "管理后台 - QHSE应急物资检测证书新增/修改 Request VO")
@Data
public class QhseEmergencyCertSaveReqVO {

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

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12399")
    @NotNull(message = "设备id不能为空")
    private Long emergencyId;

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

    @Schema(description = "设备名称", example = "王五")
    private String emergencyName;

    @Schema(description = "证书编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "证书编号不能为空")
    private String certNo;

    @Schema(description = "检测单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测单位不能为空")
    private String certOrg;

    @Schema(description = "检测日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检测日期不能为空")
    private LocalDateTime certTime;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期不能为空")
    private LocalDateTime certExpire;

    @Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "附件不能为空")
    private String file;

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

    @Schema(description = "部门名称", example = "赵六")
    private String deptName;

    @Schema(description = "过期")
    private Boolean expired;
    @Schema(description = "预警")
    private Boolean alertWarn;
}