rpc.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package model
  2. // ArgSalaryCoupon salary coupon.
  3. type ArgSalaryCoupon struct {
  4. Mid int64 `form:"mid" validate:"required,min=1,gte=1"`
  5. CouponType int64 `form:"type" validate:"required,min=1,gte=1"`
  6. Origin int64
  7. Count int `form:"count" validate:"required,min=1,gte=1"`
  8. BatchToken string `form:"batch_no" validate:"required"`
  9. AppID int64 `form:"app_id"`
  10. UniqueNo string
  11. }
  12. // ArgRPCPage def .
  13. type ArgRPCPage struct {
  14. Mid int64
  15. State int8
  16. Pn int
  17. Ps int
  18. }
  19. // CouponPageRPCResp def.
  20. type CouponPageRPCResp struct {
  21. Count int64 `json:"count"`
  22. Res []*CouponPageResp `json:"list"`
  23. }
  24. // ArgAllowanceCoupon def .
  25. type ArgAllowanceCoupon struct {
  26. Mid int64
  27. Pirce float64
  28. Platform int
  29. ProdLimMonth int8
  30. ProdLimRenewal int8
  31. }
  32. // ArgUsablePirces def .
  33. type ArgUsablePirces struct {
  34. Mid int64
  35. Pirce []float64
  36. Platform int
  37. ProdLimMonth int8
  38. ProdLimRenewal int8
  39. }
  40. // ArgJuageUsable def .
  41. type ArgJuageUsable struct {
  42. Mid int64
  43. Pirce float64
  44. CouponToken string
  45. Platform int
  46. ProdLimMonth int8
  47. ProdLimRenewal int8
  48. }
  49. // ArgAllowance def .
  50. type ArgAllowance struct {
  51. Mid int64
  52. CouponToken string
  53. }
  54. // ArgNotify .
  55. type ArgNotify struct {
  56. Mid int64
  57. OrderNo string
  58. State int8
  59. }
  60. // ArgAllowanceList .
  61. type ArgAllowanceList struct {
  62. Mid int64
  63. State int8
  64. }
  65. // ArgAllowanceMid .
  66. type ArgAllowanceMid struct {
  67. Mid int64
  68. }