package com.sckw.slope.detection.model.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author lfdc
 * @description 阈值配置dto
 * @date 2023-11-03 08:11:48
 */
@Data
public class ThresholdConfigurationDTO implements Serializable {

    /**
     * projectId : 项目id
     * deviceId : 设备ID
     * itemName : 监测项（字典value）
     * phones : 联系电话，多个用分隔符
     * threshold : [{"level":"等级","max":"阈值配置最大值","min":"阈值配置最小值"}]
     */
    @NotBlank(message = "项目id不能为空")
    private String projectId;
    @NotBlank(message = "设备id不能为空")
    private String deviceId;
    @NotBlank(message = "监测项不能为空")
    private String itemName;
//    @NotBlank(message = "联系电话不能为空")
    private String phones;
    @NotNull
    private List<ThresholdBean> threshold;
}

