diff --git a/frontend/src/api/modules/api-test/management.ts b/frontend/src/api/modules/api-test/management.ts
index b32e497db4..3b6ba6fcf0 100644
--- a/frontend/src/api/modules/api-test/management.ts
+++ b/frontend/src/api/modules/api-test/management.ts
@@ -45,6 +45,7 @@ import {
diffDataUrl,
ExecuteCaseUrl,
ExportDefinitionUrl,
+ ExportShareDefinitionUrl,
GetApiDownloadFileUrl,
GetCaseBatchExportParamsUrl,
GetCaseDetailUrl,
@@ -62,6 +63,7 @@ import {
GetModuleTreeUrl,
GetPoolId,
GetPoolOptionUrl,
+ GetShareApiDownloadFileUrl,
GetSharePageUrl,
getSyncedCaseDetailUrl,
GetTrashModuleCountUrl,
@@ -84,6 +86,7 @@ import {
SortCaseUrl,
SortDefinitionUrl,
StopApiExportUrl,
+ StopShareApiExportUrl,
SwitchDefinitionScheduleUrl,
ToggleFollowCaseUrl,
ToggleFollowDefinitionUrl,
@@ -684,3 +687,23 @@ export function getShareModuleTree(data: ApiDefinitionGetModuleParams) {
export function getShareModuleCount(data: ApiDefinitionGetModuleParams) {
return MSR.post({ url: shareModuleCountUrl, data });
}
+
+// 导出分享定义文档
+export function exportShareApiDefinition(data: ApiDefinitionBatchExportParams, type: string) {
+ return MSR.post({ url: `${ExportShareDefinitionUrl}/${type}`, data });
+}
+
+// 获取分享导出的文件
+export function getShareApiDownloadFile(projectId: string, fileId: string) {
+ return MSR.get(
+ {
+ url: `${GetShareApiDownloadFileUrl}/${projectId}/${fileId}`,
+ responseType: 'blob',
+ },
+ { isTransformResponse: false }
+ );
+}
+// 停止分享导出
+export function stopShareApiExport(taskId: string) {
+ return MSR.get({ url: `${StopShareApiExportUrl}/${taskId}` });
+}
diff --git a/frontend/src/api/requrls/api-test/management.ts b/frontend/src/api/requrls/api-test/management.ts
index c7d495128b..f1cd5304a0 100644
--- a/frontend/src/api/requrls/api-test/management.ts
+++ b/frontend/src/api/requrls/api-test/management.ts
@@ -122,3 +122,6 @@ export const checkSharePsdUrl = '/api/doc/share/check'; // 接口测试-接口
export const shareDetailUrl = '/api/doc/share/detail'; // 接口测试-接口管理-查看链接
export const shareModuleTreeUrl = '/api/doc/share/module/tree'; // 接口测试-接口管理-模块树
export const shareModuleCountUrl = '/api/doc/share/module/count'; // 接口测试-接口管理-模块数量
+export const ExportShareDefinitionUrl = '/api/doc/share/export'; // 导入分享接口定义
+export const GetShareApiDownloadFileUrl = '/api/doc/share/download/file'; // 下载导出的文档
+export const StopShareApiExportUrl = '/api/doc/share/stop'; // 停止分享导出
diff --git a/frontend/src/views/api-test/management/components/management/api/apiExportModal.vue b/frontend/src/views/api-test/management/components/management/api/apiExportModal.vue
new file mode 100644
index 0000000000..bff03b04d6
--- /dev/null
+++ b/frontend/src/views/api-test/management/components/management/api/apiExportModal.vue
@@ -0,0 +1,258 @@
+
+