2026-06-30 24681c81c09022f584a57006f2534b5f74723414
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package cn.iocoder.yudao.module.iot.controller.admin.alert.vo.config;
 
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.util.List;
 
@Schema(description = "管理后台 - IoT 告警配置新增/修改 Request VO")
@Data
public class IotAlertConfigSaveReqVO {
 
    @Schema(description = "配置编号", example = "3566")
    private Long id;
 
    @Schema(description = "配置名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "配置名称不能为空")
    private String name;
 
    @Schema(description = "配置描述", example = "你猜")
    private String description;
 
    @Schema(description = "告警级别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "告警级别不能为空")
    private Integer level;
 
    @Schema(description = "配置状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "配置状态不能为空")
    @InEnum(CommonStatusEnum.class)
    private Integer status;
 
    @Schema(description = "关联的场景联动规则编号数组")
    @NotEmpty(message = "关联的场景联动规则编号数组不能为空")
    private List<Long> sceneRuleIds;
 
    @Schema(description = "接收的用户编号数组")
    @NotEmpty(message = "接收的用户编号数组不能为空")
    private List<Long> receiveUserIds;
 
    @Schema(description = "接收的类型数组")
    @NotEmpty(message = "接收的类型数组不能为空")
    private List<Integer> receiveTypes;
 
    @Schema(description = "短信模板编号", example = "iot_alert_sms")
    private String smsTemplateCode;
 
    @Schema(description = "邮件模板编号", example = "iot_alert_mail")
    private String mailTemplateCode;
 
    @Schema(description = "站内信模板编号", example = "iot_alert_notify")
    private String notifyTemplateCode;
}