| | |
| | | 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 |
| | | }) |
| | | } |