Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
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
周健威
rs-cloud-platform
Commits
d3d48455
Commit
d3d48455
authored
May 04, 2024
by
chenyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/05/04_API文档接口修改
parent
e5504fd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
ApiDocTreeVo.java
.../java/com/upyuns/platform/rs/website/vo/ApiDocTreeVo.java
+5
-0
ApiDocBiz.java
...in/java/com/upyuns/platform/rs/website/biz/ApiDocBiz.java
+3
-1
No files found.
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/vo/ApiDocTreeVo.java
View file @
d3d48455
...
...
@@ -38,6 +38,11 @@ public class ApiDocTreeVo {
*/
private
Byte
status
;
/**
* API总数
*/
private
Integer
apiCount
;
private
List
<
ApiCustomNode
>
nodeList
;
}
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ApiDocBiz.java
View file @
d3d48455
...
...
@@ -72,7 +72,9 @@ public class ApiDocBiz extends BaseBiz<ApiDocMapper, ApiDoc>{
.
andEqualTo
(
"docId"
,
apiDocTreeVo
.
getId
());
}
exampleNode
.
excludeProperties
(
"respondJson"
);
apiDocTreeVo
.
setNodeList
(
nodeMapper
.
selectByExample
(
exampleNode
));
List
<
ApiCustomNode
>
nodes
=
nodeMapper
.
selectByExample
(
exampleNode
);
apiDocTreeVo
.
setNodeList
(
nodes
);
apiDocTreeVo
.
setApiCount
(
nodes
.
size
());
exampleNode
.
clear
();
}
return
ObjectRestResponse
.
succ
(
docTreeVoList
);
...
...
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