修改了领取优惠卷的入参格式,
This commit is contained in:
@@ -6,12 +6,7 @@ type CouponRequest struct {
|
||||
|
||||
// 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 {
|
||||
Mobile string `json:"mobile" form:"mobile" validate:"required,Mobile" label:"手机号"`
|
||||
CouponId string `json:"coupon_id" form:"coupon_id" validate:"required" label:"优惠卷id"`
|
||||
Quantity int `json:"quantity" form:"quantity" validate:"required" label:"优惠卷数量"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user