import{a_ as t,dp as u}from"./index-XuO881sr.js";const o=e=>t({url:"/system/user/list",method:"get",params:e}),a=e=>t({url:"/system/user/optionselect?userIds="+e,method:"get"}),d=e=>t({url:"/system/user/"+u(e),method:"get"}),n=e=>t({url:"/system/user",method:"post",data:e}),l=e=>t({url:"/system/user",method:"put",data:e}),m=e=>t({url:"/system/user/"+e,method:"delete"}),p=(e,s)=>t({url:"/system/user/resetPwd",method:"put",headers:{isEncrypt:!0,repeatSubmit:!1},data:{userId:e,password:s}}),c=(e,s)=>t({url:"/system/user/changeStatus",method:"put",data:{userId:e,status:s}}),h=()=>t({url:"/system/user/profile",method:"get"}),y=e=>t({url:"/system/user/profile",method:"put",data:e}),i=(e,s)=>t({url:"/system/user/profile/updatePwd",method:"put",headers:{isEncrypt:!0,repeatSubmit:!1},data:{oldPassword:e,newPassword:s}}),g=e=>t({url:"/system/user/profile/avatar",method:"post",data:e}),U=e=>t({url:"/system/user/authRole/"+e,method:"get"}),f=e=>t({url:"/system/user/authRole",method:"put",params:e}),S=e=>t({url:"/system/user/list/dept/"+e,method:"get"}),P=()=>t({url:"/system/user/deptTree",method:"get"}),R={listUser:o,getUser:d,optionSelect:a,addUser:n,updateUser:l,delUser:m,resetUserPwd:p,changeUserStatus:c,getUserProfile:h,updateUserProfile:y,updateUserPwd:i,uploadAvatar:g,getAuthRole:U,updateAuthRole:f,deptTreeSelect:P,listUserByDeptId:S};export{y as a,i as b,f as c,U as d,R as e,h as g,S as l,g as u};
