aboutsummaryrefslogtreecommitdiff
path: root/backend/models/models.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-07-10 21:27:31 +0300
committerGitHub <noreply@github.com>2024-07-10 21:27:31 +0300
commit50f7bf57f45a26362376be37e89128bac9195edc (patch)
tree150b82f74797512e2bd6970dfe702d447ffc256e /backend/models/models.go
parentdocs: update maps table ddl (#168) (diff)
downloadlphub-50f7bf57f45a26362376be37e89128bac9195edc.tar.gz
lphub-50f7bf57f45a26362376be37e89128bac9195edc.tar.bz2
lphub-50f7bf57f45a26362376be37e89128bac9195edc.zip
feat: return portal counts for each cat in chapter select (#175)
Diffstat (limited to 'backend/models/models.go')
-rw-r--r--backend/models/models.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go
index 64d90d1..a114f2c 100644
--- a/backend/models/models.go
+++ b/backend/models/models.go
@@ -58,6 +58,15 @@ type MapShort struct {
58 Difficulty int `json:"difficulty"` 58 Difficulty int `json:"difficulty"`
59} 59}
60 60
61type MapSelect struct {
62 ID int `json:"id"`
63 Name string `json:"name"`
64 Image string `json:"image"`
65 IsDisabled bool `json:"is_disabled"`
66 Difficulty int `json:"difficulty"`
67 CategoryPortals []CategoryPortal `json:"category_portals"`
68}
69
61type MapSummary struct { 70type MapSummary struct {
62 Routes []MapRoute `json:"routes"` 71 Routes []MapRoute `json:"routes"`
63} 72}