package cn.iocoder.yudao.module.pms.controller.admin.alarm.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 告警设置新增/修改 Request VO")
@Data
public class IotAlarmSettingSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "32172")
    private Long id;

    @Schema(description = "分类id", example = "20512")
    private Long classifyId;

    @Schema(description = "分类名称", example = "芋艿")
    private String classifyName;

    @Schema(description = "设备id", example = "4633")
    private Long deviceId;

    @Schema(description = "设备名称", example = "芋艿")
    private String deviceName;

    @Schema(description = "上限", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "上限不能为空")
    private String maxValue;

    @Schema(description = "下限", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "下限不能为空")
    private String minValue;

    @Schema(description = "告警属性")
    @NotEmpty(message = "告警属性不能为空")
    private String alarmProperty;

    @Schema(description = "属性标识")
    @NotEmpty(message = "属性标识不能为空")
    private String propertyCode;
}
