package cn.iocoder.yudao.module.mes.controller.admin.dvsubject.vo;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 维保项目新增/修改 Request VO")
@Data
public class DvSubjectSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24679")
    private Long id;

    @Schema(description = "项目编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "项目编码不能为空")
    private String subjectCode;

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "项目名称不能为空")
    private String subjectName;

    @Schema(description = "项目类型", example = "2")
    private String subjectType;

    @Schema(description = "项目内容", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "项目内容不能为空")
    private String subjectContent;

    @Schema(description = "标准")
    private String subjectStandard;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;

    @Schema(description = "检验方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检验方式")
    private String inspectionMethod;

    @Schema(description = "值类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "值类型")
    private String valueType;

    @Schema(description = "判定基准")
//    @NotEmpty(message = "判定基准")
    private String judgmentCriteria;

    /**
     * 上限值
     */
    @Schema(description = "上限值")
    private Double upperVal;

    /**
     * 下限值
     */
    @Schema(description = "下限值")
    private Double lowerVal;

}