修改gorm序列化错误

This commit is contained in:
eson
2023-06-16 10:58:43 +08:00
parent 78c886f057
commit 31111a5332
42 changed files with 521 additions and 413 deletions

View File

@@ -106,7 +106,7 @@ func GenFromPath(pth string) {
tagstr += "\"primary_key\""
typeName = typeName[1:]
} else {
tagstr += "\"\""
tagstr += "\"-\""
}
tagstr += fmt.Sprintf(" json:\"%s\"`", col.Name)