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

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

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

@Schema(description = "管理后台 - 计量器具-使用记录新增/修改 Request VO")
@Data
public class IotMeasureRecordSaveReqVO {

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

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

    @Schema(description = "使用日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "使用日期不能为空")
    private String useDate;

    @Schema(description = "使用原因", example = "不好")
    private String useReason;

    @Schema(description = "计量项目")
    private String measureProject;

    @Schema(description = "使用人")
    private String usePerson;

    @Schema(description = "使用人id", example = "21338")
    private Long userId;

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

}