diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-24 18:38:48 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-24 18:38:48 +0300 |
| commit | 9f8f895aebdb310508125cac153198d6f5b732c7 (patch) | |
| tree | d76ce39c9163d1dd36d8b9bcee7491c9eb7fcd77 /backend/models | |
| parent | feat: db transaction for record submission (#33) (diff) | |
| download | lphub-9f8f895aebdb310508125cac153198d6f5b732c7.tar.gz lphub-9f8f895aebdb310508125cac153198d6f5b732c7.tar.bz2 lphub-9f8f895aebdb310508125cac153198d6f5b732c7.zip | |
feat: change username to user_name
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"` |