18 lines
748 B
Go
18 lines
748 B
Go
package productser
|
|
|
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
type ActivityCouponDetailResponse struct {
|
|
OriginalPrice int64 `json:"originalPrice" ` // 原价
|
|
DiscountedPrice int64 `json:"discountedPrice"` // 现价
|
|
CouponList []ActivityCoupon `json:"couponList"` // 优惠卷列表
|
|
IsDiscounted bool `json:"isDiscounted"` // 是否折扣
|
|
}
|
|
|
|
type ActivityCoupon struct {
|
|
ID primitive.ObjectID `json:"id"` // 优惠卷ID
|
|
Name string `json:"name"` // 优惠卷名字
|
|
Count int32 `json:"count"` // 优惠卷数量
|
|
DiscountedPrice int64 `json:"discountedPrice"` // 现价
|
|
}
|