rpc.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package model
  2. // ArgPanel .
  3. type ArgPanel struct {
  4. Mid int64
  5. SortTp int8
  6. IP string
  7. MobiApp string
  8. Device string
  9. Platform string
  10. Plat int64
  11. PanelType string
  12. SubType int32
  13. Month int32
  14. Build int64
  15. Lang string
  16. }
  17. // ArgRPCMid .
  18. type ArgRPCMid struct {
  19. Mid int64 `json:"mid"`
  20. }
  21. // ArgRPCMids .
  22. type ArgRPCMids struct {
  23. Mids []int64 `json:"mids"`
  24. }
  25. // ArgRPCHistory .
  26. type ArgRPCHistory struct {
  27. Mid int64 `form:"mid" validate:"required"`
  28. StartDate string `form:"start_time"`
  29. EndDate string `form:"end_time"`
  30. Pn int `form:"pn"`
  31. Ps int `form:"ps"`
  32. }
  33. //ArgRPCCreateOrder .
  34. type ArgRPCCreateOrder struct {
  35. Mid int64 `form:"mid" validate:"required,min=1,gte=1"`
  36. AppID int64 `form:"appId" default:"0"`
  37. AppSubID string `form:"appSubId"`
  38. Months int16 `form:"months" validate:"required,min=1,gte=1"`
  39. OrderType int8 `form:"orderType" `
  40. DType int8 `form:"dtype"`
  41. Bmid int64 `form:"bmid"`
  42. Platform string `form:"platform"`
  43. Price float64 `form:"price"`
  44. IP string `form:"ip"`
  45. }
  46. // ArgRPCOrderNo .
  47. type ArgRPCOrderNo struct {
  48. OrderNo string `json:"order_no"`
  49. }
  50. // ArgTips arg tips.
  51. type ArgTips struct {
  52. Version int64 `json:"version" form:"version"`
  53. Platform string `json:"platform" form:"platform" validate:"required"`
  54. Position int8 `json:"position" form:"position"`
  55. }
  56. // ArgCouponPanel coupon panel arg.
  57. type ArgCouponPanel struct {
  58. Mid int64 `json:"mid"`
  59. Sid int64 `json:"sid"`
  60. Platform int `json:"platform"`
  61. MobiApp string
  62. Device string
  63. PanelType string
  64. Build int64
  65. }
  66. // ArgCouponPanelV2 coupon panel arg.
  67. type ArgCouponPanelV2 struct {
  68. Mid int64 `json:"mid"`
  69. Sid int64 `json:"sid"`
  70. }
  71. // ArgCouponCancel coupon cancel use.
  72. type ArgCouponCancel struct {
  73. Mid int64 `json:"mid"`
  74. CouponToken string `json:"coupon_token"`
  75. IP string `json:"ip"`
  76. }
  77. // ArgPrivilegeDetail privilege by type.
  78. type ArgPrivilegeDetail struct {
  79. Type int8 `json:"type" form:"type"`
  80. Lang string `json:"lang" form:"lang"`
  81. Platform string `json:"platform" form:"platform" default:"pc"`
  82. }
  83. // ArgPrivilegeBySid privilege by sid .
  84. type ArgPrivilegeBySid struct {
  85. Sid int64 `json:"sid" form:"sid" validate:"required"`
  86. Lang string `form:"lang"`
  87. Platform string `json:"platform" form:"platform" default:"pc"`
  88. }
  89. // ArgPanelExplain arg explain .
  90. type ArgPanelExplain struct {
  91. Mid int64 `json:"mid"`
  92. }
  93. // ArgDialog get order result withc appID and Platform.
  94. type ArgDialog struct {
  95. OrderNo string `form:"order_no" validate:"required"`
  96. Mid int64
  97. AppID int64 `form:"app_id"`
  98. Platform string `form:"platform" default:"pc"`
  99. MobiApp string `form:"mobi_app"`
  100. Device string `form:"device"`
  101. Build int64 `form:"build"`
  102. PanelType string `form:"panel_type" default:"normal"`
  103. }