2023-08-21 17:54:15 +08:00
|
|
|
package com.genersoft.iot.vmp.service;
|
|
|
|
|
|
|
|
import com.genersoft.iot.vmp.common.CommonGbChannel;
|
2023-09-25 18:20:05 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
2023-08-30 15:05:52 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
2023-11-08 18:30:41 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Gb28181CodeType;
|
2023-11-10 16:03:47 +08:00
|
|
|
import com.genersoft.iot.vmp.service.bean.*;
|
2023-11-01 09:25:49 +08:00
|
|
|
import com.github.pagehelper.PageInfo;
|
2023-08-21 17:54:15 +08:00
|
|
|
|
2023-09-25 18:20:05 +08:00
|
|
|
import java.util.ArrayList;
|
2023-08-25 15:49:56 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
2023-08-21 17:54:15 +08:00
|
|
|
public interface ICommonGbChannelService {
|
|
|
|
|
|
|
|
CommonGbChannel getChannel(String channelId);
|
|
|
|
|
|
|
|
int add(CommonGbChannel channel);
|
|
|
|
|
2023-08-30 15:05:52 +08:00
|
|
|
int addFromGbChannel(DeviceChannel channel);
|
|
|
|
|
2023-08-21 17:54:15 +08:00
|
|
|
int delete(String channelId);
|
|
|
|
|
|
|
|
int update(CommonGbChannel channel);
|
|
|
|
|
|
|
|
boolean checkChannelInPlatform(String channelId, String platformServerId);
|
2023-08-24 16:15:58 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 从国标设备中同步通道
|
|
|
|
*
|
2023-08-25 15:49:56 +08:00
|
|
|
* @param gbDeviceId 国标设备编号
|
|
|
|
* @param syncKeys 要同步的字段
|
2023-08-24 16:15:58 +08:00
|
|
|
*/
|
2023-09-25 18:20:05 +08:00
|
|
|
boolean syncChannelFromGb28181Device(String gbDeviceId, List<String> syncKeys, Boolean syncGroup, Boolean syncRegion);
|
|
|
|
|
|
|
|
CommonGbChannel getCommonChannelFromDeviceChannel(DeviceChannel deviceChannel, List<String> syncKeys);
|
2023-08-31 09:45:51 +08:00
|
|
|
|
2023-11-01 09:25:49 +08:00
|
|
|
PageInfo<CommonGbChannel> getChannelsInRegion(String regionDeviceId, String query, int page, int count);
|
2023-08-31 09:45:51 +08:00
|
|
|
|
|
|
|
List<CommonGbChannel> getChannelsInBusinessGroup(String businessGroupID);
|
2023-09-25 18:20:05 +08:00
|
|
|
|
|
|
|
void updateChannelFromGb28181DeviceInList(Device device, List<DeviceChannel> deviceChannels);
|
|
|
|
|
|
|
|
void addChannelFromGb28181DeviceInList(Device device, List<DeviceChannel> deviceChannels);
|
|
|
|
|
|
|
|
void deleteGbChannelsFromList(List<DeviceChannel> deleteChannelList);
|
|
|
|
|
|
|
|
void channelsOnlineFromList(List<DeviceChannel> deleteChannelList);
|
|
|
|
|
|
|
|
void channelsOfflineFromList(List<DeviceChannel> deleteChannelList);
|
2023-11-01 09:25:49 +08:00
|
|
|
|
|
|
|
PageInfo<CommonGbChannel> queryChannelListInGroup(String groupDeviceId, String query, int page, int count);
|
|
|
|
|
|
|
|
PageInfo<CommonGbChannel> queryChannelList(String query, int page, int count);
|
2023-11-08 18:30:41 +08:00
|
|
|
|
|
|
|
String getRandomCode(Gb28181CodeType type);
|
2023-11-10 16:03:47 +08:00
|
|
|
|
|
|
|
List<IndustryCodeType> getIndustryCodeList();
|
|
|
|
|
|
|
|
List<DeviceType> getDeviceTypeList();
|
|
|
|
|
|
|
|
List<NetworkIdentificationType> getNetworkIdentificationTypeList();
|
|
|
|
|
2023-08-21 17:54:15 +08:00
|
|
|
}
|