Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
f1259dc1
Commit
f1259dc1
authored
Feb 18, 2021
by
zhangc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
04088cd5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
469 deletions
+18
-469
OpenApi.java
...gateway/src/main/java/com/jz/dm/models/enity/OpenApi.java
+0
-460
ApiInterfaceDetailReq.java
.../java/com/jz/dm/models/req/api/ApiInterfaceDetailReq.java
+5
-2
ApiInterfaceMapper.xml
...igateway/src/main/resources/mapper/ApiInterfaceMapper.xml
+13
-7
No files found.
jz-dm-apigateway/src/main/java/com/jz/dm/models/enity/OpenApi.java
deleted
100644 → 0
View file @
04088cd5
This diff is collapsed.
Click to expand it.
jz-dm-apigateway/src/main/java/com/jz/dm/models/req/api/ApiInterfaceDetailReq.java
View file @
f1259dc1
...
...
@@ -20,7 +20,10 @@ import java.io.Serializable;
@ApiModel
(
"API详情信息"
)
public
class
ApiInterfaceDetailReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"id"
,
required
=
true
)
@NotNull
(
message
=
"id不能为空"
)
@ApiModelProperty
(
value
=
"id"
,
required
=
false
)
private
Long
id
;
@ApiModelProperty
(
value
=
"apiKey"
,
required
=
true
)
@NotNull
(
message
=
"apiKey不能为空"
)
private
String
apiKey
;
}
jz-dm-apigateway/src/main/resources/mapper/ApiInterfaceMapper.xml
View file @
f1259dc1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.jz.dm.mapper.ApiInterfaceMapper"
>
<sql
id=
"Base_Column_List"
>
id, api_key, api_name, api_desc, api_protocl,
...
...
@@ -28,12 +28,18 @@
</select>
<select
id=
"selectDetail"
resultType=
"com.jz.dm.models.domian.ApiInterface"
>
SELECT ai.*,
aic.request_param AS requestParam,
aic.response_param AS responseParam,
aic.resp_code AS respCode
FROM t_api_interface AS ai
LEFT JOIN t_api_interface_custom AS aic ON ai.id = aic.api_interface_id AND aic.is_deleted =0
WHERE ai.id =#{id}
aic.request_param AS requestParam,
aic.response_param AS responseParam,
aic.resp_code AS respCode
FROM t_api_interface AS ai
LEFT JOIN t_api_interface_custom AS aic ON ai.id = aic.api_interface_id AND aic.is_deleted =0
WHERE
<if
test=
"apiKey != null and apiKey !=''"
>
ai.api_key =#{apiKey}
</if>
<if
test=
"id != null and id !=''"
>
AND ai.id =#{id}
</if>
</select>
<select
id=
"getTestData"
resultType=
"com.jz.dm.models.domian.ApiInterfaceCustom"
>
SELECT aic.*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment