You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
956 B

package order_preview
import (
"github.com/golangkit/formatime"
"github.com/shopspring/decimal"
)
type CouponDetail struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
OrderID uint `gorm:"column:order_id" json:"-"`
BrandID uint `gorm:"column:brand_id" json:"-"`
PersonalCouponID uint `gorm:"column:personal_coupon_id" json:"-"`
Scope uint `gorm:"column:scope" json:"scope"`
CouponID uint `gorm:"column:coupon_id" json:"-"`
CouponName string `gorm:"column:coupon_name" json:"couponName"`
DeductedAmount decimal.Decimal `gorm:"column:deducted_amount" json:"deductedAmount"`
EndTime formatime.Second `gorm:"column:end_time" json:"-"`
}
// TableName sets the insert table name for this struct type
func (r *CouponDetail) TableName() string {
return "recook_order_preview_coupon_detail"
}