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.gateway.service.device;
 
import cn.iocoder.yudao.module.iot.core.biz.dto.IotDeviceRespDTO;
 
/**
 * IoT 设备信息 Service 接口
 *
 * @author 芋道源码
 */
public interface IotDeviceService {
 
    /**
     * 根据 productKey 和 deviceName 获取设备信息
     *
     * @param productKey 产品标识
     * @param deviceName 设备名称
     * @return 设备信息
     */
    IotDeviceRespDTO getDeviceFromCache(String productKey, String deviceName);
 
    /**
     * 根据 id 获取设备信息
     *
     * @param id 设备编号
     * @return 设备信息
     */
    IotDeviceRespDTO getDeviceFromCache(Long id);
 
}