rpc.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package model
  2. // ArgBuy buy
  3. type ArgBuy struct {
  4. Mid int64
  5. Num int64
  6. IP string
  7. }
  8. // ArgApply apply
  9. type ArgApply struct {
  10. Mid int64
  11. Code string
  12. Cookie string
  13. IP string
  14. }
  15. // ArgStat stat
  16. type ArgStat struct {
  17. Mid int64
  18. IP string
  19. }
  20. // ArgGenerate generator
  21. type ArgGenerate struct {
  22. Mid int64
  23. Num int64
  24. ExpireDay int64
  25. IP string
  26. }
  27. // ArgList list
  28. type ArgList struct {
  29. Mid int64
  30. Start, End int64
  31. }
  32. // ArgEquipment rpc pendant arg .
  33. type ArgEquipment struct {
  34. Mid int64
  35. IP string
  36. }
  37. // ArgEquipments rpc equipment arg .
  38. type ArgEquipments struct {
  39. Mids []int64
  40. IP string
  41. }
  42. // ArgEquip rpc equip arg.
  43. type ArgEquip struct {
  44. Mid int64
  45. Pid int64
  46. Status int8
  47. IP string
  48. Source int64
  49. }
  50. // ArgMid struct.
  51. type ArgMid struct {
  52. Mid int64
  53. }
  54. // ArgMids struct.
  55. type ArgMids struct {
  56. Mids []int64
  57. }
  58. // ArgMedalUserInfo struct.
  59. type ArgMedalUserInfo struct {
  60. Mid int64
  61. Cookie string
  62. IP string
  63. }
  64. // ArgMedalInstall struct.
  65. type ArgMedalInstall struct {
  66. Mid int64 `form:"mid" validate:"gt=0,required"`
  67. Nid int64 `form:"nid" validate:"gt=0,required"`
  68. IsActivated int8 `form:"isActivated"`
  69. }
  70. // ArgGrantByMids one pendant give to multiple users.
  71. type ArgGrantByMids struct {
  72. BatchNo string
  73. Mids []int64
  74. Pid int64
  75. Expire int64
  76. }
  77. // ArgGPMID .
  78. type ArgGPMID struct {
  79. MID int64
  80. GID int64
  81. }