aboutsummaryrefslogtreecommitdiff
path: root/backend/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/models/models.go')
-rw-r--r--backend/models/models.go24
1 files changed, 16 insertions, 8 deletions
diff --git a/backend/models/models.go b/backend/models/models.go
index b766b97..64d90d1 100644
--- a/backend/models/models.go
+++ b/backend/models/models.go
@@ -50,10 +50,12 @@ type Map struct {
50} 50}
51 51
52type MapShort struct { 52type MapShort struct {
53 ID int `json:"id"` 53 ID int `json:"id"`
54 Name string `json:"name"` 54 Name string `json:"name"`
55 Image string `json:"image"` 55 Image string `json:"image"`
56 IsDisabled bool `json:"is_disabled"` 56 IsDisabled bool `json:"is_disabled"`
57 PortalCount int `json:"portal_count"`
58 Difficulty int `json:"difficulty"`
57} 59}
58 60
59type MapSummary struct { 61type MapSummary struct {
@@ -87,10 +89,11 @@ type UserRanking struct {
87} 89}
88 90
89type Game struct { 91type Game struct {
90 ID int `json:"id"` 92 ID int `json:"id"`
91 Name string `json:"name"` 93 Name string `json:"name"`
92 Image string `json:"image"` 94 Image string `json:"image"`
93 IsCoop bool `json:"is_coop"` 95 IsCoop bool `json:"is_coop"`
96 CategoryPortals []CategoryPortal `json:"category_portals"`
94} 97}
95 98
96type Chapter struct { 99type Chapter struct {
@@ -100,6 +103,11 @@ type Chapter struct {
100 IsDisabled bool `json:"is_disabled"` 103 IsDisabled bool `json:"is_disabled"`
101} 104}
102 105
106type CategoryPortal struct {
107 Category Category `json:"category"`
108 PortalCount int `json:"portal_count"`
109}
110
103type Category struct { 111type Category struct {
104 ID int `json:"id"` 112 ID int `json:"id"`
105 Name string `json:"name"` 113 Name string `json:"name"`