2026-06-24 f4bd1f3c89d906131495a0aca5aaf82966378510
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
package cn.iocoder.yudao.module.iot.controller.admin.device.vo.message;
 
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.iot.core.enums.IotDeviceMessageMethodEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
@Schema(description = "管理后台 - IoT 设备消息发送 Request VO") // 属性上报、事件上报、状态变更等
@Data
public class IotDeviceMessageSendReqVO {
 
    @Schema(description = "请求方法", requiredMode = Schema.RequiredMode.REQUIRED, example = "report")
    @NotEmpty(message = "请求方法不能为空")
    @InEnum(IotDeviceMessageMethodEnum.class)
    private String method;
 
    @Schema(description = "请求参数")
    private Object params; // 例如说:属性上报的 properties、事件上报的 params
 
    @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "177")
    @NotNull(message = "设备编号不能为空")
    private Long deviceId;
 
}