mirror of
https://github.com/aykhans/slash-e.git
synced 2026-10-06 02:45:17 +00:00
chore: update workspace user pages
This commit is contained in:
1 parent
c0699f159e
commit
a642465f86
14 files changed
+511
-39
No files matched your search
@@ -60,6 +60,25 @@ const workspaceService = {
|
||||
await api.deleteWorkspaceById(id);
|
||||
store.dispatch(deleteWorkspace(id));
|
||||
},
|
||||
|
||||
getWorkspaceUserList: async (id: WorkspaceId) => {
|
||||
const { data } = (
|
||||
await api.getWorkspaceUserList({
|
||||
workspaceId: id,
|
||||
})
|
||||
).data;
|
||||
return data;
|
||||
},
|
||||
|
||||
getWorkspaceUser: async (workspaceId: WorkspaceId, userId: UserId) => {
|
||||
const { data } = (
|
||||
await api.getWorkspaceUser({
|
||||
workspaceId: workspaceId,
|
||||
userId: userId,
|
||||
})
|
||||
).data;
|
||||
return data;
|
||||
},
|
||||
};
|
||||
|
||||
export default workspaceService;
|
||||
Reference in new issue
Block a user