aboutsummaryrefslogtreecommitdiff
path: root/backend/models
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-22 17:46:07 +0300
committerGitHub <noreply@github.com>2023-09-22 17:46:07 +0300
commit9db6e532a55c4ebee45d1250134a8add18bf837b (patch)
treef57e2fa61d2d575b72a6d0a489f48cd5df4e2f76 /backend/models
parentquicker summary fix (#53) (diff)
downloadlphub-9db6e532a55c4ebee45d1250134a8add18bf837b.tar.gz
lphub-9db6e532a55c4ebee45d1250134a8add18bf837b.tar.bz2
lphub-9db6e532a55c4ebee45d1250134a8add18bf837b.zip
feat: completion count on summary for each cm entry (#63)
Former-commit-id: 38779e7cbddb7e850a5f4a56565938b3dcb14857
Diffstat (limited to 'backend/models')
-rw-r--r--backend/models/models.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/backend/models/models.go b/backend/models/models.go
index 35929c1..e5d92fb 100644
--- a/backend/models/models.go
+++ b/backend/models/models.go
@@ -64,12 +64,13 @@ type MapHistory struct {
64} 64}
65 65
66type MapRoute struct { 66type MapRoute struct {
67 RouteID int `json:"route_id"` 67 RouteID int `json:"route_id"`
68 Category Category `json:"category"` 68 Category Category `json:"category"`
69 History MapHistory `json:"history"` 69 History MapHistory `json:"history"`
70 Rating float32 `json:"rating"` 70 Rating float32 `json:"rating"`
71 Description string `json:"description"` 71 CompletionCount int `json:"completion_count"`
72 Showcase string `json:"showcase"` 72 Description string `json:"description"`
73 Showcase string `json:"showcase"`
73} 74}
74 75
75type MapRecords struct { 76type MapRecords struct {