rpc.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package model
  2. // ArgReport .
  3. type ArgReport struct {
  4. ID int64
  5. APPID int64
  6. PlatformID int
  7. Mid int64
  8. Buvid string
  9. DeviceToken string
  10. Build int
  11. TimeZone int
  12. NotifySwitch int
  13. DeviceBrand string
  14. DeviceModel string
  15. OSVersion string
  16. Extra string
  17. RealIP string
  18. }
  19. // ArgReports .
  20. type ArgReports struct {
  21. Reports []*Report
  22. }
  23. // ArgUserReports .
  24. type ArgUserReports struct {
  25. Mid int64
  26. Reports []*Report
  27. }
  28. // ArgToken .
  29. type ArgToken struct {
  30. Token string
  31. RealIP string
  32. }
  33. // ArgMidToken .
  34. type ArgMidToken struct {
  35. Mid int64
  36. Token string
  37. RealIP string
  38. }
  39. // ArgDelInvalidReport .
  40. type ArgDelInvalidReport struct {
  41. Type int
  42. RealIP string
  43. }
  44. // ArgMid .
  45. type ArgMid struct {
  46. Mid int64
  47. RealIP string
  48. }
  49. // ArgSetting .
  50. type ArgSetting struct {
  51. Mid int64
  52. Type int
  53. Value int
  54. RealIP string
  55. }
  56. // ArgCallback .
  57. type ArgCallback struct {
  58. Task string
  59. APP int64
  60. Platform int
  61. Mid int64
  62. Pid int // mobi_app ID
  63. Token string
  64. Buvid string
  65. Click uint8 // 是否被点击
  66. Extra *CallbackExtra
  67. }
  68. // ArgMidProgress .
  69. type ArgMidProgress struct {
  70. Task string
  71. MidTotal int64
  72. MidValid int64
  73. RealIP string
  74. }