18 lines
714 B
Go
18 lines
714 B
Go
package v1
|
|
|
|
type CouponRequest struct {
|
|
ReceiveCoupon // 领取优惠卷
|
|
}
|
|
|
|
// ReceiveCoupon 领取优惠卷
|
|
type ReceiveCoupon struct {
|
|
Mobile string `json:"mobile" form:"mobile" validate:"required,Mobile" label:"手机号"`
|
|
ReceiveCouponCoupon []*ReceiveCouponCoupon `json:"coupon" form:"coupon" validate:"required" label:"优惠卷"` // 领取优惠卷,优惠卷部分入参数据
|
|
}
|
|
|
|
// ReceiveCouponCoupon 领取优惠卷,优惠卷部分入参数据
|
|
type ReceiveCouponCoupon struct {
|
|
CouponId string `json:"coupon_id" form:"coupon_id" validate:"required" label:"优惠卷id"`
|
|
Quantity int `json:"quantity" form:"quantity" validate:"required" label:"优惠卷数量"`
|
|
}
|