online.go 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. package model
  2. import v1 "go-common/app/service/main/archive/api"
  3. // Online struct of online api response
  4. type Online struct {
  5. RegionCount map[int16]int `json:"region_count"`
  6. AllCount int64 `json:"all_count"`
  7. WebOnline int64 `json:"web_online"`
  8. PlayOnline int64 `json:"play_online"`
  9. }
  10. // OnlineCount struct of online count api data
  11. type OnlineCount struct {
  12. ConnCount int64 `json:"conn_count"`
  13. IPCount int64 `json:"ip_count"`
  14. }
  15. // LiveOnlineCount struct of live online count api data
  16. type LiveOnlineCount struct {
  17. IPConnect int64 `json:"ip_connect"`
  18. TotalOnline int64 `json:"total_online"`
  19. }
  20. // OnlineAid online aids and count
  21. type OnlineAid struct {
  22. Aid int64 `json:"aid"`
  23. Count int64 `json:"count"`
  24. }
  25. // OnlineArc archive whit online count
  26. type OnlineArc struct {
  27. *v1.Arc
  28. OnlineCount int64 `json:"online_count"`
  29. }