import { ApiClientFactory } from '../core'; import { CarouselConfig, CarouselGroup, FlvUrlCameraModel } from '../model'; /** * 页面轮播 / 视频轮播 */ export declare class PageCarouselService { factory: ApiClientFactory; type: 'project' | 'tenant'; constructor(factory: ApiClientFactory, type?: 'project' | 'tenant'); /** * 查询数据 */ fetchGroups(mainId: string): Promise; /** * 添加分组 */ updateGroup(mainId: string, param: any): Promise; /** * 删除分组 */ deleteGroup(mainId: string, id: string): Promise; /** * 启用分组 */ enableGroup(mainId: string, id: string, enable: boolean): Promise; /** * 添加菜单 */ updateMenu(mainId: string, groupId: string, param: any): Promise; /** * 菜单移动 */ moveMenu(mainId: string, groupId: string, menuId: string, sort: 'up' | 'down'): Promise; /** * 删除菜单 */ deleteMenu(mainId: string, groupId: string, menuId: string): Promise; /** * 获取Flv设备播放地址列表 */ fetchDeviceUrl(projectId: string): Promise; /** * 获取Flv设备播放地址列表 */ fetchTenantDeviceUrl(mainId: string, deviceIds: any, method?: string): Promise; /** * 获取轮播组Flv设备播放地址列表 */ fetchTenantDeviceUrlByGroupId(mainId: string, groupId: string): Promise; /** * 根据轮播组id获取设备信息 */ fetchDeviceListByGroupId(mainId: string, groupId: string): Promise; /** * 企业视频轮播 */ saveCarouselConfig(req: CarouselConfig): Promise; deleteCarouselConfig(tenantId: string, treeId: string, userId: string): Promise; loadCarouselConfig(tenantId: string, treeId: string, userId: string): Promise; }