处理模板名称问题,添加模板源文件与压缩文件,减少导出时的大小
This commit is contained in:
parent
1263a4c2c2
commit
24e28829b0
@ -183,7 +183,7 @@ public class ApiInfoServiceImpl extends DefaultBaseService implements IApiInfoSe
|
||||
apiMap.put("definitions", definitions);
|
||||
for (Tag tag : tags) {
|
||||
Map<String, Object> apiController = new HashMap<>();
|
||||
apiController.put("name", tag.getName().indexOf("\\-") > 0 ? tag.getName().split("\\-")[1] : tag.getName());
|
||||
apiController.put("name", tag.getName().indexOf("-") > 0 ? tag.getName().split("\\-")[1] : tag.getName());
|
||||
apiController.put("description", tag.getDescription());
|
||||
apiController.put("apis", listApiMap(tag.getName(), paths, definitions));
|
||||
apiControllers.add(apiController);
|
||||
|
3250
common/src/main/resources/templates/ftl/api-template-source.ftl
Normal file
3250
common/src/main/resources/templates/ftl/api-template-source.ftl
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user