package com.supervision.controller; import com.supervision.service.GraphNebulaService; import com.supervision.vo.GraphVO; import com.supervision.vo.TreeNodeVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @Api(tags = "Nebula图谱") @RestController("nebulaGraph") @RequiredArgsConstructor public class GraphNebulaController { private final GraphNebulaService graphNebulaService; @ApiOperation("创建图谱") @GetMapping("createGraph") public void createGraph(String processId) { graphNebulaService.creatGraphByNebula(processId); } @ApiOperation("查询图谱") @GetMapping("queryGraph") public GraphVO queryGraph(String processId) { return graphNebulaService.queryGraph(processId); } @ApiOperation("查询树形结构图") @GetMapping("queryTreeGraph") public List queryTreeGraph(String processId) { return graphNebulaService.queryTreeGraph(processId); } }