diff options
| author | zyh <[email protected]> | 2024-10-22 17:03:36 +0800 |
|---|---|---|
| committer | zyh <[email protected]> | 2024-10-22 17:03:36 +0800 |
| commit | 9205a2de7918e938b6af58955320e2dd738799d4 (patch) | |
| tree | f8adea4d7d2ac0a98de8002fb7d70058a30d1da6 /src/axios | |
| parent | cac62567b5af7b87e56620f5245d6c926db61f08 (diff) | |
feat: 更新pcap页面dev-1.0
Diffstat (limited to 'src/axios')
| -rw-r--r-- | src/axios/api/workspace.js | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/axios/api/workspace.js b/src/axios/api/workspace.js index 6d61121..8e4653a 100644 --- a/src/axios/api/workspace.js +++ b/src/axios/api/workspace.js @@ -12,4 +12,32 @@ export const workspaceListApi = async (data) => { } catch (err) { return err.data; } -};
\ No newline at end of file +}; + +// workspace新增 +export const workspaceAddApi = async (data) => { + try { + const res = await axiosInstance({ + url: '/api/v1/workspace', + method: 'POST', + data: data, + }); + return res.data; + } catch (err) { + return err.data; + } +}; + +// workspace删除 +export const workspaceDeleteApi = async (data) => { + try { + const res = await axiosInstance({ + url: '/api/v1/workspace', + method: 'DELETE', + params: data, + }); + return res.data; + } catch (err) { + return err.data; + } +}; |
