diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-12 18:44:40 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-12 18:44:40 +0300 |
| commit | 5e8b4791a06c8fa00e56f4d043d25d00ef003c76 (patch) | |
| tree | ebcb6de8e21c809543967055877fc31fa38a18b3 | |
| parent | fix: sql typo for edit map summary (#48) (diff) | |
| download | lphub-5e8b4791a06c8fa00e56f4d043d25d00ef003c76.tar.gz lphub-5e8b4791a06c8fa00e56f4d043d25d00ef003c76.tar.bz2 lphub-5e8b4791a06c8fa00e56f4d043d25d00ef003c76.zip | |
fix: 0 score count / showcase not required (#47)
Former-commit-id: 2a1cea87348e0af8d97512a46093bd38768257ef
Diffstat (limited to '')
| -rw-r--r-- | backend/models/requests.go | 8 | ||||
| -rw-r--r-- | docs/docs.go | 2 | ||||
| -rw-r--r-- | docs/swagger.json | 2 | ||||
| -rw-r--r-- | docs/swagger.yaml | 2 |
4 files changed, 4 insertions, 10 deletions
diff --git a/backend/models/requests.go b/backend/models/requests.go index fac05b6..0113597 100644 --- a/backend/models/requests.go +++ b/backend/models/requests.go | |||
| @@ -8,18 +8,18 @@ import ( | |||
| 8 | type CreateMapSummaryRequest struct { | 8 | type CreateMapSummaryRequest struct { |
| 9 | CategoryID int `json:"category_id" binding:"required"` | 9 | CategoryID int `json:"category_id" binding:"required"` |
| 10 | Description string `json:"description" binding:"required"` | 10 | Description string `json:"description" binding:"required"` |
| 11 | Showcase string `json:"showcase" binding:"required"` | 11 | Showcase string `json:"showcase"` |
| 12 | UserName string `json:"user_name" binding:"required"` | 12 | UserName string `json:"user_name" binding:"required"` |
| 13 | ScoreCount int `json:"score_count" binding:"required"` | 13 | ScoreCount *int `json:"score_count" binding:"required"` |
| 14 | RecordDate time.Time `json:"record_date" binding:"required"` | 14 | RecordDate time.Time `json:"record_date" binding:"required"` |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | type EditMapSummaryRequest struct { | 17 | type EditMapSummaryRequest struct { |
| 18 | RouteID int `json:"route_id" binding:"required"` | 18 | RouteID int `json:"route_id" binding:"required"` |
| 19 | Description string `json:"description" binding:"required"` | 19 | Description string `json:"description" binding:"required"` |
| 20 | Showcase string `json:"showcase" binding:"required"` | 20 | Showcase string `json:"showcase"` |
| 21 | UserName string `json:"user_name" binding:"required"` | 21 | UserName string `json:"user_name" binding:"required"` |
| 22 | ScoreCount int `json:"score_count" binding:"required"` | 22 | ScoreCount *int `json:"score_count" binding:"required"` |
| 23 | RecordDate time.Time `json:"record_date" binding:"required"` | 23 | RecordDate time.Time `json:"record_date" binding:"required"` |
| 24 | } | 24 | } |
| 25 | 25 | ||
diff --git a/docs/docs.go b/docs/docs.go index 13d4cf6..423afad 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -1086,7 +1086,6 @@ const docTemplate = `{ | |||
| 1086 | "description", | 1086 | "description", |
| 1087 | "record_date", | 1087 | "record_date", |
| 1088 | "score_count", | 1088 | "score_count", |
| 1089 | "showcase", | ||
| 1090 | "user_name" | 1089 | "user_name" |
| 1091 | ], | 1090 | ], |
| 1092 | "properties": { | 1091 | "properties": { |
| @@ -1139,7 +1138,6 @@ const docTemplate = `{ | |||
| 1139 | "record_date", | 1138 | "record_date", |
| 1140 | "route_id", | 1139 | "route_id", |
| 1141 | "score_count", | 1140 | "score_count", |
| 1142 | "showcase", | ||
| 1143 | "user_name" | 1141 | "user_name" |
| 1144 | ], | 1142 | ], |
| 1145 | "properties": { | 1143 | "properties": { |
diff --git a/docs/swagger.json b/docs/swagger.json index f644288..2e1a789 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -1079,7 +1079,6 @@ | |||
| 1079 | "description", | 1079 | "description", |
| 1080 | "record_date", | 1080 | "record_date", |
| 1081 | "score_count", | 1081 | "score_count", |
| 1082 | "showcase", | ||
| 1083 | "user_name" | 1082 | "user_name" |
| 1084 | ], | 1083 | ], |
| 1085 | "properties": { | 1084 | "properties": { |
| @@ -1132,7 +1131,6 @@ | |||
| 1132 | "record_date", | 1131 | "record_date", |
| 1133 | "route_id", | 1132 | "route_id", |
| 1134 | "score_count", | 1133 | "score_count", |
| 1135 | "showcase", | ||
| 1136 | "user_name" | 1134 | "user_name" |
| 1137 | ], | 1135 | ], |
| 1138 | "properties": { | 1136 | "properties": { |
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3b706ea..7571073 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -51,7 +51,6 @@ definitions: | |||
| 51 | - description | 51 | - description |
| 52 | - record_date | 52 | - record_date |
| 53 | - score_count | 53 | - score_count |
| 54 | - showcase | ||
| 55 | - user_name | 54 | - user_name |
| 56 | type: object | 55 | type: object |
| 57 | models.DeleteMapSummaryRequest: | 56 | models.DeleteMapSummaryRequest: |
| @@ -87,7 +86,6 @@ definitions: | |||
| 87 | - record_date | 86 | - record_date |
| 88 | - route_id | 87 | - route_id |
| 89 | - score_count | 88 | - score_count |
| 90 | - showcase | ||
| 91 | - user_name | 89 | - user_name |
| 92 | type: object | 90 | type: object |
| 93 | models.Game: | 91 | models.Game: |