You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
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 { Title string `v:"required#优惠券名字不能为空" dc:"优惠券名字"` Image string `v:"required#优惠券图片不能为空" dc:"优惠券图片"` StartTime *gtime.Time `v:"required#优惠券生效时间不能为空" dc:"生效时间"` EndTime *gtime.Time `v:"required#优惠券失效时间不能为空" dc:"失效时间"` }
type UpdateCouponReq struct { Id int `v:"required#优惠券id不能为空" dc:"优惠券id"` Title string `v:"required#优惠券名字不能为空" dc:"优惠券名字"` Image string `v:"required#优惠券图片不能为空" dc:"优惠券图片"` StartTime *gtime.Time `v:"required#优惠券生效时间不能为空" dc:"生效时间"` EndTime *gtime.Time `v:"required#优惠券失效时间不能为空" dc:"失效时间"` }
|