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
27
28
29
package cn.iocoder.yudao.module.iot.core.topic.topo;
 
import cn.iocoder.yudao.module.iot.core.biz.dto.IotDeviceAuthReqDTO;
import cn.iocoder.yudao.module.iot.core.enums.IotDeviceMessageMethodEnum;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
 
import java.util.List;
 
/**
 * IoT 设备拓扑添加 Request DTO
 * <p>
 * 用于 {@link IotDeviceMessageMethodEnum#TOPO_ADD} 消息的 params 参数
 *
 * @author 芋道源码
 * @see <a href="http://help.aliyun.com/zh/marketplace/add-topological-relationship">阿里云 - 添加拓扑关系</a>
 */
@Data
public class IotDeviceTopoAddReqDTO {
 
    /**
     * 子设备认证信息列表
     * <p>
     * 复用 {@link IotDeviceAuthReqDTO},包含 clientId、username、password
     */
    @NotEmpty(message = "子设备认证信息列表不能为空")
    private List<IotDeviceAuthReqDTO> subDevices;
 
}