2 lines
938 B
JavaScript
2 lines
938 B
JavaScript
var t=(e,d,p)=>new Promise((u,r)=>{var c=s=>{try{a(p.next(s))}catch(i){r(i)}},y=s=>{try{a(p.throw(s))}catch(i){r(i)}},a=s=>s.done?u(s.value):Promise.resolve(s.value).then(c,y);a((p=p.apply(e,d)).next())});import{aq as n}from"./bootstrap-DmcuvVZS.js";function m(){return t(this,null,function*(){return n.get("/system/dept/simple-list")})}function f(){return t(this,null,function*(){return n.get("/system/dept/list")})}function g(e){return t(this,null,function*(){return n.get(`/system/dept/get?id=${e}`)})}function D(e){return t(this,null,function*(){return n.post("/system/dept/create",e)})}function L(e){return t(this,null,function*(){return n.put("/system/dept/update",e)})}function $(e){return t(this,null,function*(){return n.delete(`/system/dept/delete?id=${e}`)})}function q(e){return t(this,null,function*(){return n.delete(`/system/dept/delete-list?ids=${e.join(",")}`)})}export{f as a,q as b,g as c,$ as d,D as e,m as g,L as u};
|