修改查询数据

master
kanade 3 years ago
parent 6bd700d8e8
commit a0c2b5afa0

@ -16,7 +16,7 @@ type Information struct {
SharerID uint `gorm:"column:sharer_id" json:"sharerId"`
LiveId uint `gorm:"column:live_id" json:"liveId"`
UserID uint `gorm:"column:user_id" json:"userId"` // 下单者
User user.Information `json:"-" gorm:"foreignKey:userId"`
User user.Information `json:"-" gorm:"foreignKey:UserID"`
UserRole uint `gorm:"column:user_role" json:"userRole"`
Title string `gorm:"column:title" json:"title"` // 订单简要标题
BrandCouponTotalAmount decimal.Decimal `gorm:"column:brand_coupon_total_amount" json:"brandCouponTotalAmount"` // 品牌优惠券抵扣总金额

Loading…
Cancel
Save