ZZJ
2021-11-24 bbe33e5fd87e5961fdab804bfb0b4cf354e0c5b2
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
    })
}