From 30fd7852108977b85cddde710f62713846644d62 Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:36:30 +0800 Subject: [PATCH] Add File --- frontend/src/api/workspace.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 frontend/src/api/workspace.ts diff --git a/frontend/src/api/workspace.ts b/frontend/src/api/workspace.ts new file mode 100644 index 0000000..5298045 --- /dev/null +++ b/frontend/src/api/workspace.ts @@ -0,0 +1,17 @@ +import { request } from '@/utils/request' + +export const workspaceUserList = (params: any, pageNum: number, pageSize: number) => + request.get(`/system/workspace/uws/pager/${pageNum}/${pageSize}`, { params }) + +export const workspaceOptionUserList = (params: any, pageNum: number, pageSize: number) => + request.get(`/system/workspace/uws/option/pager/${pageNum}/${pageSize}`, { params }) + +export const workspaceUwsCreate = (data: any) => request.post('/system/workspace/uws', data) +export const workspaceUwsUpdate = (data: any) => request.put('/system/workspace/uws', data) +export const workspaceCreate = (data: any) => request.post('/system/workspace', data) +export const workspaceUpdate = (data: any) => request.put('/system/workspace', data) +export const workspaceUwsDelete = (data: any) => request.delete('/system/workspace/uws', { data }) +export const workspaceDelete = (id: any) => request.delete(`/system/workspace/${id}`) +export const workspaceList = () => request.get('/system/workspace') +export const workspaceDetail = (id: any) => request.get(`/system/workspace/${id}`) +export const uwsOption = (params: any) => request.get('system/workspace/uws/option', { params })