From c4db7512a00d83ddeeb7c078bb7ded876f5432de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=98=B1=E6=B6=B5?= Date: Tue, 18 Feb 2025 13:58:29 +0800 Subject: [PATCH] =?UTF-8?q?=20api=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/test/test/domain/TestApi.java | 4 + .../resources/mapper/test/TestApiMapper.xml | 6 +- test-ui/src/api/test/api.js | 2 +- test-ui/src/views/test/api/add.vue | 182 ++++++++++++----- test-ui/src/views/test/api/edit.vue | 187 +++++++++++++++++- 5 files changed, 318 insertions(+), 63 deletions(-) diff --git a/test-test/src/main/java/com/test/test/domain/TestApi.java b/test-test/src/main/java/com/test/test/domain/TestApi.java index 889f46e..8e40ce6 100644 --- a/test-test/src/main/java/com/test/test/domain/TestApi.java +++ b/test-test/src/main/java/com/test/test/domain/TestApi.java @@ -53,6 +53,10 @@ public class TestApi extends BaseEntity { @Excel(name = "接口查询参数") private String param; + /** 接口请求体 Content-Type */ + @Excel(name = "接口请求体 Content-Type") + private String contentType; + /** * 接口请求体 */ diff --git a/test-test/src/main/resources/mapper/test/TestApiMapper.xml b/test-test/src/main/resources/mapper/test/TestApiMapper.xml index ef4cde5..5446865 100644 --- a/test-test/src/main/resources/mapper/test/TestApiMapper.xml +++ b/test-test/src/main/resources/mapper/test/TestApiMapper.xml @@ -12,6 +12,7 @@ + @@ -21,7 +22,7 @@ - select id, group_id, name, method, uri, header, param, body, del_flag, create_by, create_time, update_by, update_time from test_api + select id, group_id, name, method, uri, header, param, content_type, body, del_flag, create_by, create_time, update_by, update_time from test_api