protocol.go 618 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package proto
  2. type Request_GetGame struct {
  3. GameID int
  4. }
  5. type Response_GetGame struct {
  6. Info *GameInfo
  7. }
  8. type Request_GetGameJson struct {
  9. UserId int
  10. UserIp string
  11. PartnerId int
  12. VersionCode int
  13. }
  14. type Request_GetGameAddr struct {
  15. UserId int
  16. }
  17. type Request_GamePolling struct {
  18. Addr string
  19. Players int
  20. }
  21. type Request_IsInReview struct {
  22. UserIp string
  23. VersionCode int
  24. PartnerId int
  25. }
  26. type Response_GetGameList struct {
  27. List []GameInfo
  28. }
  29. type Request_GetCountryAndRegion struct {
  30. IpAddress string
  31. }
  32. type Response_GetCountryAndRegion struct {
  33. Country string
  34. Region string
  35. }