import { ApiClientFactory } from '..'; import { Pageable } from '../'; export class FacturingScheService { constructor(private factory: ApiClientFactory) {} /** * 目标列表接口(后台) */ fetchGoalList(projectId: string) { return this.factory.surveillance.get(`/measurementGoal/list`, { projectId }); } /** * 场景 */ fetchSceneList(projectId: string) { return this.factory.surveillance.get(`/measurementGoal/scene/list`, { projectId }); } /** * 设备接口 */ fetchDeviceList(projectId: string) { return this.factory.surveillance.get(`/measurementGoal/device/list`, { projectId }); } /** * 预置点接口 */ fetchPresetPointList(projectId: string, deviceId: string) { return this.factory.surveillance.get(`/measurementGoal/presetPoint/list`, { projectId, deviceId }); } /** * 添加测量目标接口 */ updateMeasurementGoal(projectId: string, params: any) { return this.factory.surveillance.post(`/measurementGoal/save`, { projectId, ...params }); } /** * 添加测量目标接口 */ deleteMeasurementGoal(id: any) { return this.factory.surveillance.delete(`/measurementGoal/${id}/delete`); } /** * 历史数据 */ fetchHistoryList(measurementGoalId: string, page: { pageSize: number; pageNo: number }, params?: any) { return this.factory.surveillance.get>('/workStepProgress/history/progress/list', { measurementGoalId, ...page, ...params, }); } /** * 今日进度 */ fetchTodayData(measurementGoalId: string) { return this.factory.surveillance.get(`/workStepProgress/today/progress`, { measurementGoalId, }); } }