feat: add integrated web frontend

This commit is contained in:
richjohnrambo
2026-10-10 23:47:28 +08:00
parent 81e3cf1d03
commit 3f15082ebc
551 changed files with 70142 additions and 6 deletions
+64
View File
@@ -0,0 +1,64 @@
import { http } from '@/utils/http/axios';
/**
* @description: 角色列表
*/
export function getRoleList(params) {
return http.request({
url: '/role/list',
method: 'GET',
params,
});
}
export function getRoleOption() {
const params = { pageSize: 100 };
return getRoleList(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,
});
}