feat: 新增角色列表

This commit is contained in:
xlsea
2025-05-09 23:26:09 +08:00
parent b70ddb31e9
commit 67b5af9892
25 changed files with 869 additions and 125 deletions

View File

@ -27,8 +27,17 @@ export function fetchUpdateRole(data: Api.System.RoleOperateParams) {
});
}
/** 修改角色状态 */
export function fetchUpdateRoleStatus(data: Api.System.RoleOperateParams) {
return request<boolean>({
url: '/system/role/changeStatus',
method: 'put',
data
});
}
/** 批量删除角色信息 */
export function fetchDeleteRole(roleIds: CommonType.IdType[]) {
export function fetchBatchDeleteRole(roleIds: CommonType.IdType[]) {
return request<boolean>({
url: `/system/role/${roleIds.join(',')}`,
method: 'delete'