refactor: 创建新接口版本时同步备注和依赖关系
This commit is contained in:
parent
5e0958acd6
commit
e361c62c67
|
@ -569,7 +569,7 @@ public class ApiDefinitionService {
|
|||
List<RelationshipEdgeDTO> pre = this.getRelationshipApi(oldApi.getId(), "PRE");
|
||||
List<String> targetIds = pre.stream().map(RelationshipEdgeKey::getTargetId).collect(Collectors.toList());
|
||||
RelationshipEdgeRequest req = new RelationshipEdgeRequest();
|
||||
req.setSourceIds(targetIds);
|
||||
req.setTargetIds(targetIds);
|
||||
req.setType("API");
|
||||
req.setId(test.getId());
|
||||
relationshipEdgeService.saveBatch(req);
|
||||
|
|
Loading…
Reference in New Issue