Commit d3d48455 authored by chenyan's avatar chenyan

2024/05/04_API文档接口修改

parent e5504fd2
...@@ -38,6 +38,11 @@ public class ApiDocTreeVo { ...@@ -38,6 +38,11 @@ public class ApiDocTreeVo {
*/ */
private Byte status; private Byte status;
/**
* API总数
*/
private Integer apiCount;
private List<ApiCustomNode> nodeList; private List<ApiCustomNode> nodeList;
} }
...@@ -72,7 +72,9 @@ public class ApiDocBiz extends BaseBiz<ApiDocMapper, ApiDoc>{ ...@@ -72,7 +72,9 @@ public class ApiDocBiz extends BaseBiz<ApiDocMapper, ApiDoc>{
.andEqualTo("docId",apiDocTreeVo.getId()); .andEqualTo("docId",apiDocTreeVo.getId());
} }
exampleNode.excludeProperties("respondJson"); exampleNode.excludeProperties("respondJson");
apiDocTreeVo.setNodeList(nodeMapper.selectByExample(exampleNode)); List<ApiCustomNode> nodes = nodeMapper.selectByExample(exampleNode);
apiDocTreeVo.setNodeList(nodes);
apiDocTreeVo.setApiCount(nodes.size());
exampleNode.clear(); exampleNode.clear();
} }
return ObjectRestResponse.succ(docTreeVoList); return ObjectRestResponse.succ(docTreeVoList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment