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"`
}
posted @ 2021-03-17 06:30  winyh  阅读(128)  评论(0编辑  收藏  举报