Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
460b4512
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
460b4512
编写于
11月 20, 2021
作者:
L
laijiaping
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
api接口信息(api_mation )涉及的新增与详情功能的bug修复
上级
0fbfef8e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
17 deletion
+17
-17
skyeye-api/src/main/java/com/skyeye/controller/ApiMationController.java
.../main/java/com/skyeye/controller/ApiMationController.java
+3
-3
skyeye-api/src/main/java/com/skyeye/dao/ApiMationDao.java
skyeye-api/src/main/java/com/skyeye/dao/ApiMationDao.java
+1
-1
skyeye-api/src/main/java/com/skyeye/service/impl/ApiMationServiceImpl.java
...in/java/com/skyeye/service/impl/ApiMationServiceImpl.java
+1
-2
skyeye-api/src/main/resources/mapper/api/ApiMationMapper.xml
skyeye-api/src/main/resources/mapper/api/ApiMationMapper.xml
+9
-8
skyeye-api/src/main/resources/reqmapping/mapping/api.xml
skyeye-api/src/main/resources/reqmapping/mapping/api.xml
+3
-3
未找到文件。
skyeye-api/src/main/java/com/skyeye/controller/ApiMationController.java
浏览文件 @
460b4512
...
...
@@ -19,7 +19,7 @@ public class ApiMationController {
/**
*
* @Title: insertApiMation
Mation
* @Title: insertApiMation
* @Description: 新增api接口信息
* @param inputObject
* @param outputObject
...
...
@@ -27,9 +27,9 @@ public class ApiMationController {
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/ApiMationController/insertApiMation
Mation
"
)
@RequestMapping
(
"/post/ApiMationController/insertApiMation"
)
@ResponseBody
public
void
insertApiMation
Mation
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
public
void
insertApiMation
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
apiMationService
.
insertApiMation
(
inputObject
,
outputObject
);
}
...
...
skyeye-api/src/main/java/com/skyeye/dao/ApiMationDao.java
浏览文件 @
460b4512
...
...
@@ -20,7 +20,7 @@ public interface ApiMationDao {
public
Map
<
String
,
Object
>
queryApiMationByRequestUrl
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
insertApiMation
Mation
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
insertApiMation
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
Map
<
String
,
Object
>
selectApiMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
...
...
skyeye-api/src/main/java/com/skyeye/service/impl/ApiMationServiceImpl.java
浏览文件 @
460b4512
...
...
@@ -52,9 +52,8 @@ public class ApiMationServiceImpl implements ApiMationService {
map
.
put
(
"lastUpdateTime"
,
DateUtil
.
getTimeAndToString
());
apiMationDao
.
editApiMationById
(
map
);
}
else
{
map
.
put
(
"id"
,
ToolUtil
.
getSurFaceId
());
map
.
put
(
"createTime"
,
DateUtil
.
getTimeAndToString
());
apiMationDao
.
insertApiMation
Mation
(
map
);
apiMationDao
.
insertApiMation
(
map
);
}
}
...
...
skyeye-api/src/main/resources/mapper/api/ApiMationMapper.xml
浏览文件 @
460b4512
<?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" >
<mapper
namespace=
"com.skyeye.
eve.
dao.ApiMationDao"
>
<mapper
namespace=
"com.skyeye.dao.ApiMationDao"
>
<select
id=
"queryApiMationByRequestUrl"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.
id
a.
request_url requestUrl
FROM
api_mation a
WHERE
...
...
@@ -13,19 +13,19 @@
<insert
id=
"insertApiMation"
parameterType=
"java.util.Map"
>
INSERT INTO api_mation
(
id,
request_url, request_body, reponse_body, create_id, create_time, last_update_id, last_update_time)
VALUES(#{
id}, #{
requestUrl}, #{requestBody}, #{reponseBody}, #{userId}, #{createTime}, #{userId}, #{createTime})
(request_url, request_body, reponse_body, create_id, create_time, last_update_id, last_update_time)
VALUES(#{requestUrl}, #{requestBody}, #{reponseBody}, #{userId}, #{createTime}, #{userId}, #{createTime})
</insert>
<select
id=
"selectApiMationById"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.request_url requestUrl,
a.request_body requestBody,
a.reponse_body reponseBody
FROM
api_mation
a
api_mation a
WHERE
a.
id = #{id
}
a.
request_url = #{requestUrl
}
</select>
<update
id=
"editApiMationById"
parameterType=
"java.util.Map"
>
...
...
@@ -33,10 +33,11 @@
<set>
request_url = #{requestUrl},
request_body = #{requestBody},
reponse_body = #{reponseBody},
last_update_id = #{userId},
last_update_time = #{lastUpdateTime}
</set>
WHERE
id = #{id
}
WHERE
request_url = #{requestUrl
}
</update>
</mapper>
\ No newline at end of file
skyeye-api/src/main/resources/reqmapping/mapping/api.xml
浏览文件 @
460b4512
...
...
@@ -13,13 +13,13 @@
</url>
<!-- api接口信息开始 -->
<url
id=
"apimation001"
path=
"/post/ApiMationController/insertApiMation"
val=
"新增api接口信息"
allUse=
"2"
method=
"POST
"
groupName=
"api接口"
>
<url
id=
"apimation001"
path=
"/post/ApiMationController/insertApiMation"
method=
"POST"
val=
"新增api接口信息"
allUse=
"1
"
groupName=
"api接口"
>
<property
id=
"requestUrl"
name=
"requestUrl"
ref=
"required"
var=
"请求地址"
/>
<property
id=
"requestBody"
name=
"requestBody"
ref=
""
var=
"请求入参"
/>
<property
id=
"reponseBody"
name=
"reponseBody"
ref=
""
var=
"请求出参"
/>
</url>
<url
id=
"apimation002"
path=
"/post/ApiMationController/selectApiMationById"
val=
"查看api接口信息详情"
allUse=
"
2
"
method=
"GET"
groupName=
"api接口"
>
<property
id=
"
id"
name=
"id
"
ref=
"required"
var=
"接口id"
/>
<url
id=
"apimation002"
path=
"/post/ApiMationController/selectApiMationById"
val=
"查看api接口信息详情"
allUse=
"
1
"
method=
"GET"
groupName=
"api接口"
>
<property
id=
"
requestUrl"
name=
"requestUrl
"
ref=
"required"
var=
"接口id"
/>
</url>
<!-- api接口信息结束 -->
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录