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.

58 lines
2.3 KiB

  1. package couponusers
  2. // GetCouponUsersReq 查询卡券用户
  3. type GetCouponUsersReq struct {
  4. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  5. Jwcode int `json:"jwcode" dc:"查询条件中的精网号"`
  6. Name string `json:"name" dc:"查询条件中的名字"`
  7. PageNo int `json:"pageNo" v:"required#分页信息不能为空" dc:"页码"`
  8. PageSize int `json:"pageSize" v:"required#分页信息不能为空" dc:"每页数量"`
  9. }
  10. // GetCouponUsersRes 查询卡券用户
  11. type GetCouponUsersRes struct {
  12. Name string `json:"name" dc:"姓名"`
  13. Jwcode int `json:"jwcode" dc:"精网号"`
  14. DeptName string `json:"deptName" dc:"部门"`
  15. ShopName string `json:"shopName" dc:"门店"`
  16. Total int `json:"total" dc:"总数"`
  17. }
  18. // DelCouponUserByJwcodeReq 删除卡券用户
  19. type DelCouponUserByJwcodeReq struct {
  20. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  21. Jwcode int `json:"jwcode" v:"required#精网号不能为空" dc:"精网号"`
  22. }
  23. // InsertCouponUserReq 给多个用户发放卡券 导入excel
  24. type InsertCouponUserReq struct {
  25. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  26. //Jwcodes []int `json:"jwcodes" v:"required#精网号不能为空" dc:"精网号"`
  27. }
  28. // InsertCouponUserByJwcodeStrReq 给多个用户发放卡券 传jwcodes字符串
  29. type InsertCouponUserByJwcodeStrReq struct {
  30. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  31. Jwcodes string `json:"jwcodes" v:"required#精网号不能为空" dc:"精网号"`
  32. }
  33. // IssueCouponUserReq 给单个用户发放卡券
  34. type IssueCouponUserReq struct {
  35. CouponId int `json:"couponId" v:"required#卡券id不能为空" dc:"卡券id"`
  36. }
  37. // IsEligibleUserReq 检测用户是否有抽取资格,是否已抽取
  38. type IsEligibleUserReq struct {
  39. CouponIds []int `json:"couponIds" v:"required#用于检测是否已抽取,不能为空" dc:"能抽出的卡券id"`
  40. }
  41. // AddRecordReq 添加武器
  42. type AddRecordReq struct {
  43. CouponId int `json:"couponId" dc:"卡券id"`
  44. Name string `json:"name" dc:"选择武器名称"`
  45. }
  46. // InsertCouponUserRes 判断能否抽取卡券,给单个用户发放卡券 用于存放满足条件的精网号
  47. type InsertCouponUserRes struct {
  48. Jwcode int `json:"jwcode" dc:"精网号"`
  49. }