diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-03 23:20:33 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-03 23:20:33 +0300 |
| commit | b1e2389ff27a16f25ffa3b74d2c68442f0dda12b (patch) | |
| tree | 4aada25fc3e681a286771b71385aa2826f64bac9 /backend/models | |
| parent | docs: refactor docs (diff) | |
| download | lphub-b1e2389ff27a16f25ffa3b74d2c68442f0dda12b.tar.gz lphub-b1e2389ff27a16f25ffa3b74d2c68442f0dda12b.tar.bz2 lphub-b1e2389ff27a16f25ffa3b74d2c68442f0dda12b.zip | |
feat: display score count and time in record response (#42)
Former-commit-id: f123f9383519780a6e6d0f6828332635b93bad82
Diffstat (limited to 'backend/models')
| -rw-r--r-- | backend/models/responses.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/models/responses.go b/backend/models/responses.go index dc554ff..459911c 100644 --- a/backend/models/responses.go +++ b/backend/models/responses.go | |||
| @@ -50,6 +50,11 @@ type ChapterMapsResponse struct { | |||
| 50 | Maps []MapShort `json:"maps"` | 50 | Maps []MapShort `json:"maps"` |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | type RecordResponse struct { | ||
| 54 | ScoreCount int `json:"score_count"` | ||
| 55 | ScoreTime int `json:"score_time"` | ||
| 56 | } | ||
| 57 | |||
| 53 | func ErrorResponse(message string) Response { | 58 | func ErrorResponse(message string) Response { |
| 54 | return Response{ | 59 | return Response{ |
| 55 | Success: false, | 60 | Success: false, |