diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-05-01 13:08:26 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-05-01 13:08:26 +0300 |
| commit | f1f9240bc1a877f6056bcaf400673b54ecc04ad3 (patch) | |
| tree | 361da0b89de3cfb1abfe5b24c3e1edb8190c9e32 /backend/models | |
| parent | doc: update history model (#38) (diff) | |
| download | lphub-f1f9240bc1a877f6056bcaf400673b54ecc04ad3.tar.gz lphub-f1f9240bc1a877f6056bcaf400673b54ecc04ad3.tar.bz2 lphub-f1f9240bc1a877f6056bcaf400673b54ecc04ad3.zip | |
search endpoint init, fetch all data (#40)
Diffstat (limited to 'backend/models')
| -rw-r--r-- | backend/models/models.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index be6265f..cdcd111 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -118,6 +118,17 @@ type ScoreResponse struct { | |||
| 118 | Records any `json:"records"` | 118 | Records any `json:"records"` |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | type SearchResponse struct { | ||
| 122 | Players []struct { | ||
| 123 | SteamID string `json:"steam_id"` | ||
| 124 | UserName string `json:"user_name"` | ||
| 125 | } `json:"players"` | ||
| 126 | Maps []struct { | ||
| 127 | ID int `json:"id"` | ||
| 128 | Name string `json:"name"` | ||
| 129 | } `json:"maps"` | ||
| 130 | } | ||
| 131 | |||
| 121 | type PlayerSummaries struct { | 132 | type PlayerSummaries struct { |
| 122 | SteamId string `json:"steamid"` | 133 | SteamId string `json:"steamid"` |
| 123 | CommunityVisibilityState int `json:"communityvisibilitystate"` | 134 | CommunityVisibilityState int `json:"communityvisibilitystate"` |