liusuyi
2024-10-10 38f29e38fcc668171dc05c53d40a36b895c86102
ard-work/src/main/java/com/ruoyi/device/channel/service/IArdChannelService.java
@@ -1,19 +1,20 @@
package com.ruoyi.device.channel.service;
import java.util.List;
import com.ruoyi.device.camera.domain.ArdCameras;
import com.ruoyi.device.channel.domain.ArdChannel;
/**
 * 通道管理Service接口
 *
 *
 * @author ard
 * @date 2023-08-19
 */
public interface IArdChannelService
{
public interface IArdChannelService {
    /**
     * 查询通道管理
     *
     *
     * @param id 通道管理主键
     * @return 通道管理
     */
@@ -21,7 +22,7 @@
    /**
     * 查询通道管理列表
     *
     *
     * @param ardChannel 通道管理
     * @return 通道管理集合
     */
@@ -29,7 +30,7 @@
    /**
     * 新增通道管理
     *
     *
     * @param ardChannel 通道管理
     * @return 结果
     */
@@ -37,7 +38,7 @@
    /**
     * 修改通道管理
     *
     *
     * @param ardChannel 通道管理
     * @return 结果
     */
@@ -45,7 +46,7 @@
    /**
     * 批量删除通道管理
     *
     *
     * @param ids 需要删除的通道管理主键集合
     * @return 结果
     */
@@ -53,41 +54,34 @@
    /**
     * 删除通道管理信息
     *
     *
     * @param id 通道管理主键
     * @return 结果
     */
    public int deleteArdChannelById(String id);
    /**
     * 删除通道管理信息
     *
     * @param deviceId 所属设备ID
     * @return 结果
     */
     public int deleteArdChannelByDeviceId(String deviceId);
     /**
      * @Author 刘苏义
      * @Description 获取2个通道列表的交集
      * @Date   2024/7/10 9:38
      * @Param
      * @return
      */
    public List<ArdChannel> sameList(List<ArdChannel> oldArrayList, List<ArdChannel> newArrayList);
    /**
     * @Author 刘苏义
     * @Description 取2个通道列表的差集
     * @Date   2024/7/10 9:39
     * @Param
     * @return
     */
    public List<ArdChannel> diffList(List<ArdChannel> firstArrayList, List<ArdChannel> secondArrayList);
    public int deleteArdChannelByDeviceId(String deviceId);
    /**
     * 清空通道
     *
     * @author 刘苏义
     * @date 2024/8/10 11:18
     */
    public int clearArdChannel();
    /**
     * @return
     * @Author 刘苏义
     * @Description 同步通道信息
     * @Date 2024/7/10 13:20
     * @Param
     * @return
     */
    public void asyncChannel(List<ArdChannel> oldArrayList, List<ArdChannel> newArrayList);
    public void asyncChannel(ArdCameras ardCameras, List<ArdChannel> oldArrayList, List<ArdChannel> newArrayList);
}