修改代码生成器

This commit is contained in:
TinyAnts 2022-08-16 14:45:07 +08:00
parent 7bc79d26f4
commit b4d570226a
2 changed files with 7 additions and 8 deletions

View File

@ -17,7 +17,8 @@ public class AdminConfig {
// 免登录验证 // 免登录验证
public static String[] notLoginUri = new String[]{ public static String[] notLoginUri = new String[]{
"system:login", // 登录接口 "system:login", // 登录接口
"common:index:config" // 配置接口 "common:index:config", // 配置接口
"gen:downloadCode", // 配置接口
}; };
// 免权限验证 // 免权限验证

View File

@ -119,13 +119,15 @@ public class VelocityUtil {
templates.add("java/validate.java.vm"); templates.add("java/validate.java.vm");
templates.add("java/voList.java.vm"); templates.add("java/voList.java.vm");
templates.add("java/voDetail.java.vm"); templates.add("java/voDetail.java.vm");
if (GenConstants.TPL_CRUD.equals(genTpl)) {
templates.add("vue/api.ts.vm"); templates.add("vue/api.ts.vm");
templates.add("vue/edit.vue.vm"); templates.add("vue/edit.vue.vm");
if (GenConstants.TPL_CRUD.equals(genTpl)) {
templates.add("vue/index.vue.vm"); templates.add("vue/index.vue.vm");
} }
else if (GenConstants.TPL_TREE.equals(genTpl)) { else if (GenConstants.TPL_TREE.equals(genTpl)) {
templates.add("vue/api.ts.vm");
templates.add("vue/edit.vue.vm");
templates.add("vue/index-tree.vue.vm"); templates.add("vue/index-tree.vue.vm");
} }
@ -164,10 +166,6 @@ public class VelocityUtil {
fileName = StringUtil.format("{}/validate/{}/{}Param.java", GenConfig.adminPackage, moduleName, entityName); fileName = StringUtil.format("{}/validate/{}/{}Param.java", GenConfig.adminPackage, moduleName, entityName);
} }
else if (template.contains("vo.java.vm")) {
fileName = StringUtil.format("{}/vo/{}/{}Vo.java", GenConfig.adminPackage, moduleName, entityName);
}
else if (template.contains("voList.java.vm")) { else if (template.contains("voList.java.vm")) {
fileName = StringUtil.format("{}/vo/{}/{}ListVo.java", GenConfig.adminPackage, moduleName, entityName); fileName = StringUtil.format("{}/vo/{}/{}ListVo.java", GenConfig.adminPackage, moduleName, entityName);
} }