diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-18 17:08:27 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-18 17:08:27 +0300 |
| commit | 345fa5d06a47837fca48137163f8a7bdae33cebf (patch) | |
| tree | 4fc34ecee284610b4c36c30fa11b19095f508c20 /backend/models/responses.go | |
| parent | feat: map routes table (#1) (diff) | |
| download | lphub-345fa5d06a47837fca48137163f8a7bdae33cebf.tar.gz lphub-345fa5d06a47837fca48137163f8a7bdae33cebf.tar.bz2 lphub-345fa5d06a47837fca48137163f8a7bdae33cebf.zip | |
feat: improved map summary response (#43)
Diffstat (limited to 'backend/models/responses.go')
| -rw-r--r-- | backend/models/responses.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/models/responses.go b/backend/models/responses.go index 5a88353..dc554ff 100644 --- a/backend/models/responses.go +++ b/backend/models/responses.go | |||
| @@ -30,6 +30,11 @@ type ScoreResponse struct { | |||
| 30 | Records any `json:"records"` | 30 | Records any `json:"records"` |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | type MapSummaryResponse struct { | ||
| 34 | Map Map `json:"map"` | ||
| 35 | Summary MapSummary `json:"summary"` | ||
| 36 | } | ||
| 37 | |||
| 33 | type SearchResponse struct { | 38 | type SearchResponse struct { |
| 34 | Players []UserShort `json:"players"` | 39 | Players []UserShort `json:"players"` |
| 35 | Maps []MapShort `json:"maps"` | 40 | Maps []MapShort `json:"maps"` |