package cn.iocoder.yudao.module.pms.controller.admin.qhse.measure.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 = "管理后台 - 计量器具-检测校准明细新增/修改 Request VO")
@Data
public class IotMeasureDetectSaveReqVO {

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

    @Schema(description = "计量器具id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29030")
    @NotNull(message = "计量器具id不能为空")
    private Long measureId;

    @Schema(description = "检测/校准日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测/校准日期不能为空")
    private String detectDate;

    @Schema(description = "检测/校准机构", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测/校准机构不能为空")
    private String detectOrg;

    @Schema(description = "检测/校准内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测/校准内容不能为空")
    private String detectContent;

    @Schema(description = "检测/校准有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检测/校准有效期不能为空")
    private LocalDateTime validityPeriod;

    @Schema(description = "校准金额")
    private Double detectAmount;

    @Schema(description = "部门id", example = "27536")
    private Long deptId;
    @Schema(description = "证书编码")
    private String measureCertNo;
    @Schema(description = "检测/检验标准")
    @NotEmpty(message = "检测/检验标准不能为空")
    private String detectStandard;

    @Schema(description = "检测附件")
    private String file;

    @Schema(description = "精度")
    private String precisions;

    @Schema(description = "监测周期")
    private String detectCycle;
}