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 @@ + +