修改代码生成器
This commit is contained in:
parent
7bc79d26f4
commit
b4d570226a
|
|
@ -16,8 +16,9 @@ public class AdminConfig {
|
|||
|
||||
// 免登录验证
|
||||
public static String[] notLoginUri = new String[]{
|
||||
"system:login", // 登录接口
|
||||
"common:index:config" // 配置接口
|
||||
"system:login", // 登录接口
|
||||
"common:index:config", // 配置接口
|
||||
"gen:downloadCode", // 配置接口
|
||||
};
|
||||
|
||||
// 免权限验证
|
||||
|
|
|
|||
|
|
@ -119,13 +119,15 @@ public class VelocityUtil {
|
|||
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/api.ts.vm");
|
||||
templates.add("vue/edit.vue.vm");
|
||||
templates.add("vue/index.vue.vm");
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
|
|
@ -164,10 +166,6 @@ public class VelocityUtil {
|
|||
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")) {
|
||||
fileName = StringUtil.format("{}/vo/{}/{}ListVo.java", GenConfig.adminPackage, moduleName, entityName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue