|
|
@ -8,17 +8,18 @@ type GetCouponListReq struct { |
|
|
|
} |
|
|
|
|
|
|
|
type GetCouponReq struct { |
|
|
|
Id int `v:"required#优惠券id不能为空" dc:"优惠券id"` |
|
|
|
Id int `v:"required#卡券id不能为空" dc:"卡券id"` |
|
|
|
} |
|
|
|
|
|
|
|
type DeleteCouponReq struct { |
|
|
|
Id int `v:"required#优惠券id不能为空" dc:"优惠券id"` |
|
|
|
Id int `v:"required#卡券id不能为空" dc:"卡券id"` |
|
|
|
} |
|
|
|
|
|
|
|
type InsertCouponReq struct { |
|
|
|
Id int `dc:"优惠券id"` |
|
|
|
Title string `v:"required#优惠券名字不能为空" dc:"优惠券名字"` |
|
|
|
Image string `v:"required#优惠券图片不能为空" dc:"优惠券图片"` |
|
|
|
StartTime *gtime.Time `v:"required#优惠券生效时间不能为空" dc:"生效时间"` |
|
|
|
EndTime *gtime.Time `v:"required#优惠券失效时间不能为空" dc:"失效时间"` |
|
|
|
Id int `dc:"卡券id"` |
|
|
|
Title string `v:"required#卡券名字不能为空" dc:"卡券名字"` |
|
|
|
Image string `v:"required#卡券图片不能为空" dc:"卡券图片"` |
|
|
|
Type int `v:"required#卡券类型不能为空" dc:"卡券类型"` |
|
|
|
StartTime *gtime.Time `v:"required#卡券生效时间不能为空" dc:"生效时间"` |
|
|
|
EndTime *gtime.Time `v:"required#卡券失效时间不能为空" dc:"失效时间"` |
|
|
|
} |