2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{aq as t}from"./bootstrap-DZnIDovD.js";var r=(e=>(e[e.INACTIVE=0]="INACTIVE",e[e.OFFLINE=2]="OFFLINE",e[e.ONLINE=1]="ONLINE",e))(r||{});function n(e){return t.get("/iot/device/page",{params:e})}function s(e){return t.get(`/iot/device/get?id=${e}`)}function c(e){return t.post("/iot/device/create",e)}function a(e){return t.put("/iot/device/update",e)}function u(e){return t.put("/iot/device/update-group",e)}function d(e){return t.delete(`/iot/device/delete?id=${e}`)}function g(e){return t.delete("/iot/device/delete-list",{params:{ids:e.join(",")}})}function p(e){return t.download("/iot/device/export-excel",{params:e})}function v(e){return t.get(`/iot/device/count?productId=${e}`)}function f(e,i){return t.get("/iot/device/simple-list",{params:{deviceType:e,productId:i}})}function l(e){return t.get("/iot/device/simple-list",{params:{productId:e}})}function D(){return t.download("/iot/device/get-import-template")}function m(e){return t.get("/iot/device/property/get-latest",{params:e})}function I(e){return t.get("/iot/device/property/history-list",{params:e})}function L(e){return t.get("/iot/device/get-auth-info",{params:{id:e}})}function N(e){return t.get("/iot/device/message/page",{params:e})}function P(e){return t.get("/iot/device/message/pair-page",{params:e})}function y(e){return t.post("/iot/device/message/send",e)}export{r as D,n as a,g as b,s as c,d,p as e,c as f,f as g,u as h,D as i,L as j,N as k,P as l,I as m,m as n,l as o,v as p,y as s,a as u};
|