From 1e09a7a01a6c1888e1a2a832eb007fb8c2b653a0 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期三, 26 一月 2022 11:06:27 +0800 Subject: [PATCH] Merge branch 'bhomebus' of http://192.168.5.5:10010/r/web/vue-smart-ai into bhomebus --- src/api/helemt.ts | 77 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 76 insertions(+), 1 deletions(-) diff --git a/src/api/helemt.ts b/src/api/helemt.ts index edf546d..34a4820 100644 --- a/src/api/helemt.ts +++ b/src/api/helemt.ts @@ -2,7 +2,82 @@ export const getHelemtData = (data: any) => { return request({ - url: "/temp/iotdata/devices", + url: "/iotdata/devices", + method: "post", + data + }) +} + +export const sendAudio = (id,data: any) => { + return request({ + 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