mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-24 18:36:39 +08:00
31 lines
713 B
JavaScript
31 lines
713 B
JavaScript
|
|
import myaxios from '@/util/myaxios'
|
||
|
|
export default {
|
||
|
|
SetRoleByUser(userIds, roleIds) {
|
||
|
|
return myaxios({
|
||
|
|
url: '/User/SetRoleByUser',
|
||
|
|
method: 'post',
|
||
|
|
data: { "ids1": userIds, "ids2": roleIds }
|
||
|
|
})
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
GetUserInRolesByHttpUser() {
|
||
|
|
return myaxios({
|
||
|
|
url: `/User/GetUserInRolesByHttpUser`,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
},
|
||
|
|
GetMenuByHttpUser() {
|
||
|
|
return myaxios({
|
||
|
|
url: `/User/GetMenuByHttpUser`,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
},
|
||
|
|
GetAxiosByRouter(router) {
|
||
|
|
return myaxios({
|
||
|
|
url: `/User/GetAxiosByRouter?router=${router}`,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|