feat: add getAllMemberList function to retrieve all users
--bug=1057955 --user=刘瑞斌 【共享资源】创建者显示为进入系统管理前工作空间存在的用户,但应该显示全量,因为系统管理不区分工作空间 https://www.tapd.cn/62980211/s/1722579
This commit is contained in:
parent
66699ef497
commit
54cd93d927
@ -34,6 +34,16 @@ const getUserList: (loading?: Ref<boolean>) => Promise<Result<Record<string, any
|
|||||||
return get('/user/list', undefined, loading)
|
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 请求对象
|
* @param request 请求对象
|
||||||
@ -91,6 +101,7 @@ export default {
|
|||||||
getUserProfile,
|
getUserProfile,
|
||||||
getProfile,
|
getProfile,
|
||||||
getUserList,
|
getUserList,
|
||||||
|
getAllMemberList,
|
||||||
postResetPassword,
|
postResetPassword,
|
||||||
checkCode,
|
checkCode,
|
||||||
sendEmit,
|
sendEmit,
|
||||||
|
|||||||
@ -14,6 +14,7 @@ import paragraphSystemShareApi from '@/api/system-shared/paragraph'
|
|||||||
import problemSystemShareApi from '@/api/system-shared/problem'
|
import problemSystemShareApi from '@/api/system-shared/problem'
|
||||||
import chatUserSystemShareApi from '@/api/system-shared/chat-user'
|
import chatUserSystemShareApi from '@/api/system-shared/chat-user'
|
||||||
import workspaceApi from '@/api/workspace/workspace'
|
import workspaceApi from '@/api/workspace/workspace'
|
||||||
|
import systemUserApi from '@/api/user/user'
|
||||||
|
|
||||||
// 普通 API
|
// 普通 API
|
||||||
const workspaceApiMap = {
|
const workspaceApiMap = {
|
||||||
@ -36,7 +37,7 @@ const systemShareApiMap = {
|
|||||||
paragraph: paragraphSystemShareApi,
|
paragraph: paragraphSystemShareApi,
|
||||||
problem: problemSystemShareApi,
|
problem: problemSystemShareApi,
|
||||||
chatUser: chatUserSystemShareApi,
|
chatUser: chatUserSystemShareApi,
|
||||||
workspace: workspaceApi, // 共享的应该查全部人吧
|
workspace: systemUserApi, // 共享的应该查全部人吧
|
||||||
} as any
|
} as any
|
||||||
|
|
||||||
// 资源管理 API
|
// 资源管理 API
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user