From 2a6b73e566f3bb1b776e7fcb914d9e1b354cd9c8 Mon Sep 17 00:00:00 2001 From: hwj Date: Sat, 9 May 2026 17:41:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8Drunoverview=20api?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/deviceOperationOverview/index.ts | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/api/iot/deviceOperationOverview/index.ts diff --git a/src/api/iot/deviceOperationOverview/index.ts b/src/api/iot/deviceOperationOverview/index.ts new file mode 100644 index 00000000..f806fb05 --- /dev/null +++ b/src/api/iot/deviceOperationOverview/index.ts @@ -0,0 +1,24 @@ +import request from '@/config/axios' + +export interface RunOverviewRequestParams { + ids: string + startTime: string + endTime: string + timelinePageNo: number + timelinePageSize: number +} + +export interface RunOverviewResponse { + metrics?: any[] + hourlyStatus?: any[] + summary?: any[] + summaryTotalHours?: number + timelineRows?: any[] + totalDevices?: number +} + +export const DeviceOperationOverviewApi = { + getRunOverview: async (params: RunOverviewRequestParams) => { + return await request.get({ url: `/iot/deviceOperationOverview/getRunOverview`, params }) + } +}