package coupon import "github.com/gogf/gf/v2/os/gtime" type GetCouponListReq struct { PageNo int `v:"required#页码不能为空" dc:"页码"` PageSize int `v:"required#页面大小不能为空" dc:"页面大小"` } type GetCouponReq struct { Id int `v:"required#优惠券id不能为空" dc:"优惠券id"` } type DeleteCouponReq struct { 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:"失效时间"` }