2022-04-26 01:34:47 +08:00
|
|
|
import myaxios from '@/util/myaxios'
|
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
GetUserInRolesByHttpUser() {
|
|
|
|
|
return myaxios({
|
|
|
|
|
url: `/User/GetUserInRolesByHttpUser`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
GetMenuByHttpUser() {
|
|
|
|
|
return myaxios({
|
|
|
|
|
url: `/User/GetMenuByHttpUser`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-04-26 18:29:18 +08:00
|
|
|
GetRoleListByUserId(userId) {
|
2022-04-26 01:34:47 +08:00
|
|
|
return myaxios({
|
2022-04-26 18:29:18 +08:00
|
|
|
url: `/User/GetRoleListByUserId?userId=${userId}`,
|
2022-04-26 01:34:47 +08:00
|
|
|
method: 'get'
|
|
|
|
|
})
|
2022-04-26 18:29:18 +08:00
|
|
|
},
|
2022-05-08 14:46:22 +08:00
|
|
|
GiveUserSetRole(UserIds,RoleIds)
|
|
|
|
|
{
|
|
|
|
|
return myaxios({
|
|
|
|
|
url: `/User/GiveUserSetRole`,
|
|
|
|
|
method: 'put',
|
|
|
|
|
data:{UserIds,RoleIds}
|
|
|
|
|
})
|
|
|
|
|
}
|
2022-04-26 01:34:47 +08:00
|
|
|
}
|