修改gorm序列化错误
This commit is contained in:
@@ -106,7 +106,7 @@ func GenFromPath(pth string) {
|
||||
tagstr += "\"primary_key\""
|
||||
typeName = typeName[1:]
|
||||
} else {
|
||||
tagstr += "\"\""
|
||||
tagstr += "\"-\""
|
||||
}
|
||||
tagstr += fmt.Sprintf(" json:\"%s\"`", col.Name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user