mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 02:04:07 +00:00
代码生成类型匹配
This commit is contained in:
@@ -257,7 +257,7 @@ func (c *Gen) BatchGenCode(r *ghttp.Request) {
|
||||
//获取生成文件的目录
|
||||
func (c *Gen) getPath(entity *gen_table.EntityExtend) g.MapStrStr {
|
||||
controller := "app/controller/" + entity.ModuleName + "/" + entity.ClassName + ".go"
|
||||
service := "app/service/" + entity.ModuleName + "/" + entity.BusinessName + "/" + entity.ClassName + ".go"
|
||||
service := "app/service/" + entity.ModuleName + "/" + entity.BusinessName + "_service/" + entity.ClassName + ".go"
|
||||
model := "app/model/" + entity.ModuleName + "/" + entity.BusinessName + "/" + entity.ClassName + ".go"
|
||||
vue := "views/" + entity.ModuleName + "/" + entity.BusinessName + "/index.vue"
|
||||
api := "api/" + entity.ModuleName + "/" + entity.BusinessName + ".js"
|
||||
|
||||
Reference in New Issue
Block a user