From 50f7bf57f45a26362376be37e89128bac9195edc Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Wed, 10 Jul 2024 21:27:31 +0300 Subject: feat: return portal counts for each cat in chapter select (#175) --- backend/models/models.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend/models') 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 { Difficulty int `json:"difficulty"` } +type MapSelect struct { + ID int `json:"id"` + Name string `json:"name"` + Image string `json:"image"` + IsDisabled bool `json:"is_disabled"` + Difficulty int `json:"difficulty"` + CategoryPortals []CategoryPortal `json:"category_portals"` +} + type MapSummary struct { Routes []MapRoute `json:"routes"` } -- cgit v1.2.3