From 40537dace937fc96c851c56f0cb629f36dddfd03 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Tue, 20 Jun 2023 19:55:31 +0300 Subject: feat: improved map summary response, all routes init (#43, #46) --- backend/models/models.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'backend/models/models.go') 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 { } type MapSummary struct { - Rating float32 `json:"rating"` - History []MapHistory `json:"history"` - Routes []MapRoute `json:"routes"` + Routes []MapRoute `json:"routes"` } type MapHistory struct { @@ -43,10 +41,12 @@ type MapHistory struct { } type MapRoute struct { - Category Category `json:"category"` - ScoreCount int `json:"score_count"` - Description string `json:"description"` - Showcase string `json:"showcase"` + Category Category `json:"category"` + History MapHistory `json:"history"` + Rating float32 `json:"rating"` + ScoreCount int `json:"score_count"` + Description string `json:"description"` + Showcase string `json:"showcase"` } type MapRecords struct { -- cgit v1.2.3