package com.supervision.controller; import com.supervision.service.GraphNebulaService; import io.swagger.annotations.Api; import lombok.RequiredArgsConstructor; import org.nebula.contrib.ngbatis.models.data.NgSubgraph; 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; @GetMapping("createGraph") public void createGraph(String processId) { graphNebulaService.creatGraphByNebula(processId); } @GetMapping("queryGraph") public List> queryGraph(String processId) { return graphNebulaService.queryGraph(processId); } }