api新增修改

This commit is contained in:
2025-02-18 13:58:29 +08:00
parent c552e6abbd
commit c4db7512a0
5 changed files with 318 additions and 63 deletions

View File

@@ -53,6 +53,10 @@ public class TestApi extends BaseEntity {
@Excel(name = "接口查询参数")
private String param;
/** 接口请求体 Content-Type */
@Excel(name = "接口请求体 Content-Type")
private String contentType;
/**
* 接口请求体
*/

View File

@@ -12,6 +12,7 @@
<result property="uri" column="uri" />
<result property="header" column="header" />
<result property="param" column="param" />
<result property="contentType" column="content_type" />
<result property="body" column="body" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
@@ -21,7 +22,7 @@
</resultMap>
<sql id="selectTestApiVo">
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
</sql>
<select id="selectTestApiList" parameterType="TestApiListQO" resultMap="TestApiResult">
@@ -48,6 +49,7 @@
<if test="uri != null">uri,</if>
<if test="header != null">header,</if>
<if test="param != null">param,</if>
<if test="contentType != null">content_type,</if>
<if test="body != null">body,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
@@ -62,6 +64,7 @@
<if test="uri != null">#{uri},</if>
<if test="header != null">#{header},</if>
<if test="param != null">#{param},</if>
<if test="contentType != null">#{contentType},</if>
<if test="body != null">#{body},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
@@ -80,6 +83,7 @@
<if test="uri != null">uri = #{uri},</if>
<if test="header != null">header = #{header},</if>
<if test="param != null">param = #{param},</if>
<if test="contentType != null">content_type = #{contentType},</if>
<if test="body != null">body = #{body},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>