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.

25 lines
902 B

6 months ago
6 months ago
6 months ago
  1. package coupon
  2. import "github.com/gogf/gf/v2/os/gtime"
  3. type GetCouponListReq struct {
  4. PageNo int `v:"required#页码不能为空" dc:"页码"`
  5. PageSize int `v:"required#页面大小不能为空" dc:"页面大小"`
  6. }
  7. type GetCouponReq struct {
  8. Id int `v:"required#卡券id不能为空" dc:"卡券id"`
  9. }
  10. type DeleteCouponReq struct {
  11. Id int `v:"required#卡券id不能为空" dc:"卡券id"`
  12. }
  13. type InsertCouponReq struct {
  14. Id int `dc:"卡券id"`
  15. Title string `v:"required#卡券名字不能为空" dc:"卡券名字"`
  16. Image string `v:"required#卡券图片不能为空" dc:"卡券图片"`
  17. Type int `v:"required#卡券类型不能为空" dc:"卡券类型"`
  18. StartTime *gtime.Time `v:"required#卡券生效时间不能为空" dc:"生效时间"`
  19. EndTime *gtime.Time `v:"required#卡券失效时间不能为空" dc:"失效时间"`
  20. }