first commit
Some checks failed
huaian-screen / build (push) Has been cancelled

This commit is contained in:
wangbin
2025-10-27 23:54:39 +08:00
parent 6e05e87474
commit d2bd0a60a4
209 changed files with 82726 additions and 0 deletions

48
src/apis/role.js Normal file
View File

@ -0,0 +1,48 @@
import request from "@/utils/request";
import {BASE_URL} from '@/config';
export const getRoleList = (params) => {
return request({
method: 'get',
url: `${BASE_URL}/role/getRoleList`,
params,
});
};
export const getRoleSelect = () => {
return request({
method: 'post',
url: `${BASE_URL}/role/getAllRoleList`
});
}
// 删除角色
export const deleteRole = (params) => {
return request({
method: 'get',
url: `${BASE_URL}/role/deleteRole`,
params,
});
}
// 保存角色
export const saveRole = (data) => {
return request({
method: 'post',
url: `${BASE_URL}/role/saveRole`,
data,
});
}
// 获取权限树
export const getRoleTree = (params) => {
return request({
method: 'get',
url: `${BASE_URL}/role/getRoleInfo`,
params,
});
}