修改了领取优惠卷的入参格式,

This commit is contained in:
2024-05-31 10:28:35 +08:00
parent f5694cb227
commit 75ed34e791
2 changed files with 184 additions and 198 deletions
+1 -6
View File
@@ -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:"优惠卷数量"`
}