From bb955434697af8ea525c681a85d22c0ba2ae1e1a Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Tue, 30 Dec 2025 04:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E6=96=B9=E6=8E=A5=E5=8F=A3=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E7=94=9F=E6=88=90=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/api.js | 51 ++++ src/views/tool/api/apiForm.vue | 416 +++++++++++++++++++++++++++++++++ src/views/tool/api/index.vue | 367 +++++++++++++++++++++++++++++ 3 files changed, 834 insertions(+) create mode 100644 src/api/system/api.js create mode 100644 src/views/tool/api/apiForm.vue create mode 100644 src/views/tool/api/index.vue diff --git a/src/api/system/api.js b/src/api/system/api.js new file mode 100644 index 0000000..fbaf296 --- /dev/null +++ b/src/api/system/api.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 查询接口基础信息列表 +export function listInfo(query) { + return request({ + url: '/tool/api/list', + method: 'get', + params: query + }) +} + +// 查询接口基础信息详细 +export function getInfo(id) { + return request({ + url: '/tool/api/' + id, + method: 'get' + }) +} + +// 新增接口基础信息 +export function addInfo(data) { + return request({ + url: '/tool/api', + method: 'post', + data: data + }) +} +export function genCode(data) { + return request({ + url: '/tool/api/code', + method: 'post', + data: data + }) +} + +// 修改接口基础信息 +export function updateInfo(data) { + return request({ + url: '/tool/api', + method: 'put', + data: data + }) +} + +// 删除接口基础信息 +export function delInfo(id) { + return request({ + url: '/tool/api/' + id, + method: 'delete' + }) +} diff --git a/src/views/tool/api/apiForm.vue b/src/views/tool/api/apiForm.vue new file mode 100644 index 0000000..c20a85b --- /dev/null +++ b/src/views/tool/api/apiForm.vue @@ -0,0 +1,416 @@ + + + + + + 基础信息配置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 入参配置 + + 添加入参 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + + 出参配置 + + 添加出参 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + 提交配置 + 重置表单 + + + + + + + + diff --git a/src/views/tool/api/index.vue b/src/views/tool/api/index.vue new file mode 100644 index 0000000..1bcbe98 --- /dev/null +++ b/src/views/tool/api/index.vue @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + + + + + + + + + + + + + + + + 修改 + 删除 + + + + + + + + + + + + + + +