import { ApiClientFactory } from '../core/api.client.factory'; import { CustomYcAlarmType, CustomYcAlarmHand, TunnelMonitoringList, TunnelSelectList } from '../model/customYC.model'; export class CustomYcService { constructor(private factory: ApiClientFactory) {} // 预警报告统计图 async loadCustomYcAlarmHand( ): Promise { const url = `/gss/yix/deal/count/get`; const result = await this.factory.gssApi.get(url); return result; } // 检测报警分类统计 async loadCustomYcAlarmType( ): Promise { const url = `/gss/yix/group/count/get`; const result = await this.factory.gssApi.get(url); return result; } // 欢迎页统计 async loadCustomYcInfo(secret: string, id?: string): Promise { const url = '/gss/yix/home/data/get'; const result = await this.factory.gssApi.get(url, {secret, id}); return result; } // 检测数据统计 async loadCustomYcLineData(projectId: string, secret: string, point?: string, info?: string, group?: string, startTime?: string, endTime?: string): Promise { const url = '/gss/yix/line/data/get'; const result = await this.factory.gssApi.get(url, {projectId, secret, point, info, group, startTime, endTime}); return result; } }