|
@@ -6,8 +6,10 @@ import com.diagbot.dto.GraphLabelDTO;
|
|
import com.diagbot.dto.NodeDTO;
|
|
import com.diagbot.dto.NodeDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.SchemaDTO;
|
|
import com.diagbot.dto.SchemaDTO;
|
|
|
|
+import com.diagbot.dto.TreeDTO;
|
|
import com.diagbot.facade.KgFacade;
|
|
import com.diagbot.facade.KgFacade;
|
|
import com.diagbot.vo.KgQueryVO;
|
|
import com.diagbot.vo.KgQueryVO;
|
|
|
|
+import com.diagbot.vo.KgTreeVO;
|
|
import com.diagbot.vo.SchemaVO;
|
|
import com.diagbot.vo.SchemaVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -52,8 +54,8 @@ public class KgController {
|
|
@ApiOperation(value = "获取分类", notes = "获取分类")
|
|
@ApiOperation(value = "获取分类", notes = "获取分类")
|
|
@PostMapping("/getTree")
|
|
@PostMapping("/getTree")
|
|
@SysLogger("getTree")
|
|
@SysLogger("getTree")
|
|
- public RespDTO<List<Map>> getTree() {
|
|
|
|
- return RespDTO.onSuc(kgFacade.getTree());
|
|
|
|
|
|
+ public RespDTO<TreeDTO> getTree(@RequestBody @Valid KgTreeVO kgTreeVO) {
|
|
|
|
+ return RespDTO.onSuc(kgFacade.getTreeFac(kgTreeVO));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取描述框架", notes = "获取描述框架")
|
|
@ApiOperation(value = "获取描述框架", notes = "获取描述框架")
|