|
@@ -5,8 +5,10 @@ import com.diagbot.dto.GraphDTO;
|
|
|
import com.diagbot.dto.GraphLabelDTO;
|
|
|
import com.diagbot.dto.NodeDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.dto.SchemaDTO;
|
|
|
import com.diagbot.facade.KgFacade;
|
|
|
import com.diagbot.vo.KgQueryVO;
|
|
|
+import com.diagbot.vo.SchemaVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -57,8 +59,8 @@ public class KgController {
|
|
|
@ApiOperation(value = "获取描述框架", notes = "获取描述框架")
|
|
|
@PostMapping("/getSchema")
|
|
|
@SysLogger("getSchema")
|
|
|
- public RespDTO<List<Map>> getSchema() {
|
|
|
- return RespDTO.onSuc(kgFacade.getSchema());
|
|
|
+ public RespDTO<List<SchemaDTO>> getSchema(@RequestBody SchemaVO schemaVO) {
|
|
|
+ return RespDTO.onSuc(kgFacade.getSchema(schemaVO));
|
|
|
}
|
|
|
}
|
|
|
|