From 4ff29e301de38488db0ff04f0209c99e37cf30b4 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期二, 07 十二月 2021 18:56:34 +0800
Subject: [PATCH] 对比库管理

---
 src/api/helemt.ts |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 55 insertions(+), 3 deletions(-)

diff --git a/src/api/helemt.ts b/src/api/helemt.ts
index ab844df..cf1a5e6 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,59 @@
 
 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
+    })
 }
\ No newline at end of file

--
Gitblit v1.8.0