import { ApiClientFactory } from '../core/api.client.factory'; import { PullUrlModel, PullUrlReqModel, DevicesUrlReqModel } from '../model/integratedSurv.model'; export class IntegratedSurv { constructor(private factory: ApiClientFactory) {} async loadEzuikitPullUrl(deviceId: string, data: PullUrlReqModel): Promise { const url = `/v2/live/devices/${deviceId}/pullUrl`; const response = await this.factory.surveillance.post(url, data); return response; } async loadEzuikitDevicesUrl(data: DevicesUrlReqModel): Promise { const url = `/v2/live/ysy/liveAddressByIds`; const response = await this.factory.surveillance.post(url, data); return response; } /** * @function loadDeviceConfig 查询设备责任人 */ async loadDeviceConfig(deviceId: string, projectId: string) { const result = await this.factory.surveillance.get('/device/config', { deviceId, projectId }) return result; } }