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 gyan
 * @desc: 更新入参AlarmConfig
 * @DateTime: 2023/2/1 17:41
 */
@Data
public class AlarmConfigUpdateReqVo {

    @ApiModelProperty(value = "id")
    @NotNull
    private Integer id;

    @ApiModelProperty(value = "上限")
    @DecimalMax(value ="1000000000" ,message = "上限数值最多为10位")
    private BigDecimal upperLimit;

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

    @ApiModelProperty(value = "告警等级")
    private Integer alarmLevel;

    @ApiModelProperty(value = "作用范围 1 集团级别 2电站级别 默认可以为电站级别")
    @NotNull(message = "作用范围不能为空")
    Integer scope;

    @ApiModelProperty(value = "电站id")
    private Integer stationId;

    @ApiModelProperty(value = "设备类型")
    @NotNull(message = "设备类型不能为空")
    private String deviceType;
}
