diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-18 12:03:30 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-18 12:03:30 +0300 |
| commit | d69a601251ce3a3e785cf9a32233b7d7dd94fea5 (patch) | |
| tree | ad07b32a77ebd3e92b55828e7e3e0a2b2466bfcc /backend/models/models.go | |
| parent | Merge branch 'main' of https://github.com/pektezol/LeastPortalsHub (diff) | |
| download | lphub-d69a601251ce3a3e785cf9a32233b7d7dd94fea5.tar.gz lphub-d69a601251ce3a3e785cf9a32233b7d7dd94fea5.tar.bz2 lphub-d69a601251ce3a3e785cf9a32233b7d7dd94fea5.zip | |
feat: pagination for map leaderboards
Former-commit-id: 0a38362eadcf1c1ecf5ae29d5a58a015abfd54ee
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index 2d54295..35929c1 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -109,6 +109,13 @@ type Links struct { | |||
| 109 | Twitch string `json:"twitch"` | 109 | Twitch string `json:"twitch"` |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | type Pagination struct { | ||
| 113 | TotalRecords int `json:"total_records"` | ||
| 114 | TotalPages int `json:"total_pages"` | ||
| 115 | CurrentPage int `json:"current_page"` | ||
| 116 | PageSize int `json:"page_size"` | ||
| 117 | } | ||
| 118 | |||
| 112 | type PlayerSummaries struct { | 119 | type PlayerSummaries struct { |
| 113 | SteamId string `json:"steamid"` | 120 | SteamId string `json:"steamid"` |
| 114 | CommunityVisibilityState int `json:"communityvisibilitystate"` | 121 | CommunityVisibilityState int `json:"communityvisibilitystate"` |