import{h as o,r as e}from"./index.D9MSRuO0.js";const a="/api/system/device/";function n(t){return e({url:a,method:"get",params:t})}function i(t){return e({url:a,method:"post",data:t})}function d(t){return e({url:a+t.id+"/",method:"put",data:t})}function s(t){return e({url:a+t+"/",method:"delete",data:{id:t}})}function p(t){const r=o.get("token");return e({url:"/api/system/device/upload-image/",method:"post",data:t,headers:{"Content-Type":"multipart/form-data",Authorization:r?`JWT ${r}`:""},timeout:6e5})}export{i as A,s as D,n as G,d as U,p as u};