gorm appid 返回为空

type Mini struct {
ID int `json:"id"`
Appid string `json:"appid"` // 如果是 AppId 则数据库需要写成 app_id , 才会返回 appid:'32323'。否则查询到的返回值为空。 或者 写成 AppId, 'json:"app_id"' 返回 app_id:"32323"
MchId string `json:"mch_id"`
Secret string `json:"secret"`
TradeType string `json:"trade_type"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
}
原文地址:https://www.cnblogs.com/winyh/p/14547086.html