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

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

@Schema(description = "管理后台 - 能耗类型新增/修改 Request VO")
@Data
public class EnergyTypeSaveReqVO {

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

    @Schema(description = "能耗类型编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "能耗类型编码不能为空")
    private String code;

    @Schema(description = "能耗类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "能耗类型名称不能为空")
    private String name;

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

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

    @Schema(description = "备注", example = "随便")
    private String remark;


}