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;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 变量记录新增/修改 Request VO")
@Data
public class FormulaRecordSaveReqVO {

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

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

    @Schema(description = "机台", example = "李四")
    private String machineName;

    @Schema(description = "用户id", example = "3807")
    private Long workerId;

    @Schema(description = "用户", example = "李四")
    private String workerName;

    @Schema(description = "类型", example = "2")
    private String resultType;

    @Schema(description = "公式ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24943")
    @NotNull(message = "公式ID不能为空")
    private Long formulaId;

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

    @Schema(description = "值")
    private BigDecimal dataValue;

    @Schema(description = "单位")
    private String dataUnit;
    /**
     * 采集时间
     */
    @Schema(description = "采集时间")
    private LocalDateTime deviceDataTime;
}