From 54cd93d927aa46ff27bf4f858f9538d5815a633e Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 3 Jul 2025 13:50:48 +0800 Subject: [PATCH] feat: add getAllMemberList function to retrieve all users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1057955 --user=刘瑞斌 【共享资源】创建者显示为进入系统管理前工作空间存在的用户,但应该显示全量,因为系统管理不区分工作空间 https://www.tapd.cn/62980211/s/1722579 --- ui/src/api/user/user.ts | 11 +++++++++++ ui/src/utils/dynamics-api/shared-api.ts | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ui/src/api/user/user.ts b/ui/src/api/user/user.ts index 4674af381..f4fd1156e 100644 --- a/ui/src/api/user/user.ts +++ b/ui/src/api/user/user.ts @@ -34,6 +34,16 @@ const getUserList: (loading?: Ref) => Promise) => Promise[]>> = ( + arg, + loading, +) => { + return get('/user/list', undefined, loading) +} + /** * 校验验证码 * @param request 请求对象 @@ -91,6 +101,7 @@ export default { getUserProfile, getProfile, getUserList, + getAllMemberList, postResetPassword, checkCode, sendEmit, diff --git a/ui/src/utils/dynamics-api/shared-api.ts b/ui/src/utils/dynamics-api/shared-api.ts index 46be4ecba..e5aa458dd 100644 --- a/ui/src/utils/dynamics-api/shared-api.ts +++ b/ui/src/utils/dynamics-api/shared-api.ts @@ -14,6 +14,7 @@ import paragraphSystemShareApi from '@/api/system-shared/paragraph' import problemSystemShareApi from '@/api/system-shared/problem' import chatUserSystemShareApi from '@/api/system-shared/chat-user' import workspaceApi from '@/api/workspace/workspace' +import systemUserApi from '@/api/user/user' // 普通 API const workspaceApiMap = { @@ -36,7 +37,7 @@ const systemShareApiMap = { paragraph: paragraphSystemShareApi, problem: problemSystemShareApi, chatUser: chatUserSystemShareApi, - workspace: workspaceApi, // 共享的应该查全部人吧 + workspace: systemUserApi, // 共享的应该查全部人吧 } as any // 资源管理 API