import request from "@/scripts/httpRequest";
|
|
export const getHelemtData = (data: any) => {
|
return request({
|
url: "/temp/iotdata/devices",
|
method: "post",
|
data
|
})
|
}
|
|
export const sendAudio = (id,data: any) => {
|
return request({
|
url: `/temp/iotdata/audio/?sn=${id}`,
|
method: "post",
|
data
|
})
|
}
|
|
export const getBanner = () => {
|
return request({
|
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
|
})
|
}
|