mirror of
https://github.com/bufanyun/hotgo.git
synced 2026-10-02 07:09:15 +00:00
60 lines
992 B
TypeScript
60 lines
992 B
TypeScript
import { http } from '@/utils/http/axios';
|
|
|
|
/**
|
|
* @description: 角色列表
|
|
*/
|
|
export function getRoleList(params) {
|
|
return http.request({
|
|
url: '/role/list',
|
|
method: 'GET',
|
|
params,
|
|
});
|
|
}
|
|
|
|
export function Edit(params) {
|
|
return http.request({
|
|
url: '/role/edit',
|
|
method: 'POST',
|
|
params,
|
|
});
|
|
}
|
|
|
|
export function Delete(params) {
|
|
return http.request({
|
|
url: '/role/delete',
|
|
method: 'POST',
|
|
params,
|
|
});
|
|
}
|
|
|
|
export function UpdatePermissions(params) {
|
|
return http.request({
|
|
url: '/role/updatePermissions',
|
|
method: 'POST',
|
|
params,
|
|
});
|
|
}
|
|
|
|
export function GetPermissions(params) {
|
|
return http.request({
|
|
url: '/role/getPermissions',
|
|
method: 'GET',
|
|
params,
|
|
});
|
|
}
|
|
|
|
export function DataScopeSelect() {
|
|
return http.request({
|
|
url: '/role/dataScope/select',
|
|
method: 'GET',
|
|
});
|
|
}
|
|
|
|
export function DataScopeEdit(params) {
|
|
return http.request({
|
|
url: '/role/dataScope/edit',
|
|
method: 'POST',
|
|
params,
|
|
});
|
|
}
|