From d69a601251ce3a3e785cf9a32233b7d7dd94fea5 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 18 Sep 2023 12:03:30 +0300 Subject: feat: pagination for map leaderboards Former-commit-id: 0a38362eadcf1c1ecf5ae29d5a58a015abfd54ee --- backend/models/models.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backend/models/models.go') 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 { Twitch string `json:"twitch"` } +type Pagination struct { + TotalRecords int `json:"total_records"` + TotalPages int `json:"total_pages"` + CurrentPage int `json:"current_page"` + PageSize int `json:"page_size"` +} + type PlayerSummaries struct { SteamId string `json:"steamid"` CommunityVisibilityState int `json:"communityvisibilitystate"` -- cgit v1.2.3