From 94ba3bae4a16f827313969fbf89e50a822e984cd Mon Sep 17 00:00:00 2001 From: ZLY Date: Fri, 7 Nov 2025 17:34:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=88=86=E7=B1=BB=E5=92=8C=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/componentClassify.ts | 9 +++++++++ src/api/fileSystem.ts | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/api/componentClassify.ts create mode 100644 src/api/fileSystem.ts diff --git a/src/api/componentClassify.ts b/src/api/componentClassify.ts new file mode 100644 index 0000000..f71aee8 --- /dev/null +++ b/src/api/componentClassify.ts @@ -0,0 +1,9 @@ +import axios from 'axios'; + +// 公共路径 +const urlPrefix = '/api/v1/bpms-workbench'; + +// 我的组件 +export function getComponentClassify(classifyType: 'component' | 'language_type') { + return axios.get(`${urlPrefix}/componentClassify/list?classifyType=${classifyType}`); +} \ No newline at end of file diff --git a/src/api/fileSystem.ts b/src/api/fileSystem.ts new file mode 100644 index 0000000..8c56000 --- /dev/null +++ b/src/api/fileSystem.ts @@ -0,0 +1,9 @@ +import axios from 'axios'; + +// 公共路径 +const urlPrefix = '/api/v1/bpms-workbench'; + +// 我的组件 +export function fileUpload(params) { + return axios.post(`${urlPrefix}/fileSystem/fileUpload`, params); +} \ No newline at end of file