mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-17 20:45:06 +08:00
开始制作 vue 页面的模板
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user