开始制作 vue 页面的模板

This commit is contained in:
YunaiV
2021-02-11 11:11:40 +08:00
parent 0d55ca747c
commit 77bb57a2ee
5 changed files with 551 additions and 1047 deletions

View File

@ -72,6 +72,8 @@ public class ToolCodegenEngine {
.put(javaTemplatePath("service/serviceImpl"),
javaFilePath("service/${table.businessName}/impl/${table.className}ServiceImpl"))
// Vue
.put(vueTemplatePath("views/index.vue"),
vueFilePath("views/${table.moduleName}/${table.businessName}/index.vue"))
// SQL
.build();
@ -161,4 +163,12 @@ public class ToolCodegenEngine {
return "java/${basePackage}/${table.moduleName}/" + path + ".java";
}
private static String vueTemplatePath(String path) {
return "codegen/vue/" + path + ".vm";
}
private static String vueFilePath(String path) {
return "vue/" + path;
}
}