You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1005 B
43 lines
1005 B
4 years ago
|
import request from '@/utils/request';
|
||
|
import requestLoading from '@/utils/requestLoading';
|
||
|
//获取权限列表
|
||
|
export function getAuthorityList(params) {
|
||
|
return requestLoading({
|
||
|
url: '/api-login/authority/authoritys',
|
||
|
method: 'get',
|
||
|
params
|
||
|
});
|
||
|
}
|
||
|
//获取权限详情
|
||
|
export function getAuthorityInfo(params) {
|
||
|
return requestLoading({
|
||
|
url: '/api-login/authority/authority',
|
||
|
method: 'get',
|
||
|
params
|
||
|
});
|
||
|
}
|
||
|
//添加权限
|
||
|
export function addAuthority(params) {
|
||
|
return requestLoading({
|
||
|
url: '/api-login/authority/authority',
|
||
|
method: 'post',
|
||
|
data:params
|
||
|
});
|
||
|
}
|
||
|
//修改权限
|
||
|
export function editAuthority(params) {
|
||
|
return requestLoading({
|
||
|
url: '/api-login/authority/authority',
|
||
|
method: 'put',
|
||
|
data:params
|
||
|
});
|
||
|
}
|
||
|
//获取菜单tree
|
||
|
export function getMenusTree(params) {
|
||
|
return requestLoading({
|
||
|
url: '/api-login/menu/menus',
|
||
|
method: 'get',
|
||
|
params
|
||
|
});
|
||
|
}
|