From 2dc79397a8832e0c8328bee1de4a4ec85b1cd98b Mon Sep 17 00:00:00 2001
From: Wang YiHang <3060234389@qq.com>
Date: Fri, 6 Sep 2024 14:36:51 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api/api.js | 44 +++++
src/views/apitype/api/index.vue | 310 ++++++++++++++++++++++++++++++++
2 files changed, 354 insertions(+)
create mode 100644 src/api/api/api.js
create mode 100644 src/views/apitype/api/index.vue
diff --git a/src/api/api/api.js b/src/api/api/api.js
new file mode 100644
index 0000000..1a5d1cb
--- /dev/null
+++ b/src/api/api/api.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询我的api列表
+export function listApi(query) {
+ return request({
+ url: '/market/api/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询我的api详细
+export function getApi(myId) {
+ return request({
+ url: '/market/api/' + myId,
+ method: 'get'
+ })
+}
+
+// 新增我的api
+export function addApi(data) {
+ return request({
+ url: '/market/api',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改我的api
+export function updateApi(data) {
+ return request({
+ url: '/market/api',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除我的api
+export function delApi(myId) {
+ return request({
+ url: '/market/api/' + myId,
+ method: 'delete'
+ })
+}
diff --git a/src/views/apitype/api/index.vue b/src/views/apitype/api/index.vue
new file mode 100644
index 0000000..b87b2de
--- /dev/null
+++ b/src/views/apitype/api/index.vue
@@ -0,0 +1,310 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.myTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+