update src/service/api/system/role.ts.

增加 修改角色分配用户接口

Signed-off-by: 素还真 <11555891+metabytes@user.noreply.gitee.com>
This commit is contained in:
素还真 2025-07-07 09:02:16 +00:00 committed by Gitee
parent ad48d8e840
commit 5bfb8fdbc4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -78,3 +78,12 @@ export function fetchGetRoleUserList(params: Api.System.UserSearchParams) {
params
});
}
/** 修改 角色分配的用户 */
export function fetchUpdateRoleUser(roleId?: CommonType.IdType, userIds?: string) {
return request<boolean>({
url: '/system/role/authUser/selectAll',
method: 'put',
params: { roleId, userIds }
});
}