aboutsummaryrefslogtreecommitdiff
path: root/backend/models/models.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-06-20 19:55:31 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-06-20 19:55:31 +0300
commit40537dace937fc96c851c56f0cb629f36dddfd03 (patch)
tree85f1764ac794b101259706e3c9b3cf5f4c4f0691 /backend/models/models.go
parentfeat: improved map summary response (#43) (diff)
downloadlphub-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.go14
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
33type MapSummary struct { 33type 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
39type MapHistory struct { 37type MapHistory struct {
@@ -43,10 +41,12 @@ type MapHistory struct {
43} 41}
44 42
45type MapRoute struct { 43type 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
52type MapRecords struct { 52type MapRecords struct {