aboutsummaryrefslogtreecommitdiff
path: root/backend/models
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-18 12:03:30 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-18 12:03:30 +0300
commitd69a601251ce3a3e785cf9a32233b7d7dd94fea5 (patch)
treead07b32a77ebd3e92b55828e7e3e0a2b2466bfcc /backend/models
parentMerge branch 'main' of https://github.com/pektezol/LeastPortalsHub (diff)
downloadlphub-d69a601251ce3a3e785cf9a32233b7d7dd94fea5.tar.gz
lphub-d69a601251ce3a3e785cf9a32233b7d7dd94fea5.tar.bz2
lphub-d69a601251ce3a3e785cf9a32233b7d7dd94fea5.zip
feat: pagination for map leaderboards
Former-commit-id: 0a38362eadcf1c1ecf5ae29d5a58a015abfd54ee
Diffstat (limited to 'backend/models')
-rw-r--r--backend/models/models.go7
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
112type 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
112type PlayerSummaries struct { 119type PlayerSummaries struct {
113 SteamId string `json:"steamid"` 120 SteamId string `json:"steamid"`
114 CommunityVisibilityState int `json:"communityvisibilitystate"` 121 CommunityVisibilityState int `json:"communityvisibilitystate"`