rpc.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package model
  2. // ArchiveUserCoins resp user coins.
  3. type ArchiveUserCoins struct {
  4. Multiply int64 `json:"multiply"`
  5. }
  6. // ArgCoinInfo arg coin info.
  7. type ArgCoinInfo struct {
  8. Mid int64
  9. Aid int64
  10. AvType int64
  11. Business string
  12. RealIP string
  13. }
  14. // ArgAddCoin arg add coin.
  15. type ArgAddCoin struct {
  16. Mid int64
  17. UpMid int64
  18. MaxCoin int64
  19. Aid int64
  20. AvType int64
  21. Business string
  22. Multiply int64
  23. RealIP string
  24. // archive only
  25. TypeID int16
  26. PubTime int64
  27. }
  28. // ArgModifyCoin rpc arg ,modify user coins.
  29. type ArgModifyCoin struct {
  30. Mid int64 `json:"mid" form:"mid" validate:"required"`
  31. Count float64 `json:"count" form:"count" validate:"required"`
  32. Reason string `json:"reason" form:"reason" validate:"required"`
  33. IP string `json:"ip"`
  34. Operator string `json:"operator" form:"operator"`
  35. CheckZero int8 `json:"check_zore" form:"check_zero"`
  36. }
  37. // ArgList rpc arg list.
  38. type ArgList struct {
  39. Mid int64
  40. TP int64
  41. Business string
  42. }
  43. // ArgLog arg log
  44. type ArgLog struct {
  45. Mid int64
  46. Recent bool
  47. Translate bool
  48. }
  49. // ArgAddUserCoinExp .
  50. type ArgAddUserCoinExp struct {
  51. Mid int64
  52. Business int64
  53. BusinessName string
  54. Number int64
  55. RealIP string
  56. }
  57. // ArgMid .
  58. type ArgMid struct {
  59. Mid int64
  60. RealIP string
  61. }