diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-25 22:43:55 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-25 22:43:55 +0300 |
| commit | 7f420a2c34667ed7addab356b17e4be2612ecc0b (patch) | |
| tree | 75196ccaa66d3488923634580f20a52973787704 /backend/models/models.go | |
| parent | docs: add delete record, update discussion and main (#56) (diff) | |
| download | lphub-7f420a2c34667ed7addab356b17e4be2612ecc0b.tar.gz lphub-7f420a2c34667ed7addab356b17e4be2612ecc0b.tar.bz2 lphub-7f420a2c34667ed7addab356b17e4be2612ecc0b.zip | |
feat: completed profile rankings (#51)
Former-commit-id: a2ef452a32803181f6937f08840e5f0e55ed6403
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index e5d92fb..8e16c1c 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -78,8 +78,9 @@ type MapRecords struct { | |||
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | type UserRanking struct { | 80 | type UserRanking struct { |
| 81 | User UserShort `json:"user"` | 81 | Placement int `json:"placement"` |
| 82 | TotalScore int `json:"total_score"` | 82 | User UserShortWithAvatar `json:"user"` |
| 83 | TotalScore int `json:"total_score"` | ||
| 83 | } | 84 | } |
| 84 | 85 | ||
| 85 | type Game struct { | 86 | type Game struct { |
| @@ -105,7 +106,7 @@ type Title struct { | |||
| 105 | 106 | ||
| 106 | type Links struct { | 107 | type Links struct { |
| 107 | P2SR string `json:"p2sr"` | 108 | P2SR string `json:"p2sr"` |
| 108 | Steam string `json:"stream"` | 109 | Steam string `json:"steam"` |
| 109 | YouTube string `json:"youtube"` | 110 | YouTube string `json:"youtube"` |
| 110 | Twitch string `json:"twitch"` | 111 | Twitch string `json:"twitch"` |
| 111 | } | 112 | } |