mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-23 18:06:36 +08:00
26 lines
629 B
JavaScript
26 lines
629 B
JavaScript
import myaxios from '@/util/myaxios'
|
|
import {objctToDic} from '@/util/objctHandle'
|
|
export default {
|
|
getList() {
|
|
return myaxios({
|
|
url: '/Role/GetList',
|
|
method: 'post',
|
|
data: objctToDic()
|
|
})
|
|
},
|
|
giveRoleSetMenu(roleList, menuList) {
|
|
return myaxios({
|
|
url: '/Role/GiveRoleSetMenu',
|
|
method: 'put',
|
|
data: { RoleIds: roleList, menuIds: menuList }
|
|
})
|
|
},
|
|
|
|
getInMenuByRoleId(roleId) {
|
|
return myaxios({
|
|
url: `/Role/GetInMenuByRoleId?roleId=${roleId}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
} |