From 33dfb1ca9b1ecb0c90f8a76abe53d6fd197ca64e Mon Sep 17 00:00:00 2001 From: wsm <2746563060@qq.com> Date: Tue, 11 Aug 2026 15:15:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(apiList):=20=E6=96=B0=E5=A2=9E=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E6=8E=A5=E5=8F=A3=E6=B8=85=E5=8D=95=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 展示对外提供/对外调用接口清单,支持导出Excel与Markdown, 数据来自后端 /sys/extApi/*。 --- src/views/super/apiList/apiList.api.ts | 18 ++++++ src/views/super/apiList/index.vue | 80 ++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 src/views/super/apiList/apiList.api.ts create mode 100644 src/views/super/apiList/index.vue diff --git a/src/views/super/apiList/apiList.api.ts b/src/views/super/apiList/apiList.api.ts new file mode 100644 index 0000000..ce41dd0 --- /dev/null +++ b/src/views/super/apiList/apiList.api.ts @@ -0,0 +1,18 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/sys/extApi/list', + exportXls = '/sys/extApi/exportXls', + exportMarkdown = '/sys/extApi/exportMarkdown', +} + +/** + * 外部接口清单 + */ +export const list = () => defHttp.get({ url: Api.list }); + +export const exportXls = (params?: any) => + defHttp.get({ url: Api.exportXls, params, responseType: 'blob', timeout: 60000 }, { isTransformResponse: false }); + +export const exportMarkdown = (params?: any) => + defHttp.get({ url: Api.exportMarkdown, params, responseType: 'blob', timeout: 60000 }, { isTransformResponse: false }); diff --git a/src/views/super/apiList/index.vue b/src/views/super/apiList/index.vue new file mode 100644 index 0000000..2315f85 --- /dev/null +++ b/src/views/super/apiList/index.vue @@ -0,0 +1,80 @@ + +