diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-20 19:55:31 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-20 19:55:31 +0300 |
| commit | 40537dace937fc96c851c56f0cb629f36dddfd03 (patch) | |
| tree | 85f1764ac794b101259706e3c9b3cf5f4c4f0691 /backend/models/models.go | |
| parent | feat: improved map summary response (#43) (diff) | |
| download | lphub-40537dace937fc96c851c56f0cb629f36dddfd03.tar.gz lphub-40537dace937fc96c851c56f0cb629f36dddfd03.tar.bz2 lphub-40537dace937fc96c851c56f0cb629f36dddfd03.zip | |
feat: improved map summary response, all routes init (#43, #46)
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index 5c9b8f8..783c339 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -31,9 +31,7 @@ type MapShort struct { | |||
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | type MapSummary struct { | 33 | type MapSummary struct { |
| 34 | Rating float32 `json:"rating"` | 34 | Routes []MapRoute `json:"routes"` |
| 35 | History []MapHistory `json:"history"` | ||
| 36 | Routes []MapRoute `json:"routes"` | ||
| 37 | } | 35 | } |
| 38 | 36 | ||
| 39 | type MapHistory struct { | 37 | type MapHistory struct { |
| @@ -43,10 +41,12 @@ type MapHistory struct { | |||
| 43 | } | 41 | } |
| 44 | 42 | ||
| 45 | type MapRoute struct { | 43 | type MapRoute struct { |
| 46 | Category Category `json:"category"` | 44 | Category Category `json:"category"` |
| 47 | ScoreCount int `json:"score_count"` | 45 | History MapHistory `json:"history"` |
| 48 | Description string `json:"description"` | 46 | Rating float32 `json:"rating"` |
| 49 | Showcase string `json:"showcase"` | 47 | ScoreCount int `json:"score_count"` |
| 48 | Description string `json:"description"` | ||
| 49 | Showcase string `json:"showcase"` | ||
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | type MapRecords struct { | 52 | type MapRecords struct { |