diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-24 23:03:51 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-24 23:03:51 +0300 |
| commit | 4d04b875e7dfd26a44e5ce313e3c287224d2badb (patch) | |
| tree | fe7909ccea1ad5fdaca6b249a3b4d9d56dd90fe3 /backend/models/models.go | |
| parent | feat: history data from lp sheet ported (diff) | |
| download | lphub-4d04b875e7dfd26a44e5ce313e3c287224d2badb.tar.gz lphub-4d04b875e7dfd26a44e5ce313e3c287224d2badb.tar.bz2 lphub-4d04b875e7dfd26a44e5ce313e3c287224d2badb.zip | |
feat: map summary history done (#38)
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index ae340df..7ba0da3 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -32,12 +32,12 @@ type Map struct { | |||
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | type MapSummary struct { | 34 | type MapSummary struct { |
| 35 | Description string `json:"description"` | 35 | Description string `json:"description"` |
| 36 | Showcase string `json:"showcase"` | 36 | Showcase string `json:"showcase"` |
| 37 | CategoryScores MapCategoryScores `json:"category_scores"` | 37 | CategoryScores MapCategoryScores `json:"category_scores"` |
| 38 | Rating float32 `json:"rating"` | 38 | Rating float32 `json:"rating"` |
| 39 | Routers []string `json:"routers"` | 39 | Routers []string `json:"routers"` |
| 40 | FirstCompletion any `json:"first_completion"` | 40 | History any `json:"history"` |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | type MapCategoryScores struct { | 43 | type MapCategoryScores struct { |
| @@ -51,6 +51,12 @@ type MapRecords struct { | |||
| 51 | Records any `json:"records"` | 51 | Records any `json:"records"` |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | type MapHistory struct { | ||
| 55 | RunnerName string `json:"runner_name"` | ||
| 56 | ScoreCount int `json:"score_count"` | ||
| 57 | Date time.Time `json:"date"` | ||
| 58 | } | ||
| 59 | |||
| 54 | type RecordSP struct { | 60 | type RecordSP struct { |
| 55 | RecordID int `json:"record_id"` | 61 | RecordID int `json:"record_id"` |
| 56 | Placement int `json:"placement"` | 62 | Placement int `json:"placement"` |