From bbe33e5fd87e5961fdab804bfb0b4cf354e0c5b2 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期三, 24 十一月 2021 10:00:17 +0800 Subject: [PATCH] 地图接口 --- src/api/helemt.ts | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/src/api/helemt.ts b/src/api/helemt.ts index ab844df..9dc8d6f 100644 --- a/src/api/helemt.ts +++ b/src/api/helemt.ts @@ -21,4 +21,56 @@ url: `/temp/iotdata/banner-info`, method: "get", }) +} + +export const getChart = () => { + return request({ + url: `/temp/iotdata/seven-day`, + method: "get", + }) +} + +export const lowBattery = () => { + return request({ + url: `/temp/iotdata/low-battery`, + method: "post", + }) +} + +export const outBound = () => { + return request({ + url: `/temp/iotdata/out-bound`, + method: "post", + }) +} + +export const historyWarn = () => { + return request({ + url: `/temp/iotdata/history`, + method: "post", + }) +} + +export const handleWarn = (data) => { + return request({ + url: `/temp/iotdata/handle-warn`, + method: "post", + data + }) +} + +export const getZones = (data) => { + return request({ + url: `/temp/iotdata/zones`, + method: "post", + data + }) +} + +export const createZones = (data) => { + return request({ + url: `/temp/iotdata/create-zone`, + method: "post", + data + }) } \ No newline at end of file -- Gitblit v1.8.0