mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 新增角色列表
This commit is contained in:
@ -34,3 +34,11 @@ export function fetchDeleteMenu(menuId: CommonType.IdType) {
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/** 获取角色菜单权限 */
|
||||
export function fetchGetRoleMenuTreeSelect(roleId: CommonType.IdType) {
|
||||
return request<Api.System.RoleMenuTreeSelect>({
|
||||
url: `/system/menu/roleMenuTreeselect/${roleId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
@ -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'
|
||||
|
@ -34,6 +34,15 @@ export function fetchUpdateUser(data: Api.System.UserOperateParams) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改用户状态 */
|
||||
export function fetchUpdateUserStatus(data: Api.System.UserOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/user/changeStatus',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除用户信息 */
|
||||
export function fetchBatchDeleteUser(userIds: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
|
Reference in New Issue
Block a user