aboutsummaryrefslogtreecommitdiff
path: root/docs/docs.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/docs.go300
1 files changed, 150 insertions, 150 deletions
diff --git a/docs/docs.go b/docs/docs.go
index 423afad..df01379 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -50,7 +50,7 @@ const docTemplate = `{
50 "type": "object", 50 "type": "object",
51 "properties": { 51 "properties": {
52 "data": { 52 "data": {
53 "$ref": "#/definitions/models.ChapterMapsResponse" 53 "$ref": "#/definitions/controllers.ChapterMapsResponse"
54 } 54 }
55 } 55 }
56 } 56 }
@@ -173,7 +173,7 @@ const docTemplate = `{
173 "type": "object", 173 "type": "object",
174 "properties": { 174 "properties": {
175 "data": { 175 "data": {
176 "$ref": "#/definitions/models.ChaptersResponse" 176 "$ref": "#/definitions/controllers.ChaptersResponse"
177 } 177 }
178 } 178 }
179 } 179 }
@@ -213,7 +213,7 @@ const docTemplate = `{
213 "type": "object", 213 "type": "object",
214 "properties": { 214 "properties": {
215 "data": { 215 "data": {
216 "$ref": "#/definitions/models.LoginResponse" 216 "$ref": "#/definitions/controllers.LoginResponse"
217 } 217 }
218 } 218 }
219 } 219 }
@@ -259,7 +259,7 @@ const docTemplate = `{
259 "in": "body", 259 "in": "body",
260 "required": true, 260 "required": true,
261 "schema": { 261 "schema": {
262 "$ref": "#/definitions/models.EditMapImageRequest" 262 "$ref": "#/definitions/controllers.EditMapImageRequest"
263 } 263 }
264 } 264 }
265 ], 265 ],
@@ -275,7 +275,7 @@ const docTemplate = `{
275 "type": "object", 275 "type": "object",
276 "properties": { 276 "properties": {
277 "data": { 277 "data": {
278 "$ref": "#/definitions/models.EditMapImageRequest" 278 "$ref": "#/definitions/controllers.EditMapImageRequest"
279 } 279 }
280 } 280 }
281 } 281 }
@@ -414,7 +414,7 @@ const docTemplate = `{
414 "type": "object", 414 "type": "object",
415 "properties": { 415 "properties": {
416 "data": { 416 "data": {
417 "$ref": "#/definitions/models.RecordResponse" 417 "$ref": "#/definitions/controllers.RecordResponse"
418 } 418 }
419 } 419 }
420 } 420 }
@@ -466,7 +466,7 @@ const docTemplate = `{
466 "type": "object", 466 "type": "object",
467 "properties": { 467 "properties": {
468 "data": { 468 "data": {
469 "$ref": "#/definitions/models.MapSummaryResponse" 469 "$ref": "#/definitions/controllers.MapSummaryResponse"
470 } 470 }
471 } 471 }
472 } 472 }
@@ -510,7 +510,7 @@ const docTemplate = `{
510 "in": "body", 510 "in": "body",
511 "required": true, 511 "required": true,
512 "schema": { 512 "schema": {
513 "$ref": "#/definitions/models.EditMapSummaryRequest" 513 "$ref": "#/definitions/controllers.EditMapSummaryRequest"
514 } 514 }
515 } 515 }
516 ], 516 ],
@@ -526,7 +526,7 @@ const docTemplate = `{
526 "type": "object", 526 "type": "object",
527 "properties": { 527 "properties": {
528 "data": { 528 "data": {
529 "$ref": "#/definitions/models.EditMapSummaryRequest" 529 "$ref": "#/definitions/controllers.EditMapSummaryRequest"
530 } 530 }
531 } 531 }
532 } 532 }
@@ -570,7 +570,7 @@ const docTemplate = `{
570 "in": "body", 570 "in": "body",
571 "required": true, 571 "required": true,
572 "schema": { 572 "schema": {
573 "$ref": "#/definitions/models.CreateMapSummaryRequest" 573 "$ref": "#/definitions/controllers.CreateMapSummaryRequest"
574 } 574 }
575 } 575 }
576 ], 576 ],
@@ -586,7 +586,7 @@ const docTemplate = `{
586 "type": "object", 586 "type": "object",
587 "properties": { 587 "properties": {
588 "data": { 588 "data": {
589 "$ref": "#/definitions/models.CreateMapSummaryRequest" 589 "$ref": "#/definitions/controllers.CreateMapSummaryRequest"
590 } 590 }
591 } 591 }
592 } 592 }
@@ -630,7 +630,7 @@ const docTemplate = `{
630 "in": "body", 630 "in": "body",
631 "required": true, 631 "required": true,
632 "schema": { 632 "schema": {
633 "$ref": "#/definitions/models.DeleteMapSummaryRequest" 633 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest"
634 } 634 }
635 } 635 }
636 ], 636 ],
@@ -646,7 +646,7 @@ const docTemplate = `{
646 "type": "object", 646 "type": "object",
647 "properties": { 647 "properties": {
648 "data": { 648 "data": {
649 "$ref": "#/definitions/models.DeleteMapSummaryRequest" 649 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest"
650 } 650 }
651 } 651 }
652 } 652 }
@@ -695,7 +695,7 @@ const docTemplate = `{
695 "type": "object", 695 "type": "object",
696 "properties": { 696 "properties": {
697 "data": { 697 "data": {
698 "$ref": "#/definitions/models.ProfileResponse" 698 "$ref": "#/definitions/controllers.ProfileResponse"
699 } 699 }
700 } 700 }
701 } 701 }
@@ -796,7 +796,7 @@ const docTemplate = `{
796 "type": "object", 796 "type": "object",
797 "properties": { 797 "properties": {
798 "data": { 798 "data": {
799 "$ref": "#/definitions/models.ProfileResponse" 799 "$ref": "#/definitions/controllers.ProfileResponse"
800 } 800 }
801 } 801 }
802 } 802 }
@@ -839,7 +839,7 @@ const docTemplate = `{
839 "type": "object", 839 "type": "object",
840 "properties": { 840 "properties": {
841 "data": { 841 "data": {
842 "$ref": "#/definitions/models.RankingsResponse" 842 "$ref": "#/definitions/controllers.RankingsResponse"
843 } 843 }
844 } 844 }
845 } 845 }
@@ -884,7 +884,7 @@ const docTemplate = `{
884 "type": "object", 884 "type": "object",
885 "properties": { 885 "properties": {
886 "data": { 886 "data": {
887 "$ref": "#/definitions/models.SearchResponse" 887 "$ref": "#/definitions/controllers.SearchResponse"
888 } 888 }
889 } 889 }
890 } 890 }
@@ -921,7 +921,7 @@ const docTemplate = `{
921 "type": "object", 921 "type": "object",
922 "properties": { 922 "properties": {
923 "data": { 923 "data": {
924 "$ref": "#/definitions/models.LoginResponse" 924 "$ref": "#/definitions/controllers.LoginResponse"
925 } 925 }
926 } 926 }
927 } 927 }
@@ -956,7 +956,7 @@ const docTemplate = `{
956 "type": "object", 956 "type": "object",
957 "properties": { 957 "properties": {
958 "data": { 958 "data": {
959 "$ref": "#/definitions/models.LoginResponse" 959 "$ref": "#/definitions/controllers.LoginResponse"
960 } 960 }
961 } 961 }
962 } 962 }
@@ -1005,7 +1005,7 @@ const docTemplate = `{
1005 "type": "object", 1005 "type": "object",
1006 "properties": { 1006 "properties": {
1007 "data": { 1007 "data": {
1008 "$ref": "#/definitions/models.ProfileResponse" 1008 "$ref": "#/definitions/controllers.ProfileResponse"
1009 } 1009 }
1010 } 1010 }
1011 } 1011 }
@@ -1029,29 +1029,7 @@ const docTemplate = `{
1029 } 1029 }
1030 }, 1030 },
1031 "definitions": { 1031 "definitions": {
1032 "models.Category": { 1032 "controllers.ChapterMapsResponse": {
1033 "type": "object",
1034 "properties": {
1035 "id": {
1036 "type": "integer"
1037 },
1038 "name": {
1039 "type": "string"
1040 }
1041 }
1042 },
1043 "models.Chapter": {
1044 "type": "object",
1045 "properties": {
1046 "id": {
1047 "type": "integer"
1048 },
1049 "name": {
1050 "type": "string"
1051 }
1052 }
1053 },
1054 "models.ChapterMapsResponse": {
1055 "type": "object", 1033 "type": "object",
1056 "properties": { 1034 "properties": {
1057 "chapter": { 1035 "chapter": {
@@ -1065,7 +1043,7 @@ const docTemplate = `{
1065 } 1043 }
1066 } 1044 }
1067 }, 1045 },
1068 "models.ChaptersResponse": { 1046 "controllers.ChaptersResponse": {
1069 "type": "object", 1047 "type": "object",
1070 "properties": { 1048 "properties": {
1071 "chapters": { 1049 "chapters": {
@@ -1079,7 +1057,7 @@ const docTemplate = `{
1079 } 1057 }
1080 } 1058 }
1081 }, 1059 },
1082 "models.CreateMapSummaryRequest": { 1060 "controllers.CreateMapSummaryRequest": {
1083 "type": "object", 1061 "type": "object",
1084 "required": [ 1062 "required": [
1085 "category_id", 1063 "category_id",
@@ -1109,7 +1087,7 @@ const docTemplate = `{
1109 } 1087 }
1110 } 1088 }
1111 }, 1089 },
1112 "models.DeleteMapSummaryRequest": { 1090 "controllers.DeleteMapSummaryRequest": {
1113 "type": "object", 1091 "type": "object",
1114 "required": [ 1092 "required": [
1115 "route_id" 1093 "route_id"
@@ -1120,7 +1098,7 @@ const docTemplate = `{
1120 } 1098 }
1121 } 1099 }
1122 }, 1100 },
1123 "models.EditMapImageRequest": { 1101 "controllers.EditMapImageRequest": {
1124 "type": "object", 1102 "type": "object",
1125 "required": [ 1103 "required": [
1126 "image" 1104 "image"
@@ -1131,7 +1109,7 @@ const docTemplate = `{
1131 } 1109 }
1132 } 1110 }
1133 }, 1111 },
1134 "models.EditMapSummaryRequest": { 1112 "controllers.EditMapSummaryRequest": {
1135 "type": "object", 1113 "type": "object",
1136 "required": [ 1114 "required": [
1137 "description", 1115 "description",
@@ -1161,24 +1139,143 @@ const docTemplate = `{
1161 } 1139 }
1162 } 1140 }
1163 }, 1141 },
1164 "models.Game": { 1142 "controllers.LoginResponse": {
1143 "type": "object",
1144 "properties": {
1145 "token": {
1146 "type": "string"
1147 }
1148 }
1149 },
1150 "controllers.MapSummaryResponse": {
1151 "type": "object",
1152 "properties": {
1153 "map": {
1154 "$ref": "#/definitions/models.Map"
1155 },
1156 "summary": {
1157 "$ref": "#/definitions/models.MapSummary"
1158 }
1159 }
1160 },
1161 "controllers.ProfileResponse": {
1162 "type": "object",
1163 "properties": {
1164 "avatar_link": {
1165 "type": "string"
1166 },
1167 "country_code": {
1168 "type": "string"
1169 },
1170 "profile": {
1171 "type": "boolean"
1172 },
1173 "scores_mp": {
1174 "type": "array",
1175 "items": {
1176 "$ref": "#/definitions/controllers.ScoreResponse"
1177 }
1178 },
1179 "scores_sp": {
1180 "type": "array",
1181 "items": {
1182 "$ref": "#/definitions/controllers.ScoreResponse"
1183 }
1184 },
1185 "steam_id": {
1186 "type": "string"
1187 },
1188 "user_name": {
1189 "type": "string"
1190 }
1191 }
1192 },
1193 "controllers.RankingsResponse": {
1194 "type": "object",
1195 "properties": {
1196 "rankings_mp": {
1197 "type": "array",
1198 "items": {
1199 "$ref": "#/definitions/models.UserRanking"
1200 }
1201 },
1202 "rankings_sp": {
1203 "type": "array",
1204 "items": {
1205 "$ref": "#/definitions/models.UserRanking"
1206 }
1207 }
1208 }
1209 },
1210 "controllers.RecordResponse": {
1211 "type": "object",
1212 "properties": {
1213 "score_count": {
1214 "type": "integer"
1215 },
1216 "score_time": {
1217 "type": "integer"
1218 }
1219 }
1220 },
1221 "controllers.ScoreResponse": {
1222 "type": "object",
1223 "properties": {
1224 "map_id": {
1225 "type": "integer"
1226 },
1227 "records": {}
1228 }
1229 },
1230 "controllers.SearchResponse": {
1231 "type": "object",
1232 "properties": {
1233 "maps": {
1234 "type": "array",
1235 "items": {
1236 "$ref": "#/definitions/models.MapShort"
1237 }
1238 },
1239 "players": {
1240 "type": "array",
1241 "items": {
1242 "$ref": "#/definitions/models.UserShort"
1243 }
1244 }
1245 }
1246 },
1247 "models.Category": {
1165 "type": "object", 1248 "type": "object",
1166 "properties": { 1249 "properties": {
1167 "id": { 1250 "id": {
1168 "type": "integer" 1251 "type": "integer"
1169 }, 1252 },
1170 "is_coop": { 1253 "name": {
1171 "type": "boolean" 1254 "type": "string"
1255 }
1256 }
1257 },
1258 "models.Chapter": {
1259 "type": "object",
1260 "properties": {
1261 "id": {
1262 "type": "integer"
1172 }, 1263 },
1173 "name": { 1264 "name": {
1174 "type": "string" 1265 "type": "string"
1175 } 1266 }
1176 } 1267 }
1177 }, 1268 },
1178 "models.LoginResponse": { 1269 "models.Game": {
1179 "type": "object", 1270 "type": "object",
1180 "properties": { 1271 "properties": {
1181 "token": { 1272 "id": {
1273 "type": "integer"
1274 },
1275 "is_coop": {
1276 "type": "boolean"
1277 },
1278 "name": {
1182 "type": "string" 1279 "type": "string"
1183 } 1280 }
1184 } 1281 }
@@ -1271,77 +1368,6 @@ const docTemplate = `{
1271 } 1368 }
1272 } 1369 }
1273 }, 1370 },
1274 "models.MapSummaryResponse": {
1275 "type": "object",
1276 "properties": {
1277 "map": {
1278 "$ref": "#/definitions/models.Map"
1279 },
1280 "summary": {
1281 "$ref": "#/definitions/models.MapSummary"
1282 }
1283 }
1284 },
1285 "models.ProfileResponse": {
1286 "type": "object",
1287 "properties": {
1288 "avatar_link": {
1289 "type": "string"
1290 },
1291 "country_code": {
1292 "type": "string"
1293 },
1294 "profile": {
1295 "type": "boolean"
1296 },
1297 "scores_mp": {
1298 "type": "array",
1299 "items": {
1300 "$ref": "#/definitions/models.ScoreResponse"
1301 }
1302 },
1303 "scores_sp": {
1304 "type": "array",
1305 "items": {
1306 "$ref": "#/definitions/models.ScoreResponse"
1307 }
1308 },
1309 "steam_id": {
1310 "type": "string"
1311 },
1312 "user_name": {
1313 "type": "string"
1314 }
1315 }
1316 },
1317 "models.RankingsResponse": {
1318 "type": "object",
1319 "properties": {
1320 "rankings_mp": {
1321 "type": "array",
1322 "items": {
1323 "$ref": "#/definitions/models.UserRanking"
1324 }
1325 },
1326 "rankings_sp": {
1327 "type": "array",
1328 "items": {
1329 "$ref": "#/definitions/models.UserRanking"
1330 }
1331 }
1332 }
1333 },
1334 "models.RecordResponse": {
1335 "type": "object",
1336 "properties": {
1337 "score_count": {
1338 "type": "integer"
1339 },
1340 "score_time": {
1341 "type": "integer"
1342 }
1343 }
1344 },
1345 "models.Response": { 1371 "models.Response": {
1346 "type": "object", 1372 "type": "object",
1347 "properties": { 1373 "properties": {
@@ -1354,32 +1380,6 @@ const docTemplate = `{
1354 } 1380 }
1355 } 1381 }
1356 }, 1382 },
1357 "models.ScoreResponse": {
1358 "type": "object",
1359 "properties": {
1360 "map_id": {
1361 "type": "integer"
1362 },
1363 "records": {}
1364 }
1365 },
1366 "models.SearchResponse": {
1367 "type": "object",
1368 "properties": {
1369 "maps": {
1370 "type": "array",
1371 "items": {
1372 "$ref": "#/definitions/models.MapShort"
1373 }
1374 },
1375 "players": {
1376 "type": "array",
1377 "items": {
1378 "$ref": "#/definitions/models.UserShort"
1379 }
1380 }
1381 }
1382 },
1383 "models.UserRanking": { 1383 "models.UserRanking": {
1384 "type": "object", 1384 "type": "object",
1385 "properties": { 1385 "properties": {