for save
This commit is contained in:
@@ -115,7 +115,7 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
|
||||
|
||||
// 匹配到主键定义
|
||||
|
||||
fcontent := "package model\n"
|
||||
fcontent := "package gmodel\n"
|
||||
|
||||
structstr := "// %s %s\ntype %s struct {%s\n}\n"
|
||||
|
||||
@@ -210,7 +210,7 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fcontent = "package model\n// TODO: 使用model的属性做你想做的"
|
||||
fcontent = "package gmodel\n// TODO: 使用model的属性做你想做的"
|
||||
genGoLogicFileName := fmt.Sprintf("%s/%s_logic.go", mdir, tableName)
|
||||
|
||||
// 使用 os.Stat 函数获取文件信息
|
||||
|
||||
Reference in New Issue
Block a user