package cn.iocoder.yudao.module.iot.controller.admin.formula.vo;

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

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 计算公式新增/修改 Request VO")
@Data
public class FormulaSaveReqVO {

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

    @Schema(description = "公式名称", example = "王五")
    private String name;

    @Schema(description = "公式编号")
    private String formulaCode;

    @Schema(description = "公式")
    private String formula;

    @Schema(description = "结果类型（产量，电耗，浆耗，水耗，气耗，参数）", example = "1")
    private String resultType;
    @Schema(description = "单位")
    private String dataUnit;

    @Schema(description = "机台ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12374")
    @NotNull(message = "机台ID不能为空")
    private Long machineId;

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)

    private Boolean isEnable;

}