数据总览

This commit is contained in:
2025-11-11 13:43:34 +08:00
parent f5116bb15a
commit 4221d11dee
16 changed files with 329 additions and 45 deletions

View File

@@ -27,6 +27,7 @@ public class SimulationNodeFeignClientImpl implements ISimulationNodeFeignClient
public SdmResponse<List<AllNodeByProjectIdAndTypeResp>> getAllNodeByNodeType(Long nodeId, String nodeType) {
SdmResponse<List<AllNodeByProjectIdAndTypeResp>> response;
try {
log.info("根据节点类型和节点ID获取所有节点信息请求参数nodeId={}, nodeType={}", nodeId, nodeType);
response = ISimulationNodeFeignClient.getAllNodeByNodeType(nodeId, nodeType);
if (!response.isSuccess() || response.getData() == null || response.getData().isEmpty()) {
return SdmResponse.failed("获取节点信息失败");
@@ -48,6 +49,7 @@ public class SimulationNodeFeignClientImpl implements ISimulationNodeFeignClient
public SdmResponse<List<AllNodeByProjectIdAndTypeResp>> getAllNodeByProjectIdAndType(String uuid, String nextNodeType) {
SdmResponse<List<AllNodeByProjectIdAndTypeResp>> response;
try {
log.info("根据项目ID和节点类型获取所有节点信息请求参数uuid={}, nextNodeType={}", uuid, nextNodeType);
response = ISimulationNodeFeignClient.getAllNodeByProjectIdAndType(uuid, nextNodeType);
if (!response.isSuccess() || response.getData() == null || response.getData().isEmpty()) {
return SdmResponse.failed("获取节点信息失败");
@@ -60,13 +62,19 @@ public class SimulationNodeFeignClientImpl implements ISimulationNodeFeignClient
}
@Override
public SdmResponse renameNode(RenameNodeReq req) {
return ISimulationNodeFeignClient.renameNode(req);
}
@Override
public SdmResponse delteNode(DelNodeReq req) {
return ISimulationNodeFeignClient.delteNode(req);
SdmResponse response;
try {
log.info("删除节点请求参数:{}", req);
response = ISimulationNodeFeignClient.delteNode(req);
if (!response.isSuccess()) {
return SdmResponse.failed("删除节点失败");
}
} catch (Exception e) {
log.error("删除节点失败", e);
return SdmResponse.failed("删除节点失败");
}
return response;
}
}

View File

@@ -33,9 +33,6 @@ public interface ISimulationNodeFeignClient {
@GetMapping("/node/getAllNodeByProjectIdAndType")
SdmResponse<List<AllNodeByProjectIdAndTypeResp>> getAllNodeByProjectIdAndType(@RequestParam(value = "chooseNodeId") String uuid, @RequestParam(value = "nextNodeType") String nextNodeType);
@PostMapping("/node/renameNode")
SdmResponse renameNode(@RequestBody RenameNodeReq req);
@PostMapping("/node/delteNode")
public SdmResponse delteNode(@RequestBody DelNodeReq req);
@PostMapping("node/delteNode")
SdmResponse delteNode(@RequestBody DelNodeReq req);
}