处理模板名称问题,添加模板源文件与压缩文件,减少导出时的大小

This commit is contained in:
wanggeng 2021-08-16 16:42:45 +08:00
parent 1263a4c2c2
commit 24e28829b0
3 changed files with 3253 additions and 3251 deletions

View File

@ -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);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long