设置 config 文件中的 genJson=1,生成的数据库表结构体就带 json 字样
例如
type account struct {
Id int64 `json:"id" xorm:"autoincr index BIGINT(20"`
//.....
}
如果 config 文件中的 genJson=0,生成的数据库表结构体就不带 json 字样
type account struct {
Id int64 `xorm:"autoincr index BIGINT(20"`
//.....
}