优化代码生成器注释生成

This commit is contained in:
TinyAnts 2022-09-26 10:43:48 +08:00
parent 19e2d1c03b
commit eb0ab251d5
1 changed files with 16 additions and 16 deletions

View File

@ -114,23 +114,23 @@ public class VelocityUtil {
*/
public static List<String> getTemplateList(String genTpl, List<GenTableColumn> columns) {
List<String> templates = new LinkedList<>();
// templates.add("java/controller.java.vm");
// templates.add("java/entity.java.vm");
// templates.add("java/mapper.java.vm");
// templates.add("java/service.java.vm");
// templates.add("java/serviceImpl.java.vm");
// templates.add("java/validate.java.vm");
// templates.add("java/voList.java.vm");
templates.add("java/controller.java.vm");
templates.add("java/entity.java.vm");
templates.add("java/mapper.java.vm");
templates.add("java/service.java.vm");
templates.add("java/serviceImpl.java.vm");
templates.add("java/validate.java.vm");
templates.add("java/voList.java.vm");
templates.add("java/voDetail.java.vm");
// templates.add("vue/api.ts.vm");
// templates.add("vue/edit.vue.vm");
// if (GenConstants.TPL_CRUD.equals(genTpl)) {
// templates.add("vue/index.vue.vm");
// }
//
// else if (GenConstants.TPL_TREE.equals(genTpl)) {
// templates.add("vue/index-tree.vue.vm");
// }
templates.add("vue/api.ts.vm");
templates.add("vue/edit.vue.vm");
if (GenConstants.TPL_CRUD.equals(genTpl)) {
templates.add("vue/index.vue.vm");
}
else if (GenConstants.TPL_TREE.equals(genTpl)) {
templates.add("vue/index-tree.vue.vm");
}
return templates;
}