import{r as t,a7 as r,S as s}from"./index.CL7yl-Wb.js";function o(e){return t({url:"/api/system/role_menu_button_permission/get_role_menu/",method:"get",params:e}).then(n=>r.toArrayTree(n.data,{key:"id",parentKey:"parent",children:"children",strict:!1}))}function a(e){return t({url:"/api/system/role_menu_button_permission/set_role_menu/",method:"put",data:e})}function i(e){return t({url:"/api/system/role_menu_button_permission/get_role_menu_btn_field/",method:"get",params:e})}function m(e){return t({url:"/api/system/role_menu_button_permission/set_role_menu_btn/",method:"put",data:e})}function l(e,n){return t({url:`/api/system/role_menu_button_permission/${e}/set_role_menu_field/`,method:"put",data:n})}function _(e){return t({url:"/api/system/role_menu_button_permission/set_role_menu_btn_data_range/",method:"put",data:e})}function p(e){return t({url:"/api/system/role_menu_button_permission/role_to_dept_all/",method:"get",params:e})}function d(){return t({url:"/api/system/user/",method:"get",params:{limit:100}}).then(e=>r.map(e.data,n=>({id:n.id,name:n.name})))}function c(e,n){return t({url:`/api/system/role/${e}/set_role_users/`,method:"put",data:n})}function g(e){return t({url:"/api/system/competency/list",method:"get",params:{...e,tenant_id:s.get("tenant_id")}})}export{g as G,p as a,m as b,l as c,o as d,a as e,i as f,d as g,c as h,_ as s};
