diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-15 11:43:53 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-15 11:43:53 +0300 |
| commit | b6096d1c07282f28dc264eeaed7a62f4bc9f4d08 (patch) | |
| tree | 05a4fd4eb26b9cc230569d600442abbb3a597e51 /backend/models/responses.go | |
| parent | also update maps table when a new world record is achieved (diff) | |
| download | lphub-b6096d1c07282f28dc264eeaed7a62f4bc9f4d08.tar.gz lphub-b6096d1c07282f28dc264eeaed7a62f4bc9f4d08.tar.bz2 lphub-b6096d1c07282f28dc264eeaed7a62f4bc9f4d08.zip | |
retrieving competitive user records (#26)
Diffstat (limited to '')
| -rw-r--r-- | backend/models/responses.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/backend/models/responses.go b/backend/models/responses.go deleted file mode 100644 index 70ee1b6..0000000 --- a/backend/models/responses.go +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | package models | ||
| 2 | |||
| 3 | type Response struct { | ||
| 4 | Success bool `json:"success"` | ||
| 5 | Message string `json:"message"` | ||
| 6 | Data any `json:"data"` | ||
| 7 | } | ||
| 8 | |||
| 9 | type LoginResponse struct { | ||
| 10 | Token string `json:"token"` | ||
| 11 | } | ||
| 12 | |||
| 13 | type ProfileResponse struct { | ||
| 14 | Profile bool `json:"profile"` | ||
| 15 | SteamID string `json:"steam_id"` | ||
| 16 | Username string `json:"username"` | ||
| 17 | AvatarLink string `json:"avatar_link"` | ||
| 18 | CountryCode string `json:"country_code"` | ||
| 19 | } | ||
| 20 | |||
| 21 | func ErrorResponse(message string) Response { | ||
| 22 | return Response{ | ||
| 23 | Success: false, | ||
| 24 | Message: message, | ||
| 25 | Data: nil, | ||
| 26 | } | ||
| 27 | } | ||