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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package cn.iocoder.yudao.module.iot.service.rule.data;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.iot.controller.admin.rule.vo.data.rule.IotDataRulePageReqVO;
import cn.iocoder.yudao.module.iot.controller.admin.rule.vo.data.rule.IotDataRuleSaveReqVO;
import cn.iocoder.yudao.module.iot.core.mq.message.IotDeviceMessage;
import cn.iocoder.yudao.module.iot.dal.dataobject.rule.IotDataRuleDO;
import jakarta.validation.Valid;
 
import java.util.List;
 
/**
 * IoT 数据流转规则 Service 接口
 *
 * @author 芋道源码
 */
public interface IotDataRuleService {
 
    /**
     * 创建数据流转规则
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createDataRule(@Valid IotDataRuleSaveReqVO createReqVO);
 
    /**
     * 更新数据流转规则
     *
     * @param updateReqVO 更新信息
     */
    void updateDataRule(@Valid IotDataRuleSaveReqVO updateReqVO);
 
    /**
     * 删除数据流转规则
     *
     * @param id 编号
     */
    void deleteDataRule(Long id);
 
    /**
     * 获得数据流转规则
     *
     * @param id 编号
     * @return 数据流转规则
     */
    IotDataRuleDO getDataRule(Long id);
 
    /**
     * 获得数据流转规则分页
     *
     * @param pageReqVO 分页查询
     * @return 数据流转规则分页
     */
    PageResult<IotDataRuleDO> getDataRulePage(IotDataRulePageReqVO pageReqVO);
 
    /**
     * 根据数据目的编号,获得数据流转规则列表
     *
     * @param sinkId 数据目的编号
     * @return 是否被使用
     */
    List<IotDataRuleDO> getDataRuleListBySinkId(Long sinkId);
 
    /**
     * 执行数据流转规则
     *
     * @param message 消息
     */
    void executeDataRule(IotDeviceMessage message);
 
}