import{r as t,a9 as r}from"./index.D93ign_E.js";function u(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 o(e){return t({url:"/api/system/role_menu_button_permission/set_role_menu/",method:"put",data:e})}function a(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 i(e,n){return t({url:`/api/system/role_menu_button_permission/${e}/set_role_menu_field/`,method:"put",data:n})}function l(e){return t({url:"/api/system/role_menu_button_permission/set_role_menu_btn_data_range/",method:"put",data:e})}function _(e){return t({url:"/api/system/role_menu_button_permission/role_to_dept_all/",method:"get",params:e})}function p(){return t({url:"/api/system/user/",method:"get",params:{limit:999}}).then(e=>r.map(e.data,n=>({id:n.id,name:n.name})))}function d(e,n){return t({url:`/api/system/role/${e}/set_role_users/`,method:"put",data:n})}function c(e){return t({url:"/api/system/competency/list",method:"get",params:{...e,tenant_id:1}})}export{c as G,_ as a,m as b,i as c,u as d,o as e,a as f,p as g,d as h,l as s};
