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.

43 lines
1.5 KiB

  1. package couponusers
  2. type GetCouponUsersReq struct {
  3. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  4. Jwcode int `json:"jwcode" dc:"查询条件中的精网号"`
  5. Name string `json:"name" dc:"查询条件中的名字"`
  6. PageNo int `json:"pageNo" v:"required#分页信息不能为空" dc:"页码"`
  7. PageSize int `json:"pageSize" v:"required#分页信息不能为空" dc:"每页数量"`
  8. }
  9. type GetCouponUsersRes struct {
  10. Name string `json:"name" dc:"姓名"`
  11. Jwcode int `json:"jwcode" dc:"精网号"`
  12. DeptName string `json:"deptName" dc:"部门"`
  13. ShopName string `json:"shopName" dc:"门店"`
  14. }
  15. type DelCouponUserByJwcodeReq struct {
  16. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  17. Jwcode int `json:"jwcode" v:"required#精网号不能为空" dc:"精网号"`
  18. }
  19. type InsertCouponUserReq struct {
  20. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  21. Jwcodes []int `json:"jwcodes" v:"required#精网号不能为空" dc:"精网号"`
  22. }
  23. type IssueCouponUserReq struct {
  24. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  25. }
  26. type IsEligibleUserReq struct {
  27. CouponIds []int `json:"couponIds" v:"required#用于检测是否已抽取,不能为空" dc:"能抽出的卡券id"`
  28. }
  29. type AddRecordReq struct {
  30. CouponId int `json:"couponId" dc:"卡券id"`
  31. Name string `json:"name" dc:"选择武器名称"`
  32. }
  33. type InsertCouponUserRes struct {
  34. Jwcode int `json:"jwcode" dc:"精网号"`
  35. }