You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virtual-patient/virtual-patient-graph/src/main/java/com/supervision/controller/GraphNebulaController.java

31 lines
855 B
Java

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<NgSubgraph<String>> queryGraph(String processId) {
return graphNebulaService.queryGraph(processId);
}
}