package com.ho.flow.vo.req.AlarmConfig;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author fancl
 * @desc: 包含遥测值上下限的对象
 * @date 2023/2/24
 */
@Data
public class MeasureVo {


    @ApiModelProperty(value = "id")
    Integer id;
    /**
     * 上限
     */
    @ApiModelProperty(value = "上限")
    @DecimalMax(value ="1000000000" ,message = "上限数值最多为10位")
    @NotNull(message = "上限数值不能为空")
    private BigDecimal upperLimit;

    /**
     * 下限
     */
    @ApiModelProperty(value = "下限")
    @NotNull(message = "下限数值不能为空")
    @DecimalMin(value ="-1000000000" ,message = "下限数值最小不能超过10位")
    private BigDecimal lowerLimit;
}
