feat: add getAllMemberList function to retrieve all users

--bug=1057955 --user=刘瑞斌 【共享资源】创建者显示为进入系统管理前工作空间存在的用户,但应该显示全量,因为系统管理不区分工作空间 https://www.tapd.cn/62980211/s/1722579
This commit is contained in:
CaptainB 2025-07-03 13:50:48 +08:00
parent 66699ef497
commit 54cd93d927
2 changed files with 13 additions and 1 deletions

View File

@ -34,6 +34,16 @@ const getUserList: (loading?: Ref<boolean>) => Promise<Result<Record<string, any
return get('/user/list', undefined, loading)
}
/**
*
*/
const getAllMemberList: (arg: string, loading?: Ref<boolean>) => Promise<Result<Record<string, any>[]>> = (
arg,
loading,
) => {
return get('/user/list', undefined, loading)
}
/**
*
* @param request
@ -91,6 +101,7 @@ export default {
getUserProfile,
getProfile,
getUserList,
getAllMemberList,
postResetPassword,
checkCode,
sendEmit,

View File

@ -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