|
@@ -1,13 +1,15 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
-
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.NodeDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.KgFacade;
|
|
|
+import com.diagbot.vo.KgQueryVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -15,7 +17,7 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
- * @Description: 日志操作控制层
|
|
|
+ * @Description: 朗通知识图谱控制层
|
|
|
* @author: gaodm
|
|
|
* @time: 2018/8/30 10:12
|
|
|
*/
|
|
@@ -35,10 +37,17 @@ public class KgController {
|
|
|
return RespDTO.onSuc(kgFacade.selectDisease());
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "查询节点", notes = "查询节点")
|
|
|
+ @PostMapping("/getNode")
|
|
|
+ @SysLogger("getNode")
|
|
|
+ public RespDTO<List<NodeDTO>> getNode(@RequestBody KgQueryVO kgQueryVO) {
|
|
|
+ return RespDTO.onSuc(kgFacade.getNode(kgQueryVO));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "获取图谱", notes = "获取图谱")
|
|
|
@PostMapping("/getGraph")
|
|
|
@SysLogger("getGraph")
|
|
|
- public RespDTO<List<Map>> getGraph() {
|
|
|
+ public RespDTO<List<Map>> getGraph(@RequestBody KgQueryVO kgQueryVO) {
|
|
|
return RespDTO.onSuc(kgFacade.getGraph());
|
|
|
}
|
|
|
|