aboutsummaryrefslogtreecommitdiff
path: root/backend/models
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-03 23:20:33 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-03 23:20:33 +0300
commitb1e2389ff27a16f25ffa3b74d2c68442f0dda12b (patch)
tree4aada25fc3e681a286771b71385aa2826f64bac9 /backend/models
parentdocs: refactor docs (diff)
downloadlphub-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.go5
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
53type RecordResponse struct {
54 ScoreCount int `json:"score_count"`
55 ScoreTime int `json:"score_time"`
56}
57
53func ErrorResponse(message string) Response { 58func ErrorResponse(message string) Response {
54 return Response{ 59 return Response{
55 Success: false, 60 Success: false,