import { ApiClientFactory } from '../core/api.client.factory'; import { DeciveParams, DeviceRes, DeviceChartRes } from '../model/deviceStatus.model'; export class DeviceStatusService { constructor(private factory: ApiClientFactory) {} //获取大型设备的设备明细信息 2020年10月30日15:15:18 JC async getLargeDeviceInfoByProjectOrDeviceStatus(projectId: string, data: DeciveParams): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/largeDeviceInfos/getLargeDeviceInfoByProjectOrDeviceStatus`, data ); return result; } //获取大型设备所有设备状态的占比 2020年10月30日15:15:18 JC async getDeviceStatus(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/largeDeviceInfos/getDeviceStatus` ); return result; } }