package cn.iocoder.yudao.module.iot.core.biz;
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
import cn.iocoder.yudao.module.iot.core.biz.dto.*;
|
import cn.iocoder.yudao.module.iot.core.topic.auth.IotDeviceRegisterReqDTO;
|
import cn.iocoder.yudao.module.iot.core.topic.auth.IotDeviceRegisterRespDTO;
|
import cn.iocoder.yudao.module.iot.core.topic.auth.IotSubDeviceRegisterRespDTO;
|
|
import java.util.List;
|
|
/**
|
* IoT 设备通用 API
|
*
|
* @author haohao
|
*/
|
public interface IotDeviceCommonApi {
|
|
/**
|
* 设备认证
|
*
|
* @param authReqDTO 认证请求
|
* @return 认证结果
|
*/
|
CommonResult<Boolean> authDevice(IotDeviceAuthReqDTO authReqDTO);
|
|
/**
|
* 获取设备信息
|
*
|
* @param infoReqDTO 设备信息请求
|
* @return 设备信息
|
*/
|
CommonResult<IotDeviceRespDTO> getDevice(IotDeviceGetReqDTO infoReqDTO);
|
|
/**
|
* 直连/网关设备动态注册(一型一密)
|
*
|
* @param reqDTO 动态注册请求
|
* @return 注册结果(包含 DeviceSecret)
|
*/
|
CommonResult<IotDeviceRegisterRespDTO> registerDevice(IotDeviceRegisterReqDTO reqDTO);
|
|
/**
|
* 网关子设备动态注册(网关代理转发)
|
*
|
* @param reqDTO 子设备注册请求(包含网关标识和子设备列表)
|
* @return 注册结果列表
|
*/
|
CommonResult<List<IotSubDeviceRegisterRespDTO>> registerSubDevices(IotSubDeviceRegisterFullReqDTO reqDTO);
|
|
/**
|
* 获取 Modbus 设备配置列表
|
*
|
* @param listReqDTO 查询参数
|
* @return Modbus 设备配置列表
|
*/
|
CommonResult<List<IotModbusDeviceConfigRespDTO>> getModbusDeviceConfigList(IotModbusDeviceConfigListReqDTO listReqDTO);
|
|
}
|