|
@@ -3,11 +3,13 @@ package com.diagbot.facade;
|
|
|
import com.diagbot.dto.BaseNodeRSDTO;
|
|
|
import com.diagbot.dto.GraphDTO;
|
|
|
import com.diagbot.dto.GraphLabelDTO;
|
|
|
+import com.diagbot.dto.TreeDTO;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.KgServiceImpl;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.vo.KgQueryVO;
|
|
|
+import com.diagbot.vo.KgTreeVO;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -42,4 +44,18 @@ public class KgFacade extends KgServiceImpl {
|
|
|
}
|
|
|
return graphLabelDTO;
|
|
|
}
|
|
|
+
|
|
|
+ public TreeDTO getTreeFac(KgTreeVO kgTreeVO) {
|
|
|
+ TreeDTO treeDTO = new TreeDTO();
|
|
|
+ if (kgTreeVO.getType() == 1 && kgTreeVO.getSubType() == 1) {
|
|
|
+ addNode(treeDTO);
|
|
|
+ } else {
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_ERROR);
|
|
|
+ }
|
|
|
+ return treeDTO;
|
|
|
+ }
|
|
|
+
|
|
|
+ private void addNode(TreeDTO treeDTO) {
|
|
|
+
|
|
|
+ }
|
|
|
}
|