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

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

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

/**
 * @author gyan
 * @desc: 新增入参AlarmConfig
 * @DateTime: 2023/2/1 17:33
 */
@Getter
@Setter
@ToString
public class AlarmConfigAddReqVo {

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

    @ApiModelProperty(value = "设备id")
    private Integer deviceTypeId;

    @ApiModelProperty(value = "告警配置id")
    private Integer colDefineId;

    @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电站级")
    private Integer scope;

}
