From 4a800a8fc83c6bd1f86a8e847b079a51a7532c09 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 20 七月 2022 15:05:58 +0800 Subject: [PATCH] 修复国标配置的bug --- src/api/helemt.ts | 66 +++++++++++++++++++++++++++++++- 1 files changed, 63 insertions(+), 3 deletions(-) diff --git a/src/api/helemt.ts b/src/api/helemt.ts index ab844df..34a4820 100644 --- a/src/api/helemt.ts +++ b/src/api/helemt.ts @@ -2,7 +2,7 @@ export const getHelemtData = (data: any) => { return request({ - url: "/temp/iotdata/devices", + url: "/iotdata/devices", method: "post", data }) @@ -10,7 +10,7 @@ export const sendAudio = (id,data: any) => { return request({ - url: `/temp/iotdata/audio/?sn=${id}`, + url: `/iotdata/audio/?sn=${id}`, method: "post", data }) @@ -18,7 +18,67 @@ export const getBanner = () => { return request({ - url: `/temp/iotdata/banner-info`, + url: `/iotdata/banner-info`, method: "get", }) +} + +export const getChart = () => { + return request({ + url: `/iotdata/seven-day`, + method: "get", + }) +} + +export const lowBattery = () => { + return request({ + url: `/iotdata/low-battery`, + method: "post", + }) +} + +export const outBound = () => { + return request({ + url: `/iotdata/out-bound`, + method: "post", + }) +} + +export const historyWarn = () => { + return request({ + url: `/iotdata/history`, + method: "post", + }) +} + +export const handleWarn = (data) => { + return request({ + url: `/iotdata/handle-warn`, + method: "post", + data + }) +} + +export const getZones = (data) => { + return request({ + url: `/iotdata/zones`, + method: "post", + data + }) +} + +export const createZones = (data) => { + return request({ + url: `/iotdata/create-zone`, + method: "post", + data + }) +} + +export const delZones = (data) => { + return request({ + url: `/iotdata/del-zone`, + method: "post", + data + }) } \ No newline at end of file -- Gitblit v1.8.0