This commit is contained in:
2021-09-12 05:35:14 +08:00
parent 62cf625fe9
commit 9c3ba81135
20 changed files with 36 additions and 63 deletions
+7 -1
View File
@@ -21,7 +21,7 @@ type MakeCode struct {
Error
}
func (that *MakeCode) Db2JSON(name string, path string, db db.HoTimeDB) {
func (that *MakeCode) Db2JSON(name string, path string, db *db.HoTimeDB) {
isMake := false
idSlice := Slice{}
@@ -112,6 +112,12 @@ func (that *MakeCode) Db2JSON(name string, path string, db db.HoTimeDB) {
}
if db==nil{
return
}
//数据库反哺
myInit := strings.Replace(InitTpt, "{{name}}", name, -1)
ctrList := ""