refactor: postman导入顺序保持一致
This commit is contained in:
parent
ccca6e5c16
commit
3002a276ee
|
@ -45,6 +45,8 @@ public class PostmanDefinitionParser extends PostmanAbstractParserParser<ApiDefi
|
||||||
Project project = projectMapper.selectByPrimaryKey(request.getProjectId());
|
Project project = projectMapper.selectByPrimaryKey(request.getProjectId());
|
||||||
parseItem(postmanCollection.getItem(), variables, results,
|
parseItem(postmanCollection.getItem(), variables, results,
|
||||||
apiModule, apiModule.getName(), cases, repeatMap, project.getRepeatable());
|
apiModule, apiModule.getName(), cases, repeatMap, project.getRepeatable());
|
||||||
|
Collections.reverse(results); // 调整顺序
|
||||||
|
Collections.reverse(cases);
|
||||||
apiImport.setData(results);
|
apiImport.setData(results);
|
||||||
apiImport.setCases(cases);
|
apiImport.setCases(cases);
|
||||||
return apiImport;
|
return apiImport;
|
||||||
|
|
Loading…
Reference in New Issue