diff options
Diffstat (limited to 'backend/models')
| -rw-r--r-- | backend/models/models.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index b9ea9f0..3b1c58d 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -16,7 +16,7 @@ type LoginResponse struct { | |||
| 16 | 16 | ||
| 17 | type User struct { | 17 | type User struct { |
| 18 | SteamID string `json:"steam_id"` | 18 | SteamID string `json:"steam_id"` |
| 19 | Username string `json:"username"` | 19 | UserName string `json:"user_name"` |
| 20 | AvatarLink string `json:"avatar_link"` | 20 | AvatarLink string `json:"avatar_link"` |
| 21 | CountryCode string `json:"country_code"` | 21 | CountryCode string `json:"country_code"` |
| 22 | CreatedAt time.Time `json:"created_at"` | 22 | CreatedAt time.Time `json:"created_at"` |
| @@ -88,7 +88,7 @@ type RecordRequest struct { | |||
| 88 | 88 | ||
| 89 | type UserRanking struct { | 89 | type UserRanking struct { |
| 90 | UserID string `json:"user_id"` | 90 | UserID string `json:"user_id"` |
| 91 | Username string `json:"username"` | 91 | UserName string `json:"user_name"` |
| 92 | TotalScore int `json:"total_score"` | 92 | TotalScore int `json:"total_score"` |
| 93 | } | 93 | } |
| 94 | 94 | ||
| @@ -100,7 +100,7 @@ type RankingsResponse struct { | |||
| 100 | type ProfileResponse struct { | 100 | type ProfileResponse struct { |
| 101 | Profile bool `json:"profile"` | 101 | Profile bool `json:"profile"` |
| 102 | SteamID string `json:"steam_id"` | 102 | SteamID string `json:"steam_id"` |
| 103 | Username string `json:"username"` | 103 | UserName string `json:"user_name"` |
| 104 | AvatarLink string `json:"avatar_link"` | 104 | AvatarLink string `json:"avatar_link"` |
| 105 | CountryCode string `json:"country_code"` | 105 | CountryCode string `json:"country_code"` |
| 106 | ScoresSP []ScoreResponse `json:"scores_sp"` | 106 | ScoresSP []ScoreResponse `json:"scores_sp"` |