diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-22 17:46:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-22 17:46:07 +0300 |
| commit | 9db6e532a55c4ebee45d1250134a8add18bf837b (patch) | |
| tree | f57e2fa61d2d575b72a6d0a489f48cd5df4e2f76 /backend/models | |
| parent | quicker summary fix (#53) (diff) | |
| download | lphub-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.go | 13 |
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 | ||
| 66 | type MapRoute struct { | 66 | type 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 | ||
| 75 | type MapRecords struct { | 76 | type MapRecords struct { |