From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 23 六月 2022 17:42:58 +0800
Subject: [PATCH] bug修复
---
src/api/helemt.ts | 71 ++++++++++++++++++++++++++++++++++-
1 files changed, 69 insertions(+), 2 deletions(-)
diff --git a/src/api/helemt.ts b/src/api/helemt.ts
index 5a2d325..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,74 @@
export const sendAudio = (id,data: any) => {
return request({
- url: `/temp/iotdata/audio/?sn=${id}`,
+ url: `/iotdata/audio/?sn=${id}`,
+ method: "post",
+ data
+ })
+}
+
+export const getBanner = () => {
+ return request({
+ 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
})
--
Gitblit v1.8.0