diff options
Diffstat (limited to 'docs/docs.go')
| -rw-r--r-- | docs/docs.go | 118 |
1 files changed, 88 insertions, 30 deletions
diff --git a/docs/docs.go b/docs/docs.go index a0aad6f..090d3e8 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | // Package docs GENERATED BY SWAG; DO NOT EDIT | 1 | // Code generated by swaggo/swag. DO NOT EDIT. |
| 2 | // This file was generated by swaggo/swag | 2 | |
| 3 | package docs | 3 | package docs |
| 4 | 4 | ||
| 5 | import "github.com/swaggo/swag" | 5 | import "github.com/swaggo/swag" |
| @@ -345,26 +345,16 @@ const docTemplate = `{ | |||
| 345 | "required": true | 345 | "required": true |
| 346 | }, | 346 | }, |
| 347 | { | 347 | { |
| 348 | "type": "array", | 348 | "type": "file", |
| 349 | "items": { | 349 | "description": "Host Demo", |
| 350 | "type": "file" | 350 | "name": "host_demo", |
| 351 | }, | ||
| 352 | "description": "Demos", | ||
| 353 | "name": "demos", | ||
| 354 | "in": "formData", | 351 | "in": "formData", |
| 355 | "required": true | 352 | "required": true |
| 356 | }, | 353 | }, |
| 357 | { | 354 | { |
| 358 | "type": "integer", | 355 | "type": "file", |
| 359 | "description": "Score Count", | 356 | "description": "Partner Demo", |
| 360 | "name": "score_count", | 357 | "name": "partner_demo", |
| 361 | "in": "formData", | ||
| 362 | "required": true | ||
| 363 | }, | ||
| 364 | { | ||
| 365 | "type": "integer", | ||
| 366 | "description": "Score Time", | ||
| 367 | "name": "score_time", | ||
| 368 | "in": "formData", | 358 | "in": "formData", |
| 369 | "required": true | 359 | "required": true |
| 370 | }, | 360 | }, |
| @@ -461,6 +451,50 @@ const docTemplate = `{ | |||
| 461 | } | 451 | } |
| 462 | } | 452 | } |
| 463 | } | 453 | } |
| 454 | }, | ||
| 455 | "put": { | ||
| 456 | "produces": [ | ||
| 457 | "application/json" | ||
| 458 | ], | ||
| 459 | "tags": [ | ||
| 460 | "maps" | ||
| 461 | ], | ||
| 462 | "summary": "Edit map summary with specified map id.", | ||
| 463 | "parameters": [ | ||
| 464 | { | ||
| 465 | "type": "integer", | ||
| 466 | "description": "Map ID", | ||
| 467 | "name": "id", | ||
| 468 | "in": "path", | ||
| 469 | "required": true | ||
| 470 | } | ||
| 471 | ], | ||
| 472 | "responses": { | ||
| 473 | "200": { | ||
| 474 | "description": "OK", | ||
| 475 | "schema": { | ||
| 476 | "allOf": [ | ||
| 477 | { | ||
| 478 | "$ref": "#/definitions/models.Response" | ||
| 479 | }, | ||
| 480 | { | ||
| 481 | "type": "object", | ||
| 482 | "properties": { | ||
| 483 | "data": { | ||
| 484 | "$ref": "#/definitions/models.EditMapSummaryRequest" | ||
| 485 | } | ||
| 486 | } | ||
| 487 | } | ||
| 488 | ] | ||
| 489 | } | ||
| 490 | }, | ||
| 491 | "400": { | ||
| 492 | "description": "Bad Request", | ||
| 493 | "schema": { | ||
| 494 | "$ref": "#/definitions/models.Response" | ||
| 495 | } | ||
| 496 | } | ||
| 497 | } | ||
| 464 | } | 498 | } |
| 465 | }, | 499 | }, |
| 466 | "/profile": { | 500 | "/profile": { |
| @@ -843,6 +877,37 @@ const docTemplate = `{ | |||
| 843 | } | 877 | } |
| 844 | } | 878 | } |
| 845 | }, | 879 | }, |
| 880 | "models.EditMapSummaryRequest": { | ||
| 881 | "type": "object", | ||
| 882 | "required": [ | ||
| 883 | "description", | ||
| 884 | "record_date", | ||
| 885 | "route_id", | ||
| 886 | "score_count", | ||
| 887 | "showcase", | ||
| 888 | "user_name" | ||
| 889 | ], | ||
| 890 | "properties": { | ||
| 891 | "description": { | ||
| 892 | "type": "string" | ||
| 893 | }, | ||
| 894 | "record_date": { | ||
| 895 | "type": "string" | ||
| 896 | }, | ||
| 897 | "route_id": { | ||
| 898 | "type": "integer" | ||
| 899 | }, | ||
| 900 | "score_count": { | ||
| 901 | "type": "integer" | ||
| 902 | }, | ||
| 903 | "showcase": { | ||
| 904 | "type": "string" | ||
| 905 | }, | ||
| 906 | "user_name": { | ||
| 907 | "type": "string" | ||
| 908 | } | ||
| 909 | } | ||
| 910 | }, | ||
| 846 | "models.Game": { | 911 | "models.Game": { |
| 847 | "type": "object", | 912 | "type": "object", |
| 848 | "properties": { | 913 | "properties": { |
| @@ -874,6 +939,9 @@ const docTemplate = `{ | |||
| 874 | "id": { | 939 | "id": { |
| 875 | "type": "integer" | 940 | "type": "integer" |
| 876 | }, | 941 | }, |
| 942 | "image": { | ||
| 943 | "type": "string" | ||
| 944 | }, | ||
| 877 | "map_name": { | 945 | "map_name": { |
| 878 | "type": "string" | 946 | "type": "string" |
| 879 | } | 947 | } |
| @@ -1003,24 +1071,12 @@ const docTemplate = `{ | |||
| 1003 | }, | 1071 | }, |
| 1004 | "models.RecordRequest": { | 1072 | "models.RecordRequest": { |
| 1005 | "type": "object", | 1073 | "type": "object", |
| 1006 | "required": [ | ||
| 1007 | "is_partner_orange", | ||
| 1008 | "partner_id", | ||
| 1009 | "score_count", | ||
| 1010 | "score_time" | ||
| 1011 | ], | ||
| 1012 | "properties": { | 1074 | "properties": { |
| 1013 | "is_partner_orange": { | 1075 | "is_partner_orange": { |
| 1014 | "type": "boolean" | 1076 | "type": "boolean" |
| 1015 | }, | 1077 | }, |
| 1016 | "partner_id": { | 1078 | "partner_id": { |
| 1017 | "type": "string" | 1079 | "type": "string" |
| 1018 | }, | ||
| 1019 | "score_count": { | ||
| 1020 | "type": "integer" | ||
| 1021 | }, | ||
| 1022 | "score_time": { | ||
| 1023 | "type": "integer" | ||
| 1024 | } | 1080 | } |
| 1025 | } | 1081 | } |
| 1026 | }, | 1082 | }, |
| @@ -1100,6 +1156,8 @@ var SwaggerInfo = &swag.Spec{ | |||
| 1100 | Description: "Backend API endpoints for the Least Portals Database.", | 1156 | Description: "Backend API endpoints for the Least Portals Database.", |
| 1101 | InfoInstanceName: "swagger", | 1157 | InfoInstanceName: "swagger", |
| 1102 | SwaggerTemplate: docTemplate, | 1158 | SwaggerTemplate: docTemplate, |
| 1159 | LeftDelim: "{{", | ||
| 1160 | RightDelim: "}}", | ||
| 1103 | } | 1161 | } |
| 1104 | 1162 | ||
| 1105 | func init() { | 1163 | func init() { |