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