reactor:【IoT 物联网】优化设备缓存的加载逻辑

This commit is contained in:
YunaiV
2025-06-11 20:35:09 +08:00
parent 66b42367cb
commit 33fed79820
28 changed files with 486 additions and 684 deletions

View File

@@ -2,8 +2,8 @@ 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.IotDeviceAuthReqDTO;
import cn.iocoder.yudao.module.iot.core.biz.dto.IotDeviceInfoReqDTO;
import cn.iocoder.yudao.module.iot.core.biz.dto.IotDeviceInfoRespDTO;
import cn.iocoder.yudao.module.iot.core.biz.dto.IotDeviceGetReqDTO;
import cn.iocoder.yudao.module.iot.core.biz.dto.IotDeviceRespDTO;
/**
* IoT 设备通用 API
@@ -26,6 +26,6 @@ public interface IotDeviceCommonApi {
* @param infoReqDTO 设备信息请求
* @return 设备信息
*/
CommonResult<IotDeviceInfoRespDTO> getDeviceInfo(IotDeviceInfoReqDTO infoReqDTO);
CommonResult<IotDeviceRespDTO> getDevice(IotDeviceGetReqDTO infoReqDTO);
}

View File

@@ -1,6 +1,5 @@
package cn.iocoder.yudao.module.iot.core.biz.dto;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
/**
@@ -9,18 +8,20 @@ import lombok.Data;
* @author 芋道源码
*/
@Data
public class IotDeviceInfoReqDTO {
public class IotDeviceGetReqDTO {
/**
* 设备编号
*/
private Long id;
/**
* 产品标识
*/
@NotBlank(message = "产品标识不能为空")
private String productKey;
/**
* 设备名称
*/
@NotBlank(message = "设备名称不能为空")
private String deviceName;
}

View File

@@ -8,31 +8,34 @@ import lombok.Data;
* @author 芋道源码
*/
@Data
public class IotDeviceInfoRespDTO {
public class IotDeviceRespDTO {
/**
* 设备编号
*/
private Long deviceId;
private Long id;
/**
* 产品标识
*/
private String productKey;
/**
* 设备名称
*/
private String deviceName;
/**
* 设备密钥
*/
private String deviceKey;
/**
* 租户编号
*/
private Long tenantId;
// ========== 产品相关字段 ==========
/**
* 产品编号
*/
private Long productId;
/**
* 编解码器类型
*/
private String codecType;
}