aboutsummaryrefslogtreecommitdiff
path: root/backend/models
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-01-17 02:15:56 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-01-17 02:15:56 +0300
commit6a4d54d7b23eece1434ba1c2bec5b68b16ab7897 (patch)
tree30c793a2f2d874e5f1b6c76881be34c82b5133c4 /backend/models
parentranking placements in each map with correct tie handling (#5, #27) (diff)
downloadlphub-6a4d54d7b23eece1434ba1c2bec5b68b16ab7897.tar.gz
lphub-6a4d54d7b23eece1434ba1c2bec5b68b16ab7897.tar.bz2
lphub-6a4d54d7b23eece1434ba1c2bec5b68b16ab7897.zip
added rankings for finishing all sp and mp maps (#28)
Diffstat (limited to 'backend/models')
-rw-r--r--backend/models/models.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go
index 0c380ff..5ce3ebf 100644
--- a/backend/models/models.go
+++ b/backend/models/models.go
@@ -61,6 +61,17 @@ type RecordRequest struct {
61 IsPartnerOrange bool `json:"is_partner_orange" form:"is_partner_orange" binding:"required"` 61 IsPartnerOrange bool `json:"is_partner_orange" form:"is_partner_orange" binding:"required"`
62} 62}
63 63
64type UserRanking struct {
65 UserID string `json:"user_id"`
66 Username string `json:"username"`
67 TotalScore int `json:"total_score"`
68}
69
70type RankingsResponse struct {
71 RankingsSP []UserRanking `json:"rankings_sp"`
72 RankingsMP []UserRanking `json:"rankings_mp"`
73}
74
64type ProfileResponse struct { 75type ProfileResponse struct {
65 Profile bool `json:"profile"` 76 Profile bool `json:"profile"`
66 SteamID string `json:"steam_id"` 77 SteamID string `json:"steam_id"`