diff options
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 { |