package cn.iocoder.yudao.module.iot.service.devicepointrules;

import java.util.*;
import javax.validation.*;
import cn.iocoder.yudao.module.iot.controller.admin.devicepointrules.vo.*;
import cn.iocoder.yudao.module.iot.dal.dataobject.devicepointrules.DevicePointRulesDO;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;

/**
 * 点位规则 Service 接口
 *
 * @author 必硕科技
 */
public interface DevicePointRulesService {

    /**
     * 创建点位规则
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createDevicePointRules(@Valid DevicePointRulesSaveReqVO createReqVO);

    /**
     * 更新点位规则
     *
     * @param updateReqVO 更新信息
     */
    void updateDevicePointRules(@Valid DevicePointRulesSaveReqVO updateReqVO);

    /**
     * 删除点位规则
     *
     * @param id 编号
     */
    void deleteDevicePointRules(Long id);

    /**
     * 获得点位规则
     *
     * @param id 编号
     * @return 点位规则
     */
    DevicePointRulesDO getDevicePointRules(Long id);

    /**
     * 获得点位规则分页
     *
     * @param pageReqVO 分页查询
     * @return 点位规则分页
     */
    PageResult<DevicePointRulesDO> getDevicePointRulesPage(DevicePointRulesPageReqVO pageReqVO);

    List<DevicePointRulesDO> getList(Long id);
}