From d9c5ca2956cb3f5d705082b19cf5015a4944ac4b Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Thu, 1 Oct 2026 14:19:43 +0700 Subject: [PATCH] updates proto --- api/main.proto | 312 ++-- cmd/evening_detective_server/gateway_test.go | 8 +- .../main.swagger.json | 944 ++++++------- docs/GO_STANDARD.md | 10 +- internal/app/answers.go | 6 +- internal/app/change_password_test.go | 4 +- internal/app/game_map.go | 22 +- internal/app/game_mapper.go | 2 +- internal/app/game_reviews.go | 12 +- internal/app/games.go | 26 +- internal/app/results_mapper_test.go | 2 +- internal/app/scenario_archive.go | 4 +- internal/app/scenario_story.go | 18 +- internal/app/scenarios.go | 14 +- internal/app/screens.go | 56 +- internal/app/story_mapper.go | 2 +- internal/app/team_mapper.go | 2 +- internal/app/team_qr.go | 4 +- internal/app/team_qr_test.go | 2 +- internal/app/teams.go | 16 +- internal/app/tickets.go | 10 +- internal/app/user_mapper.go | 2 +- internal/app/user_mapper_test.go | 2 +- internal/app/users.go | 14 +- proto/main.pb.go | 983 ++++++------- proto/main.pb.gw.go | 1256 ++++++++--------- proto/main_grpc.pb.go | 36 +- 27 files changed, 1897 insertions(+), 1872 deletions(-) diff --git a/api/main.proto b/api/main.proto index 672c83d..5994237 100644 --- a/api/main.proto +++ b/api/main.proto @@ -1,5 +1,11 @@ syntax = "proto3"; +// Contract rules: +// - fields inside each message are declared in ascending number order; +// - published field numbers are never renumbered or reused; +// - use ID, ID and URL for abbreviation fields so generated clients +// keep the same naming convention across Go and TypeScript. + package crabs.evening_detective_server; import "google/api/annotations.proto"; @@ -184,9 +190,9 @@ service EveningDetectiveServer { }; } - rpc GetUserById(GetUserByIdReq) returns (GetUserByIdRsp) { + rpc GetUserByID(GetUserByIDReq) returns (GetUserByIDRsp) { option (google.api.http) = { - get: "/api/users/{id}" + get: "/api/users/{ID}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Пользователи"; @@ -208,7 +214,7 @@ service EveningDetectiveServer { // Ошибки: 401, 403, 400, 404, 500. rpc ChangeUserPassword(ChangeUserPasswordReq) returns (ChangeUserPasswordRsp) { option (google.api.http) = { - post: "/api/users/{id}/password" + post: "/api/users/{ID}/password" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -220,7 +226,7 @@ service EveningDetectiveServer { rpc AddUserRole(AddUserRoleReq) returns (AddUserRoleRsp) { option (google.api.http) = { - post: "/api/users/{id}/role/add" + post: "/api/users/{ID}/role/add" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -231,7 +237,7 @@ service EveningDetectiveServer { rpc DeleteUserRole(DeleteUserRoleReq) returns (DeleteUserRoleRsp) { option (google.api.http) = { - post: "/api/users/{id}/role/delete" + post: "/api/users/{ID}/role/delete" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -304,7 +310,7 @@ service EveningDetectiveServer { rpc GetFullScenario(GetScenarioReq) returns (GetScenarioRsp) { option (google.api.http) = { - get: "/api/scenarios/{id}/full" + get: "/api/scenarios/{ID}/full" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Сценарии"; @@ -314,7 +320,7 @@ service EveningDetectiveServer { rpc GetScenario(GetScenarioReq) returns (GetScenarioRsp) { option (google.api.http) = { - get: "/api/scenarios/{id}" + get: "/api/scenarios/{ID}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Сценарии"; @@ -324,7 +330,7 @@ service EveningDetectiveServer { rpc UpdateScenario(UpdateScenarioReq) returns (UpdateScenarioRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}" + put : "/api/scenarios/{ID}" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -335,7 +341,7 @@ service EveningDetectiveServer { rpc PublicScenario(PublicScenarioReq) returns (PublicScenarioRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/public" + put : "/api/scenarios/{ID}/public" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -346,7 +352,7 @@ service EveningDetectiveServer { rpc DraftScenario(DraftScenarioReq) returns (DraftScenarioRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/draft" + put : "/api/scenarios/{ID}/draft" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -357,7 +363,7 @@ service EveningDetectiveServer { rpc DeleteScenario(DeleteScenarioReq) returns (DeleteScenarioRsp) { option (google.api.http) = { - delete: "/api/scenarios/{id}" + delete: "/api/scenarios/{ID}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Сценарии"; @@ -367,7 +373,7 @@ service EveningDetectiveServer { rpc AddScenarioPlace(AddScenarioPlaceReq) returns (AddScenarioPlaceRsp) { option (google.api.http) = { - post: "/api/scenarios/{id}/places" + post: "/api/scenarios/{ID}/places" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -378,7 +384,7 @@ service EveningDetectiveServer { rpc UpdateScenarioPlace(UpdateScenarioPlaceReq) returns (UpdateScenarioPlaceRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/places/{code}" + put : "/api/scenarios/{ID}/places/{code}" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -389,7 +395,7 @@ service EveningDetectiveServer { rpc DeleteScenarioPlace(DeleteScenarioPlaceReq) returns (DeleteScenarioPlaceRsp) { option (google.api.http) = { - delete: "/api/scenarios/{id}/places/{code}" + delete: "/api/scenarios/{ID}/places/{code}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Точки сценария"; @@ -399,7 +405,7 @@ service EveningDetectiveServer { rpc AddScenarioQuestion(AddScenarioQuestionReq) returns (AddScenarioQuestionRsp) { option (google.api.http) = { - post: "/api/scenarios/{id}/questions" + post: "/api/scenarios/{ID}/questions" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -410,7 +416,7 @@ service EveningDetectiveServer { rpc UpdateScenarioQuestion(UpdateScenarioQuestionReq) returns (UpdateScenarioQuestionRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/questions/{code}" + put : "/api/scenarios/{ID}/questions/{code}" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -421,7 +427,7 @@ service EveningDetectiveServer { rpc DeleteScenarioQuestion(DeleteScenarioQuestionReq) returns (DeleteScenarioQuestionRsp) { option (google.api.http) = { - delete: "/api/scenarios/{id}/questions/{code}" + delete: "/api/scenarios/{ID}/questions/{code}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Вопросы сценария"; @@ -432,7 +438,7 @@ service EveningDetectiveServer { // Загрузить файл через UploadFile, затем передать его имя; пустое имя удаляет фон дела. rpc UpdateScenarioBackground(UpdateScenarioBackgroundReq) returns (UpdateScenarioBackgroundRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/background" + put : "/api/scenarios/{ID}/background" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -443,7 +449,7 @@ service EveningDetectiveServer { rpc UpdateScenarioIntro(UpdateScenarioIntroReq) returns (UpdateScenarioIntroRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/introduction" + put : "/api/scenarios/{ID}/introduction" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -455,7 +461,7 @@ service EveningDetectiveServer { // Видео загружается через UploadFile (MP4/WebM). Пустая conclusion удаляет закрывашку. rpc UpdateScenarioConclusion(UpdateScenarioConclusionReq) returns (UpdateScenarioConclusionRsp) { option (google.api.http) = { - put : "/api/scenarios/{id}/conclusion" + put : "/api/scenarios/{ID}/conclusion" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -466,7 +472,7 @@ service EveningDetectiveServer { rpc DownloadScenarioArchive(DownloadScenarioArchiveReq) returns (google.api.HttpBody) { option (google.api.http) = { - get: "/api/scenarios/{id}/archive" + get: "/api/scenarios/{ID}/archive" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Сценарии"; @@ -508,7 +514,7 @@ service EveningDetectiveServer { rpc GetGame(GetGameReq) returns (GetGameRsp) { option (google.api.http) = { - get: "/api/games/{id}" + get: "/api/games/{ID}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Игры"; @@ -518,7 +524,7 @@ service EveningDetectiveServer { rpc IssueGameTickets(IssueGameTicketsReq) returns (IssueGameTicketsRsp) { option (google.api.http) = { - post: "/api/games/{gameId}/tickets" + post: "/api/games/{gameID}/tickets" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -582,7 +588,7 @@ service EveningDetectiveServer { rpc GetGameScreens(GetGameScreensReq) returns (GetGameScreensRsp) { option (google.api.http) = { - get: "/api/games/{gameId}/screens" + get: "/api/games/{gameID}/screens" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Экраны"; @@ -593,7 +599,7 @@ service EveningDetectiveServer { // Привязать экран к игре. Требует авторизацию организатора, автора или администратора. rpc BindScreen(BindScreenReq) returns (BindScreenRsp) { option (google.api.http) = { - post: "/api/screens/{screenId}/bind" + post: "/api/screens/{screenID}/bind" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -605,7 +611,7 @@ service EveningDetectiveServer { // Отвязать экран от игры. Требует авторизацию организатора, автора или администратора. rpc UnbindScreen(UnbindScreenReq) returns (UnbindScreenRsp) { option (google.api.http) = { - post: "/api/screens/{screenId}/unbind" + post: "/api/screens/{screenID}/unbind" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -616,7 +622,7 @@ service EveningDetectiveServer { rpc SetScreenSound(SetScreenSoundReq) returns (SetScreenSoundRsp) { option (google.api.http) = { - post: "/api/screens/{screenId}/sound" + post: "/api/screens/{screenID}/sound" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -626,7 +632,7 @@ service EveningDetectiveServer { } rpc GetGameMap(GetGameMapReq) returns (GetGameMapRsp) { - option (google.api.http) = { get: "/api/games/{gameId}/map" }; + option (google.api.http) = { get: "/api/games/{gameID}/map" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Экраны"; summary: "Получить карту игры"; @@ -635,7 +641,7 @@ service EveningDetectiveServer { rpc UpdateGameMapItem(UpdateGameMapItemReq) returns (UpdateGameMapItemRsp) { option (google.api.http) = { - post: "/api/games/{gameId}/map/items/{kind}/{itemId}" + post: "/api/games/{gameID}/map/items/{kind}/{itemID}" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -647,7 +653,7 @@ service EveningDetectiveServer { // Изменить общий режим показа всех экранов игры. rpc SetScreenMode(SetScreenModeReq) returns (SetScreenModeRsp) { option (google.api.http) = { - post: "/api/games/{gameId}/screens/mode" + post: "/api/games/{gameID}/screens/mode" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -658,7 +664,7 @@ service EveningDetectiveServer { rpc SetScreenTimer(SetScreenTimerReq) returns (SetScreenTimerRsp) { option (google.api.http) = { - post: "/api/games/{gameId}/screens/timer" + post: "/api/games/{gameID}/screens/timer" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -670,7 +676,7 @@ service EveningDetectiveServer { // Отправить общую команду экранам игры. rpc SendScreenCommand(SendScreenCommandReq) returns (SendScreenCommandRsp) { option (google.api.http) = { - post: "/api/games/{gameId}/screens/command" + post: "/api/games/{gameID}/screens/command" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -689,7 +695,7 @@ service EveningDetectiveServer { rpc DownloadTeamQR(GetGameReq) returns (google.api.HttpBody) { option (google.api.http) = { - get: "/api/games/{id}/teams/qr.pdf" + get: "/api/games/{ID}/teams/qr.pdf" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Игры"; @@ -699,7 +705,7 @@ service EveningDetectiveServer { rpc GetGameAnswers(GetGameAnswersReq) returns (GetGameAnswersRsp) { option (google.api.http) = { - get: "/api/games/{gameId}/answers" + get: "/api/games/{gameID}/answers" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Игры"; @@ -709,7 +715,7 @@ service EveningDetectiveServer { rpc GetGameResults(GetGameResultsReq) returns (GetGameResultsRsp) { option (google.api.http) = { - get: "/api/games/{gameId}/results" + get: "/api/games/{gameID}/results" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Игры"; @@ -719,7 +725,7 @@ service EveningDetectiveServer { rpc CreateGameReview(CreateGameReviewReq) returns (CreateGameReviewRsp) { option (google.api.http) = { - post: "/api/games/{gameId}/reviews" + post: "/api/games/{gameID}/reviews" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -731,7 +737,7 @@ service EveningDetectiveServer { rpc GetGameReviews(GetGameReviewsReq) returns (GetGameReviewsRsp) { option (google.api.http) = { - get: "/api/games/{gameId}/reviews" + get: "/api/games/{gameID}/reviews" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { security: { security_requirement: {} } @@ -742,7 +748,7 @@ service EveningDetectiveServer { rpc GetScenarioReviews(GetScenarioReviewsReq) returns (GetGameReviewsRsp) { option (google.api.http) = { - get: "/api/scenarios/{scenarioId}/reviews" + get: "/api/scenarios/{scenarioID}/reviews" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { security: { security_requirement: {} } @@ -753,7 +759,7 @@ service EveningDetectiveServer { rpc GetGameReviewsForModeration(GetGameReviewsReq) returns (GetGameReviewsRsp) { option (google.api.http) = { - get: "/api/admin/games/{gameId}/reviews" + get: "/api/admin/games/{gameID}/reviews" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Отзывы" @@ -773,7 +779,7 @@ service EveningDetectiveServer { rpc ModerateGameReview(ModerateGameReviewReq) returns (ModerateGameReviewRsp) { option (google.api.http) = { - put : "/api/admin/game-reviews/{id}" + put : "/api/admin/game-reviews/{ID}" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -784,7 +790,7 @@ service EveningDetectiveServer { rpc UpdateGame(UpdateGameReq) returns (UpdateGameRsp) { option (google.api.http) = { - put : "/api/games/{id}" + put : "/api/games/{ID}" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -795,7 +801,7 @@ service EveningDetectiveServer { rpc StartGame(StartGameReq) returns (StartGameRsp) { option (google.api.http) = { - put : "/api/games/{id}/start" + put : "/api/games/{ID}/start" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -806,7 +812,7 @@ service EveningDetectiveServer { rpc PauseGame(PauseGameReq) returns (PauseGameRsp) { option (google.api.http) = { - put : "/api/games/{id}/pause" + put : "/api/games/{ID}/pause" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -817,7 +823,7 @@ service EveningDetectiveServer { rpc PlayGame(PlayGameReq) returns (PlayGameRsp) { option (google.api.http) = { - put : "/api/games/{id}/play" + put : "/api/games/{ID}/play" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -828,7 +834,7 @@ service EveningDetectiveServer { rpc FinishGame(FinishGameReq) returns (FinishGameRsp) { option (google.api.http) = { - put : "/api/games/{id}/finish" + put : "/api/games/{ID}/finish" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -839,7 +845,7 @@ service EveningDetectiveServer { rpc ResetGame(ResetGameReq) returns (ResetGameRsp) { option (google.api.http) = { - put : "/api/games/{id}/reset" + put : "/api/games/{ID}/reset" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -850,7 +856,7 @@ service EveningDetectiveServer { rpc DeleteGame(DeleteGameReq) returns (DeleteGameRsp) { option (google.api.http) = { - delete: "/api/games/{id}" + delete: "/api/games/{ID}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Игры"; @@ -871,7 +877,7 @@ service EveningDetectiveServer { rpc UpdateTeam(UpdateTeamReq) returns (UpdateTeamRsp) { option (google.api.http) = { - put : "/api/teams/{id}", + put : "/api/teams/{ID}", body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -882,7 +888,7 @@ service EveningDetectiveServer { rpc DeleteTeam(DeleteTeamReq) returns (DeleteTeamRsp) { option (google.api.http) = { - delete: "/api/teams/{id}" + delete: "/api/teams/{ID}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Команда"; @@ -892,7 +898,7 @@ service EveningDetectiveServer { rpc GiveTeamApplications(GiveTeamApplicationsReq) returns (GiveTeamApplicationsRsp) { option (google.api.http) = { - post: "/api/teams/{id}/applications", + post: "/api/teams/{ID}/applications", body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -903,7 +909,7 @@ service EveningDetectiveServer { rpc GetTeamStory(GetTeamStoryReq) returns (GetTeamStoryRsp) { option (google.api.http) = { - get: "/api/teams/{id}/story" + get: "/api/teams/{ID}/story" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { security: { @@ -916,7 +922,7 @@ service EveningDetectiveServer { rpc AddTeamAction(AddTeamActionReq) returns (AddTeamActionRsp) { option (google.api.http) = { - post: "/api/teams/{id}/actions", + post: "/api/teams/{ID}/actions", body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -930,7 +936,7 @@ service EveningDetectiveServer { rpc DeleteLastTeamAction(DeleteLastTeamActionReq) returns (DeleteLastTeamActionRsp) { option (google.api.http) = { - delete: "/api/teams/{id}/last-actions" + delete: "/api/teams/{ID}/last-actions" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { tags : "Ходы"; @@ -940,7 +946,7 @@ service EveningDetectiveServer { rpc GetTeamAnswers(GetTeamAnswersReq) returns (GetTeamAnswersRsp) { option (google.api.http) = { - get: "/api/teams/{id}/answers" + get: "/api/teams/{ID}/answers" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { security: { @@ -953,7 +959,7 @@ service EveningDetectiveServer { rpc SubmitTeamAnswers(SubmitTeamAnswersReq) returns (SubmitTeamAnswersRsp) { option (google.api.http) = { - post: "/api/teams/{id}/answers" + post: "/api/teams/{ID}/answers" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -967,7 +973,7 @@ service EveningDetectiveServer { rpc SetTeamAnswerScore(SetTeamAnswerScoreReq) returns (SetTeamAnswerScoreRsp) { option (google.api.http) = { - put : "/api/teams/{id}/answers/{questionCode}/score" + put : "/api/teams/{ID}/answers/{questionCode}/score" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -1070,7 +1076,7 @@ message GetUsersRsp { } message User { - int32 id = 1; + int32 ID = 1; string username = 2; string email = 3; repeated string roles = 4; @@ -1078,11 +1084,11 @@ message User { google.protobuf.Timestamp created_at = 6; } -message GetUserByIdReq { - int32 id = 1; +message GetUserByIDReq { + int32 ID = 1; } -message GetUserByIdRsp { +message GetUserByIDRsp { string error = 1; User user = 2; } @@ -1095,14 +1101,14 @@ message GetMeRsp { } message ChangeUserPasswordReq { - int32 id = 1; + int32 ID = 1; string new_password = 2; } message ChangeUserPasswordRsp {} message AddUserRoleReq { - int32 id = 1; + int32 ID = 1; string role = 2; } @@ -1111,7 +1117,7 @@ message AddUserRoleRsp { } message DeleteUserRoleReq { - int32 id = 1; + int32 ID = 1; string role = 2; } @@ -1149,7 +1155,7 @@ message AddScenarioReq { message AddScenarioRsp { string error = 1; - int32 id = 2; + int32 ID = 2; } message GetMyScenariosReq {} @@ -1167,7 +1173,7 @@ message GetScenariosCatalogRsp { } message GetScenarioReq { - int32 id = 1; + int32 ID = 1; } message GetScenarioRsp { @@ -1176,7 +1182,7 @@ message GetScenarioRsp { } message Scenario { - int32 id = 1; + int32 ID = 1; string name = 2; optional string description = 3; optional string image = 4; @@ -1191,11 +1197,11 @@ message Scenario { } message Story { - Conclusion conclusion = 5; // Только в полном сценарии, игрокам не передаётся. - string background = 4; - Introduction introduction = 2; - repeated Place places = 1; - repeated Question questions = 3; + repeated Place places = 1; + Introduction introduction = 2; + repeated Question questions = 3; + string background = 4; + Conclusion conclusion = 5; // Только в полном сценарии, игрокам не передаётся. } message Conclusion { @@ -1276,7 +1282,7 @@ message TeamAnswers { } message UpdateScenarioReq { - int32 id = 1; + int32 ID = 1; string name = 2; string description = 3; string image = 4; @@ -1287,7 +1293,7 @@ message UpdateScenarioRsp { } message PublicScenarioReq { - int32 id = 1; + int32 ID = 1; } message PublicScenarioRsp { @@ -1295,7 +1301,7 @@ message PublicScenarioRsp { } message DraftScenarioReq { - int32 id = 1; + int32 ID = 1; } message DraftScenarioRsp { @@ -1303,7 +1309,7 @@ message DraftScenarioRsp { } message DeleteScenarioReq { - int32 id = 1; + int32 ID = 1; } message DeleteScenarioRsp { @@ -1311,7 +1317,7 @@ message DeleteScenarioRsp { } message AddScenarioPlaceReq { - int32 id = 1; + int32 ID = 1; Place place = 2; } @@ -1320,7 +1326,7 @@ message AddScenarioPlaceRsp { } message UpdateScenarioPlaceReq { - int32 id = 1; + int32 ID = 1; string code = 2; Place place = 3; } @@ -1330,7 +1336,7 @@ message UpdateScenarioPlaceRsp { } message DeleteScenarioPlaceReq { - int32 id = 1; + int32 ID = 1; string code = 2; } @@ -1339,7 +1345,7 @@ message DeleteScenarioPlaceRsp { } message UpdateScenarioConclusionReq { - int32 id = 1; + int32 ID = 1; Conclusion conclusion = 2; } @@ -1348,7 +1354,7 @@ message UpdateScenarioConclusionRsp { } message UpdateScenarioIntroReq { - int32 id = 1; + int32 ID = 1; Introduction introduction = 2; } @@ -1357,7 +1363,7 @@ message UpdateScenarioIntroRsp { } message AddScenarioQuestionReq { - int32 id = 1; + int32 ID = 1; Question question = 2; } @@ -1366,7 +1372,7 @@ message AddScenarioQuestionRsp { } message UpdateScenarioQuestionReq { - int32 id = 1; + int32 ID = 1; string code = 2; Question question = 3; } @@ -1376,7 +1382,7 @@ message UpdateScenarioQuestionRsp { } message DeleteScenarioQuestionReq { - int32 id = 1; + int32 ID = 1; string code = 2; } @@ -1385,26 +1391,26 @@ message DeleteScenarioQuestionRsp { } message DownloadScenarioArchiveReq { - int32 id = 1; + int32 ID = 1; } message UploadScenarioArchiveRsp { string error = 1; - int32 id = 2; + int32 ID = 2; } message AddGameReq { string name = 1; string description = 2; google.protobuf.Timestamp start_at = 3; - int32 scenario_id = 4; + int32 scenarioID = 4; string format = 5; string location = 6; } message AddGameRsp { string error = 1; - int32 id = 2; + int32 ID = 2; } message GetGamesReq {} @@ -1415,7 +1421,7 @@ message GetGamesRsp { } message Game { - int32 id = 1; + int32 ID = 1; string name = 2; string description = 3; google.protobuf.Timestamp start_at = 4; @@ -1463,9 +1469,9 @@ enum ScreenCommand { } message ScreenState { - string id = 1; + string ID = 1; string status = 2; - optional int32 game_id = 3; + optional int32 gameID = 3; ScreenMode mode = 4; bool sound_enabled = 5; string error = 6; @@ -1488,12 +1494,12 @@ message CreateScreenSessionReq {} message CreateScreenSessionRsp { string error = 1; - string screen_id = 2; + string screenID = 2; string access_token = 3; } message GetScreenStateReq { - string screenId = 1; + string screenID = 1; string accessToken = 2; } @@ -1503,7 +1509,7 @@ message GetScreenStateRsp { } message GetGameScreensReq { - int32 gameId = 1; + int32 gameID = 1; } message GetGameScreensRsp { @@ -1512,9 +1518,9 @@ message GetGameScreensRsp { } message BindScreenReq { - string screenId = 1; + string screenID = 1; string accessToken = 2; - int32 gameId = 3; + int32 gameID = 3; } message BindScreenRsp { @@ -1523,7 +1529,7 @@ message BindScreenRsp { } message UnbindScreenReq { - string screenId = 1; + string screenID = 1; } message UnbindScreenRsp { @@ -1531,7 +1537,7 @@ message UnbindScreenRsp { } message SetScreenSoundReq { - string screenId = 1; + string screenID = 1; bool soundEnabled = 2; } @@ -1541,7 +1547,7 @@ message SetScreenSoundRsp { message MapItem { string kind = 1; - int32 item_id = 2; + int32 itemID = 2; string label = 3; int32 x = 4; int32 y = 5; @@ -1551,7 +1557,7 @@ message MapItem { } message GetGameMapReq { - int32 gameId = 1; + int32 gameID = 1; } message GetGameMapRsp { @@ -1560,9 +1566,9 @@ message GetGameMapRsp { } message UpdateGameMapItemReq { - int32 gameId = 1; + int32 gameID = 1; string kind = 2; - int32 itemId = 3; + int32 itemID = 3; int32 x = 4; int32 y = 5; bool hidden = 6; @@ -1571,7 +1577,7 @@ message UpdateGameMapItemReq { message UpdateGameMapItemRsp { string error = 1; } message SetScreenModeReq { - int32 gameId = 1; + int32 gameID = 1; ScreenMode mode = 2; } @@ -1580,7 +1586,7 @@ message SetScreenModeRsp { } message SetScreenTimerReq { - int32 gameId = 1; + int32 gameID = 1; int64 duration_seconds = 2; string label = 3; } @@ -1590,7 +1596,7 @@ message SetScreenTimerRsp { } message SendScreenCommandReq { - int32 gameId = 1; + int32 gameID = 1; ScreenCommand command = 2; int64 position_ms = 3; int32 volume = 4; @@ -1601,7 +1607,7 @@ message SendScreenCommandRsp { } message GetScreenResultsReq { - string screenId = 1; + string screenID = 1; string accessToken = 2; } @@ -1642,26 +1648,26 @@ message ParticipationRsp { } message Team { - // Статус участия: pending, confirmed или cancelled. Поле панели организатора. - string participation_status = 9; - // Источник решения: captain, automatic либо пустая строка до ответа. + int32 ID = 1; + string name = 2; + string status = 3; + string password = 4; + int32 actions_count = 5; + repeated Application applications = 6; + string captain_email = 7; + int32 participants_count = 8; + // Статус участия: pending, confirmed или cancelled. Поле панели организатора. + string participation_status = 9; + // Источник решения: captain, automatic либо пустая строка до ответа. string participation_source = 10; // Последняя ошибка отправки; пустая строка, если ошибки нет. string participation_email_error = 11; - // Письмо принято SMTP-сервером; не означает прочтение или доставку во входящие. - bool participation_email_sent = 12; - int32 id = 1; - string name = 2; - string status = 3; - string password = 4; - int32 actions_count = 5; - repeated Application applications = 6; - string captain_email = 7; - int32 participants_count = 8; + // Письмо принято SMTP-сервером; не означает прочтение или доставку во входящие. + bool participation_email_sent = 12; } message GetGameReq { - int32 id = 1; + int32 ID = 1; } message GetGameRsp { @@ -1670,7 +1676,7 @@ message GetGameRsp { } message GetGameAnswersReq { - int32 gameId = 1; + int32 gameID = 1; } message GetGameAnswersRsp { @@ -1680,7 +1686,7 @@ message GetGameAnswersRsp { } message GetGameResultsReq { - int32 gameId = 1; + int32 gameID = 1; } // Вопрос в шапке итоговой таблицы: правильный ответ (поле answer сообщения @@ -1711,9 +1717,9 @@ message GetGameResultsRsp { } message GameReview { - int32 id = 1; - int32 game_id = 2; - int32 team_id = 3; + int32 ID = 1; + int32 gameID = 2; + int32 teamID = 3; string team_name = 4; int32 rating = 5; string text = 6; @@ -1723,8 +1729,8 @@ message GameReview { } message CreateGameReviewReq { - int32 gameId = 1; - int32 teamId = 2; + int32 gameID = 1; + int32 teamID = 2; string password = 3; int32 rating = 4; string text = 5; @@ -1736,11 +1742,11 @@ message CreateGameReviewRsp { } message GetGameReviewsReq { - int32 gameId = 1; + int32 gameID = 1; } message GetScenarioReviewsReq { - int32 scenarioId = 1; + int32 scenarioID = 1; } message GetReviewsForModerationReq {} @@ -1753,7 +1759,7 @@ message GetGameReviewsRsp { } message ModerateGameReviewReq { - int32 id = 1; + int32 ID = 1; string status = 2; } @@ -1763,11 +1769,11 @@ message ModerateGameReviewRsp { } message UpdateGameReq { - int32 id = 1; + int32 ID = 1; string name = 2; string description = 3; google.protobuf.Timestamp start_at = 4; - int32 scenario_id = 5; + int32 scenarioID = 5; string format = 6; string location = 7; } @@ -1777,7 +1783,7 @@ message UpdateGameRsp { } message StartGameReq { - int32 id = 1; + int32 ID = 1; } message StartGameRsp { @@ -1785,7 +1791,7 @@ message StartGameRsp { } message PauseGameReq { - int32 id = 1; + int32 ID = 1; } message PauseGameRsp { @@ -1793,7 +1799,7 @@ message PauseGameRsp { } message PlayGameReq { - int32 id = 1; + int32 ID = 1; } message PlayGameRsp { @@ -1801,7 +1807,7 @@ message PlayGameRsp { } message FinishGameReq { - int32 id = 1; + int32 ID = 1; } message FinishGameRsp { @@ -1809,7 +1815,7 @@ message FinishGameRsp { } message ResetGameReq { - int32 id = 1; + int32 ID = 1; } message ResetGameRsp { @@ -1817,7 +1823,7 @@ message ResetGameRsp { } message DeleteGameReq { - int32 id = 1; + int32 ID = 1; } message DeleteGameRsp { @@ -1825,19 +1831,19 @@ message DeleteGameRsp { } message AddTeamReq { - int32 game_id = 1; + int32 gameID = 1; string name = 2; string captain_email = 3; } message AddTeamRsp { string error = 1; - int32 id = 2; + int32 ID = 2; string password = 3; } message UpdateTeamReq { - int32 id = 1; + int32 ID = 1; string name = 2; } @@ -1846,7 +1852,7 @@ message UpdateTeamRsp { } message DeleteTeamReq { - int64 id = 1; + int64 ID = 1; } message DeleteTeamRsp { @@ -1854,7 +1860,7 @@ message DeleteTeamRsp { } message GiveTeamApplicationsReq { - int64 id = 1; + int64 ID = 1; string name = 2; } @@ -1863,7 +1869,7 @@ message GiveTeamApplicationsRsp { } message GetTeamStoryReq { - int64 id = 1; + int64 ID = 1; string password = 2; } @@ -1880,7 +1886,7 @@ message TeamAction { } message AddTeamActionReq { - int64 id = 1; + int64 ID = 1; string password = 2; string code = 3; } @@ -1890,7 +1896,7 @@ message AddTeamActionRsp { } message DeleteLastTeamActionReq { - int64 id = 1; + int64 ID = 1; } message DeleteLastTeamActionRsp { @@ -1898,7 +1904,7 @@ message DeleteLastTeamActionRsp { } message GetTeamAnswersReq { - int64 id = 1; + int64 ID = 1; string password = 2; } @@ -1908,7 +1914,7 @@ message GetTeamAnswersRsp { } message SubmitTeamAnswersReq { - int64 id = 1; + int64 ID = 1; string password = 2; repeated Answer answers = 3; } @@ -1918,7 +1924,7 @@ message SubmitTeamAnswersRsp { } message SetTeamAnswerScoreReq { - int64 id = 1; + int64 ID = 1; string questionCode = 2; // Балл; отсутствует — сбросить выставленный балл optional int32 score = 3; @@ -1929,7 +1935,7 @@ message SetTeamAnswerScoreRsp { } message UpdateScenarioBackgroundReq { - int32 id = 1; + int32 ID = 1; string background = 2; } @@ -1938,7 +1944,7 @@ message UpdateScenarioBackgroundRsp { } message IssueGameTicketsReq { - int32 gameId = 1; + int32 gameID = 1; int32 count = 2; } @@ -1948,8 +1954,8 @@ message IssueGameTicketsRsp { } message Ticket { - int32 id = 1; - string url = 2; + int32 ID = 1; + string URL = 2; } message GetTicketReq { @@ -1971,7 +1977,7 @@ message AcceptTicketRsp { } message TicketPage { - int32 id = 1; + int32 ID = 1; string game_name = 2; google.protobuf.Timestamp start_at = 3; string location = 4; diff --git a/cmd/evening_detective_server/gateway_test.go b/cmd/evening_detective_server/gateway_test.go index eaa847f..8e7908e 100644 --- a/cmd/evening_detective_server/gateway_test.go +++ b/cmd/evening_detective_server/gateway_test.go @@ -40,7 +40,7 @@ func (s *testStub) UploadScenarioArchive(_ context.Context, req *httpbody.HttpBo s.mu.Lock() defer s.mu.Unlock() s.uploaded = append([]byte(nil), req.Data...) - return &proto.UploadScenarioArchiveRsp{Id: 42}, nil + return &proto.UploadScenarioArchiveRsp{ID: 42}, nil } func (s *testStub) DownloadScenarioArchive(ctx context.Context, _ *proto.DownloadScenarioArchiveReq) (*httpbody.HttpBody, error) { @@ -81,7 +81,7 @@ func (s *testStub) getUploaded() []byte { } func (s *testStub) DownloadTeamQR(ctx context.Context, req *proto.GetGameReq) (*httpbody.HttpBody, error) { - if req.Id != 7 { + if req.ID != 7 { return nil, status.Error(codes.NotFound, "Игра не найдена") } data, err := team_qr_pdf.Generate([]team_qr_pdf.Card{{Name: "Знатоки", URL: "https://example.org/team-story/1?password=test"}}) @@ -204,8 +204,8 @@ func TestGatewayUploadRawZip(t *testing.T) { if resp.StatusCode != http.StatusOK { t.Fatalf("status = %d, body = %s", resp.StatusCode, body) } - if !strings.Contains(string(body), `"id":42`) { - t.Errorf("ответ = %s, want id 42", body) + if !strings.Contains(string(body), `"ID":42`) { + t.Errorf("ответ = %s, want ID 42", body) } if got := stub.getUploaded(); !bytes.Equal(got, raw) { t.Errorf("сервер получил %q, want %q", got, raw) diff --git a/cmd/evening_detective_server/main.swagger.json b/cmd/evening_detective_server/main.swagger.json index 38be247..bd257cd 100644 --- a/cmd/evening_detective_server/main.swagger.json +++ b/cmd/evening_detective_server/main.swagger.json @@ -39,7 +39,7 @@ ] } }, - "/api/admin/game-reviews/{id}": { + "/api/admin/game-reviews/{ID}": { "put": { "summary": "Модерировать отзыв", "operationId": "EveningDetectiveServer_ModerateGameReview", @@ -59,7 +59,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -79,7 +79,7 @@ ] } }, - "/api/admin/games/{gameId}/reviews": { + "/api/admin/games/{gameID}/reviews": { "get": { "summary": "Получить отзывы игры для модерации", "operationId": "EveningDetectiveServer_GetGameReviewsForModeration", @@ -99,7 +99,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -451,7 +451,339 @@ ] } }, - "/api/games/{gameId}/answers": { + "/api/games/{ID}": { + "get": { + "summary": "Получить игру", + "operationId": "EveningDetectiveServer_GetGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverGetGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "Игры" + ] + }, + "delete": { + "summary": "Удалить игру", + "operationId": "EveningDetectiveServer_DeleteGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverDeleteGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "Игры" + ] + }, + "put": { + "summary": "Обновить игру", + "operationId": "EveningDetectiveServer_UpdateGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverUpdateGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EveningDetectiveServerUpdateGameBody" + } + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{ID}/finish": { + "put": { + "summary": "Закончить игру", + "operationId": "EveningDetectiveServer_FinishGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverFinishGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EveningDetectiveServerFinishGameBody" + } + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{ID}/pause": { + "put": { + "summary": "Остановить игру", + "operationId": "EveningDetectiveServer_PauseGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverPauseGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EveningDetectiveServerPauseGameBody" + } + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{ID}/play": { + "put": { + "summary": "Продолжить игру", + "operationId": "EveningDetectiveServer_PlayGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverPlayGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EveningDetectiveServerPlayGameBody" + } + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{ID}/reset": { + "put": { + "summary": "Сбросить игру", + "operationId": "EveningDetectiveServer_ResetGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverResetGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EveningDetectiveServerResetGameBody" + } + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{ID}/start": { + "put": { + "summary": "Начать игру", + "operationId": "EveningDetectiveServer_StartGame", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/evening_detective_serverStartGameRsp" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EveningDetectiveServerStartGameBody" + } + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{ID}/teams/qr.pdf": { + "get": { + "summary": "Скачать PDF с QR-кодами всех команд игры", + "operationId": "EveningDetectiveServer_DownloadTeamQR", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/apiHttpBody" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "ID", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "Игры" + ] + } + }, + "/api/games/{gameID}/answers": { "get": { "summary": "Получить ответы команд на вопросы дела (для оценки организатором)", "operationId": "EveningDetectiveServer_GetGameAnswers", @@ -471,7 +803,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -483,7 +815,7 @@ ] } }, - "/api/games/{gameId}/map": { + "/api/games/{gameID}/map": { "get": { "summary": "Получить карту игры", "operationId": "EveningDetectiveServer_GetGameMap", @@ -503,7 +835,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -515,7 +847,7 @@ ] } }, - "/api/games/{gameId}/map/items/{kind}/{itemId}": { + "/api/games/{gameID}/map/items/{kind}/{itemID}": { "post": { "summary": "Изменить объект карты игры", "operationId": "EveningDetectiveServer_UpdateGameMapItem", @@ -535,7 +867,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -548,7 +880,7 @@ "type": "string" }, { - "name": "itemId", + "name": "itemID", "in": "path", "required": true, "type": "integer", @@ -568,7 +900,7 @@ ] } }, - "/api/games/{gameId}/results": { + "/api/games/{gameID}/results": { "get": { "summary": "Получить итоговую таблицу игры (после завершения)", "operationId": "EveningDetectiveServer_GetGameResults", @@ -588,7 +920,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -600,7 +932,7 @@ ] } }, - "/api/games/{gameId}/reviews": { + "/api/games/{gameID}/reviews": { "get": { "summary": "Получить отзывы об игре", "operationId": "EveningDetectiveServer_GetGameReviews", @@ -620,7 +952,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -655,7 +987,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -680,7 +1012,7 @@ ] } }, - "/api/games/{gameId}/screens": { + "/api/games/{gameID}/screens": { "get": { "summary": "Получить экраны игры", "operationId": "EveningDetectiveServer_GetGameScreens", @@ -700,7 +1032,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -712,7 +1044,7 @@ ] } }, - "/api/games/{gameId}/screens/command": { + "/api/games/{gameID}/screens/command": { "post": { "summary": "Отправить команду экранам", "operationId": "EveningDetectiveServer_SendScreenCommand", @@ -732,7 +1064,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -752,7 +1084,7 @@ ] } }, - "/api/games/{gameId}/screens/mode": { + "/api/games/{gameID}/screens/mode": { "post": { "summary": "Изменить режим показа экранов", "operationId": "EveningDetectiveServer_SetScreenMode", @@ -772,7 +1104,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -792,7 +1124,7 @@ ] } }, - "/api/games/{gameId}/screens/timer": { + "/api/games/{gameID}/screens/timer": { "post": { "summary": "Настроить таймер экранов", "operationId": "EveningDetectiveServer_SetScreenTimer", @@ -812,7 +1144,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -832,7 +1164,7 @@ ] } }, - "/api/games/{gameId}/tickets": { + "/api/games/{gameID}/tickets": { "post": { "summary": "Выпустить билеты на игру", "operationId": "EveningDetectiveServer_IssueGameTickets", @@ -852,7 +1184,7 @@ }, "parameters": [ { - "name": "gameId", + "name": "gameID", "in": "path", "required": true, "type": "integer", @@ -877,338 +1209,6 @@ ] } }, - "/api/games/{id}": { - "get": { - "summary": "Получить игру", - "operationId": "EveningDetectiveServer_GetGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverGetGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "Игры" - ] - }, - "delete": { - "summary": "Удалить игру", - "operationId": "EveningDetectiveServer_DeleteGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverDeleteGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "Игры" - ] - }, - "put": { - "summary": "Обновить игру", - "operationId": "EveningDetectiveServer_UpdateGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverUpdateGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EveningDetectiveServerUpdateGameBody" - } - } - ], - "tags": [ - "Игры" - ] - } - }, - "/api/games/{id}/finish": { - "put": { - "summary": "Закончить игру", - "operationId": "EveningDetectiveServer_FinishGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverFinishGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EveningDetectiveServerFinishGameBody" - } - } - ], - "tags": [ - "Игры" - ] - } - }, - "/api/games/{id}/pause": { - "put": { - "summary": "Остановить игру", - "operationId": "EveningDetectiveServer_PauseGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverPauseGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EveningDetectiveServerPauseGameBody" - } - } - ], - "tags": [ - "Игры" - ] - } - }, - "/api/games/{id}/play": { - "put": { - "summary": "Продолжить игру", - "operationId": "EveningDetectiveServer_PlayGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverPlayGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EveningDetectiveServerPlayGameBody" - } - } - ], - "tags": [ - "Игры" - ] - } - }, - "/api/games/{id}/reset": { - "put": { - "summary": "Сбросить игру", - "operationId": "EveningDetectiveServer_ResetGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverResetGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EveningDetectiveServerResetGameBody" - } - } - ], - "tags": [ - "Игры" - ] - } - }, - "/api/games/{id}/start": { - "put": { - "summary": "Начать игру", - "operationId": "EveningDetectiveServer_StartGame", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/evening_detective_serverStartGameRsp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EveningDetectiveServerStartGameBody" - } - } - ], - "tags": [ - "Игры" - ] - } - }, - "/api/games/{id}/teams/qr.pdf": { - "get": { - "summary": "Скачать PDF с QR-кодами всех команд игры", - "operationId": "EveningDetectiveServer_DownloadTeamQR", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiHttpBody" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "Игры" - ] - } - }, "/api/my-scenarios": { "get": { "summary": "Получить свои сценарии", @@ -1392,7 +1392,7 @@ ] } }, - "/api/scenarios/{id}": { + "/api/scenarios/{ID}": { "get": { "summary": "Получить сценарий по id", "operationId": "EveningDetectiveServer_GetScenario", @@ -1412,7 +1412,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1442,7 +1442,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1472,7 +1472,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1492,7 +1492,7 @@ ] } }, - "/api/scenarios/{id}/archive": { + "/api/scenarios/{ID}/archive": { "get": { "summary": "Скачать сценарий архивом (со всеми материалами и картинками)", "operationId": "EveningDetectiveServer_DownloadScenarioArchive", @@ -1512,7 +1512,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1524,7 +1524,7 @@ ] } }, - "/api/scenarios/{id}/background": { + "/api/scenarios/{ID}/background": { "put": { "summary": "Установить или удалить фон дела", "operationId": "EveningDetectiveServer_UpdateScenarioBackground", @@ -1544,7 +1544,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1564,7 +1564,7 @@ ] } }, - "/api/scenarios/{id}/conclusion": { + "/api/scenarios/{ID}/conclusion": { "put": { "summary": "Обновить закрывашку сценария (игрокам не передаётся)", "operationId": "EveningDetectiveServer_UpdateScenarioConclusion", @@ -1584,7 +1584,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1604,7 +1604,7 @@ ] } }, - "/api/scenarios/{id}/draft": { + "/api/scenarios/{ID}/draft": { "put": { "summary": "Снять с публикации сценарий", "operationId": "EveningDetectiveServer_DraftScenario", @@ -1624,7 +1624,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1644,7 +1644,7 @@ ] } }, - "/api/scenarios/{id}/full": { + "/api/scenarios/{ID}/full": { "get": { "summary": "Получить сценарий со всеми деталями по id", "operationId": "EveningDetectiveServer_GetFullScenario", @@ -1664,7 +1664,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1676,7 +1676,7 @@ ] } }, - "/api/scenarios/{id}/introduction": { + "/api/scenarios/{ID}/introduction": { "put": { "summary": "Обновить введение сценария", "operationId": "EveningDetectiveServer_UpdateScenarioIntro", @@ -1696,7 +1696,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1716,7 +1716,7 @@ ] } }, - "/api/scenarios/{id}/places": { + "/api/scenarios/{ID}/places": { "post": { "summary": "Создать точку сценария", "operationId": "EveningDetectiveServer_AddScenarioPlace", @@ -1736,7 +1736,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1756,7 +1756,7 @@ ] } }, - "/api/scenarios/{id}/places/{code}": { + "/api/scenarios/{ID}/places/{code}": { "delete": { "summary": "Удалить точку сценария", "operationId": "EveningDetectiveServer_DeleteScenarioPlace", @@ -1776,7 +1776,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1812,7 +1812,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1838,7 +1838,7 @@ ] } }, - "/api/scenarios/{id}/public": { + "/api/scenarios/{ID}/public": { "put": { "summary": "Опубликовать сценарий", "operationId": "EveningDetectiveServer_PublicScenario", @@ -1858,7 +1858,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1878,7 +1878,7 @@ ] } }, - "/api/scenarios/{id}/questions": { + "/api/scenarios/{ID}/questions": { "post": { "summary": "Создать вопрос дела", "operationId": "EveningDetectiveServer_AddScenarioQuestion", @@ -1898,7 +1898,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1918,7 +1918,7 @@ ] } }, - "/api/scenarios/{id}/questions/{code}": { + "/api/scenarios/{ID}/questions/{code}": { "delete": { "summary": "Удалить вопрос дела", "operationId": "EveningDetectiveServer_DeleteScenarioQuestion", @@ -1938,7 +1938,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -1974,7 +1974,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -2000,7 +2000,7 @@ ] } }, - "/api/scenarios/{scenarioId}/reviews": { + "/api/scenarios/{scenarioID}/reviews": { "get": { "summary": "Получить отзывы сценария", "operationId": "EveningDetectiveServer_GetScenarioReviews", @@ -2020,7 +2020,7 @@ }, "parameters": [ { - "name": "scenarioId", + "name": "scenarioID", "in": "path", "required": true, "type": "integer", @@ -2146,7 +2146,7 @@ ] } }, - "/api/screens/{screenId}/bind": { + "/api/screens/{screenID}/bind": { "post": { "summary": "Привязать экран к игре", "operationId": "EveningDetectiveServer_BindScreen", @@ -2166,7 +2166,7 @@ }, "parameters": [ { - "name": "screenId", + "name": "screenID", "in": "path", "required": true, "type": "string" @@ -2185,7 +2185,7 @@ ] } }, - "/api/screens/{screenId}/sound": { + "/api/screens/{screenID}/sound": { "post": { "summary": "Назначить экран со звуком", "operationId": "EveningDetectiveServer_SetScreenSound", @@ -2205,7 +2205,7 @@ }, "parameters": [ { - "name": "screenId", + "name": "screenID", "in": "path", "required": true, "type": "string" @@ -2224,7 +2224,7 @@ ] } }, - "/api/screens/{screenId}/unbind": { + "/api/screens/{screenID}/unbind": { "post": { "summary": "Отвязать экран от игры", "operationId": "EveningDetectiveServer_UnbindScreen", @@ -2244,7 +2244,7 @@ }, "parameters": [ { - "name": "screenId", + "name": "screenID", "in": "path", "required": true, "type": "string" @@ -2296,7 +2296,7 @@ ] } }, - "/api/teams/{id}": { + "/api/teams/{ID}": { "delete": { "summary": "Удалить команду", "operationId": "EveningDetectiveServer_DeleteTeam", @@ -2316,7 +2316,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2346,7 +2346,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -2366,7 +2366,7 @@ ] } }, - "/api/teams/{id}/actions": { + "/api/teams/{ID}/actions": { "post": { "summary": "Сделать ход", "operationId": "EveningDetectiveServer_AddTeamAction", @@ -2386,7 +2386,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2411,7 +2411,7 @@ ] } }, - "/api/teams/{id}/answers": { + "/api/teams/{ID}/answers": { "get": { "summary": "Получить ответы команды на вопросы дела", "operationId": "EveningDetectiveServer_GetTeamAnswers", @@ -2431,7 +2431,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2472,7 +2472,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2497,7 +2497,7 @@ ] } }, - "/api/teams/{id}/answers/{questionCode}/score": { + "/api/teams/{ID}/answers/{questionCode}/score": { "put": { "summary": "Выставить балл команде за ответ на вопрос дела", "operationId": "EveningDetectiveServer_SetTeamAnswerScore", @@ -2517,7 +2517,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2543,7 +2543,7 @@ ] } }, - "/api/teams/{id}/applications": { + "/api/teams/{ID}/applications": { "post": { "summary": "Выдать улику", "operationId": "EveningDetectiveServer_GiveTeamApplications", @@ -2563,7 +2563,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2583,7 +2583,7 @@ ] } }, - "/api/teams/{id}/last-actions": { + "/api/teams/{ID}/last-actions": { "delete": { "summary": "Удалить последний ход", "operationId": "EveningDetectiveServer_DeleteLastTeamAction", @@ -2603,7 +2603,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2615,7 +2615,7 @@ ] } }, - "/api/teams/{id}/story": { + "/api/teams/{ID}/story": { "get": { "summary": "Получить ходы", "operationId": "EveningDetectiveServer_GetTeamStory", @@ -2635,7 +2635,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "string", @@ -2889,15 +2889,15 @@ ] } }, - "/api/users/{id}": { + "/api/users/{ID}": { "get": { "summary": "Получить пользователя по id", - "operationId": "EveningDetectiveServer_GetUserById", + "operationId": "EveningDetectiveServer_GetUserByID", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/evening_detective_serverGetUserByIdRsp" + "$ref": "#/definitions/evening_detective_serverGetUserByIDRsp" } }, "default": { @@ -2909,7 +2909,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -2921,7 +2921,7 @@ ] } }, - "/api/users/{id}/password": { + "/api/users/{ID}/password": { "post": { "summary": "Изменить чужой пароль (только администратор)", "description": "Пароль вводится вручную: минимум 12 символов, максимум 72 байта. Сеансы сохраняются. Ошибки: 401 — нет авторизации, 403 — нет прав, 400 — неверные данные или собственный ID, 404 — пользователь не найден, 500 — ошибка сохранения.", @@ -2942,7 +2942,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -2962,7 +2962,7 @@ ] } }, - "/api/users/{id}/role/add": { + "/api/users/{ID}/role/add": { "post": { "summary": "Добавить пользователю роль", "operationId": "EveningDetectiveServer_AddUserRole", @@ -2982,7 +2982,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -3002,7 +3002,7 @@ ] } }, - "/api/users/{id}/role/delete": { + "/api/users/{ID}/role/delete": { "post": { "summary": "Забрать у пользователя роль", "operationId": "EveningDetectiveServer_DeleteUserRole", @@ -3022,7 +3022,7 @@ }, "parameters": [ { - "name": "id", + "name": "ID", "in": "path", "required": true, "type": "integer", @@ -3088,7 +3088,7 @@ "accessToken": { "type": "string" }, - "gameId": { + "gameID": { "type": "integer", "format": "int32" } @@ -3105,7 +3105,7 @@ "EveningDetectiveServerCreateGameReviewBody": { "type": "object", "properties": { - "teamId": { + "teamID": { "type": "integer", "format": "int32" }, @@ -3260,7 +3260,7 @@ "type": "string", "format": "date-time" }, - "scenarioId": { + "scenarioID": { "type": "integer", "format": "int32" }, @@ -3397,7 +3397,7 @@ "type": "string", "format": "date-time" }, - "scenarioId": { + "scenarioID": { "type": "integer", "format": "int32" }, @@ -3415,7 +3415,7 @@ "error": { "type": "string" }, - "id": { + "ID": { "type": "integer", "format": "int32" } @@ -3451,7 +3451,7 @@ "error": { "type": "string" }, - "id": { + "ID": { "type": "integer", "format": "int32" } @@ -3468,7 +3468,7 @@ "evening_detective_serverAddTeamReq": { "type": "object", "properties": { - "gameId": { + "gameID": { "type": "integer", "format": "int32" }, @@ -3486,7 +3486,7 @@ "error": { "type": "string" }, - "id": { + "ID": { "type": "integer", "format": "int32" }, @@ -3607,7 +3607,7 @@ "error": { "type": "string" }, - "screenId": { + "screenID": { "type": "string" }, "accessToken": { @@ -3724,7 +3724,7 @@ "evening_detective_serverGame": { "type": "object", "properties": { - "id": { + "ID": { "type": "integer", "format": "int32" }, @@ -3770,15 +3770,15 @@ "evening_detective_serverGameReview": { "type": "object", "properties": { - "id": { + "ID": { "type": "integer", "format": "int32" }, - "gameId": { + "gameID": { "type": "integer", "format": "int32" }, - "teamId": { + "teamID": { "type": "integer", "format": "int32" }, @@ -4027,7 +4027,7 @@ "evening_detective_serverGetScreenResultsReq": { "type": "object", "properties": { - "screenId": { + "screenID": { "type": "string" }, "accessToken": { @@ -4060,7 +4060,7 @@ "evening_detective_serverGetScreenStateReq": { "type": "object", "properties": { - "screenId": { + "screenID": { "type": "string" }, "accessToken": { @@ -4137,7 +4137,7 @@ } } }, - "evening_detective_serverGetUserByIdRsp": { + "evening_detective_serverGetUserByIDRsp": { "type": "object", "properties": { "error": { @@ -4236,7 +4236,7 @@ "kind": { "type": "string" }, - "itemId": { + "itemID": { "type": "integer", "format": "int32" }, @@ -4455,7 +4455,7 @@ "evening_detective_serverScenario": { "type": "object", "properties": { - "id": { + "ID": { "type": "integer", "format": "int32" }, @@ -4534,13 +4534,13 @@ "evening_detective_serverScreenState": { "type": "object", "properties": { - "id": { + "ID": { "type": "string" }, "status": { "type": "string" }, - "gameId": { + "gameID": { "type": "integer", "format": "int32" }, @@ -4686,16 +4686,6 @@ "evening_detective_serverStory": { "type": "object", "properties": { - "conclusion": { - "$ref": "#/definitions/evening_detective_serverConclusion", - "description": "Только в полном сценарии, игрокам не передаётся." - }, - "background": { - "type": "string" - }, - "introduction": { - "$ref": "#/definitions/evening_detective_serverIntroduction" - }, "places": { "type": "array", "items": { @@ -4703,12 +4693,22 @@ "$ref": "#/definitions/evening_detective_serverPlace" } }, + "introduction": { + "$ref": "#/definitions/evening_detective_serverIntroduction" + }, "questions": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/evening_detective_serverQuestion" } + }, + "background": { + "type": "string" + }, + "conclusion": { + "$ref": "#/definitions/evening_detective_serverConclusion", + "description": "Только в полном сценарии, игрокам не передаётся." } } }, @@ -4723,23 +4723,7 @@ "evening_detective_serverTeam": { "type": "object", "properties": { - "participationStatus": { - "type": "string", - "description": "Статус участия: pending, confirmed или cancelled. Поле панели организатора." - }, - "participationSource": { - "type": "string", - "description": "Источник решения: captain, automatic либо пустая строка до ответа." - }, - "participationEmailError": { - "type": "string", - "description": "Последняя ошибка отправки; пустая строка, если ошибки нет." - }, - "participationEmailSent": { - "type": "boolean", - "description": "Письмо принято SMTP-сервером; не означает прочтение или доставку во входящие." - }, - "id": { + "ID": { "type": "integer", "format": "int32" }, @@ -4769,6 +4753,22 @@ "participantsCount": { "type": "integer", "format": "int32" + }, + "participationStatus": { + "type": "string", + "description": "Статус участия: pending, confirmed или cancelled. Поле панели организатора." + }, + "participationSource": { + "type": "string", + "description": "Источник решения: captain, automatic либо пустая строка до ответа." + }, + "participationEmailError": { + "type": "string", + "description": "Последняя ошибка отправки; пустая строка, если ошибки нет." + }, + "participationEmailSent": { + "type": "boolean", + "description": "Письмо принято SMTP-сервером; не означает прочтение или доставку во входящие." } } }, @@ -4833,11 +4833,11 @@ "evening_detective_serverTicket": { "type": "object", "properties": { - "id": { + "ID": { "type": "integer", "format": "int32" }, - "url": { + "URL": { "type": "string" } } @@ -4845,7 +4845,7 @@ "evening_detective_serverTicketPage": { "type": "object", "properties": { - "id": { + "ID": { "type": "integer", "format": "int32" }, @@ -4987,7 +4987,7 @@ "error": { "type": "string" }, - "id": { + "ID": { "type": "integer", "format": "int32" } @@ -4996,7 +4996,7 @@ "evening_detective_serverUser": { "type": "object", "properties": { - "id": { + "ID": { "type": "integer", "format": "int32" }, diff --git a/docs/GO_STANDARD.md b/docs/GO_STANDARD.md index cf2c3e8..20bc70b 100644 --- a/docs/GO_STANDARD.md +++ b/docs/GO_STANDARD.md @@ -81,7 +81,7 @@ Handler не содержит SQL, транзакций, правил перех ```go func (s *server) GetGame(ctx context.Context, req *proto.GetGameReq) (*proto.GetGameRsp, error) { - game, err := s.gameService.Get(ctx, req.GetId(), currentUserID(ctx)) + game, err := s.gameService.Get(ctx, req.GetID(), currentUserID(ctx)) if err != nil { return nil, err } @@ -90,7 +90,7 @@ func (s *server) GetGame(ctx context.Context, req *proto.GetGameReq) (*proto.Get // game_mapper.go func mapGetGameResponse(game *Game) *proto.GetGameRsp { - return &proto.GetGameRsp{Game: &proto.Game{Id: int32(game.ID), Name: game.Name}} + return &proto.GetGameRsp{Game: &proto.Game{ID: int32(game.ID), Name: game.Name}} } ``` @@ -176,6 +176,12 @@ SQL держи рядом с методом, которому он нужен. - Protobuf — внешний транспортный контракт. Сгенерированные файлы в `proto/` и Swagger вручную не редактируй. +- В protobuf используй `ID`, `ID` и `URL` для полей с соответствующими + аббревиатурами. Генератор тогда создаёт `ID`, `GameID`, `URL` в Go и + `ID`, `gameID`, `URL` в TypeScript. +- Поля каждого `message` объявляй в порядке возрастания номеров. Номера уже + опубликованных полей не меняй и не переиспользуй; удалённые номера оставляй + зарезервированными. - Новые HTTP-методы добавляй через `api/main.proto`, затем запускай генерацию `make generate`. - Преобразование `proto ↔ domain/storage` находится в `app` или пакете, diff --git a/internal/app/answers.go b/internal/app/answers.go index f7b94a4..6a011fc 100644 --- a/internal/app/answers.go +++ b/internal/app/answers.go @@ -13,7 +13,7 @@ import ( func (s *server) GetTeamAnswers(ctx context.Context, req *proto.GetTeamAnswersReq) (*proto.GetTeamAnswersRsp, error) { answers, err := s.answerService.GetTeamAnswers( ctx, - int(req.Id), + int(req.ID), req.Password, ) if err != nil { @@ -30,7 +30,7 @@ func (s *server) GetTeamAnswers(ctx context.Context, req *proto.GetTeamAnswersRe func (s *server) SubmitTeamAnswers(ctx context.Context, req *proto.SubmitTeamAnswersReq) (*proto.SubmitTeamAnswersRsp, error) { err := s.answerService.SubmitTeamAnswers( ctx, - int(req.Id), + int(req.ID), req.Password, convertAnswers(req.Answers), ) @@ -60,7 +60,7 @@ func (s *server) SetTeamAnswerScore(ctx context.Context, req *proto.SetTeamAnswe err := s.answerService.SetTeamAnswerScore( ctx, - int(req.Id), + int(req.ID), req.QuestionCode, score, ) diff --git a/internal/app/change_password_test.go b/internal/app/change_password_test.go index a6f3a7b..b12d62d 100644 --- a/internal/app/change_password_test.go +++ b/internal/app/change_password_test.go @@ -35,7 +35,7 @@ func TestChangeUserPasswordAccess(t *testing.T) { {ctxWithClaims("author"), codes.PermissionDenied}, {ctxWithClaims("organizer"), codes.PermissionDenied}, } { - _, err := s.ChangeUserPassword(tc.ctx, &proto.ChangeUserPasswordReq{Id: 2, NewPassword: "123456789012"}) + _, err := s.ChangeUserPassword(tc.ctx, &proto.ChangeUserPasswordReq{ID: 2, NewPassword: "123456789012"}) if status.Code(err) != tc.want { t.Errorf("code = %v, want %v", status.Code(err), tc.want) } @@ -116,7 +116,7 @@ func TestChangeUserPasswordTransports(t *testing.T) { } rpcCtx = metadata.NewOutgoingContext(ctx, metadata.Pairs("authorization", "Bearer "+token)) } - _, err := client.ChangeUserPassword(rpcCtx, &proto.ChangeUserPasswordReq{Id: tc.id, NewPassword: tc.password}) + _, err := client.ChangeUserPassword(rpcCtx, &proto.ChangeUserPasswordReq{ID: tc.id, NewPassword: tc.password}) if status.Code(err) != tc.code { t.Fatalf("gRPC = %v, want %v", err, tc.code) } diff --git a/internal/app/game_map.go b/internal/app/game_map.go index 1a5f125..803e1bc 100644 --- a/internal/app/game_map.go +++ b/internal/app/game_map.go @@ -15,34 +15,34 @@ func (s *server) GetGameMap(ctx context.Context, req *proto.GetGameMapReq) (*pro if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 { + if req == nil || req.GameID <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор игры") } - game, err := s.gameService.GetFullGame(ctx, int(req.GameId)) + game, err := s.gameService.GetFullGame(ctx, int(req.GameID)) if err != nil { return nil, status.Error(codes.NotFound, "игра не найдена") } - if err := s.mapRepo.Ensure(ctx, int(req.GameId), "organizer_desk", 1); err != nil { + if err := s.mapRepo.Ensure(ctx, int(req.GameID), "organizer_desk", 1); err != nil { return nil, status.Error(codes.Internal, "не удалось сохранить карту") } for _, team := range game.Teams { if team.ParticipationStatus == "cancelled" { continue } - if err := s.mapRepo.Ensure(ctx, int(req.GameId), "team", team.ID); err != nil { + if err := s.mapRepo.Ensure(ctx, int(req.GameID), "team", team.ID); err != nil { return nil, status.Error(codes.Internal, "не удалось сохранить карту") } } - screens, err := s.screenRepo.ListByGame(ctx, int(req.GameId)) + screens, err := s.screenRepo.ListByGame(ctx, int(req.GameID)) if err != nil { return nil, status.Error(codes.Internal, "не удалось получить экраны") } for _, screen := range screens { - if err := s.mapRepo.Ensure(ctx, int(req.GameId), "screen", screen.ID); err != nil { + if err := s.mapRepo.Ensure(ctx, int(req.GameID), "screen", screen.ID); err != nil { return nil, status.Error(codes.Internal, "не удалось сохранить карту") } } - items, err := s.mapRepo.List(ctx, int(req.GameId)) + items, err := s.mapRepo.List(ctx, int(req.GameID)) if err != nil { return nil, status.Error(codes.Internal, "не удалось получить карту") } @@ -66,7 +66,7 @@ func (s *server) GetGameMap(ctx context.Context, req *proto.GetGameMapReq) (*pro } continue } - mapped := &proto.MapItem{Kind: item.Kind, ItemId: int32(item.ItemID), X: int32(item.X), Y: int32(item.Y), Hidden: item.Hidden} + mapped := &proto.MapItem{Kind: item.Kind, ItemID: int32(item.ItemID), X: int32(item.X), Y: int32(item.Y), Hidden: item.Hidden} if item.Kind == "team" { mapped.Label = teamNames[item.ItemID] } @@ -74,7 +74,7 @@ func (s *server) GetGameMap(ctx context.Context, req *proto.GetGameMapReq) (*pro mapped.Label = "Стол организаторов" } if state := screenStates[item.ItemID]; item.Kind == "screen" && state != nil { - mapped.Label = "Экран " + state.Id + mapped.Label = "Экран " + state.ID mapped.Status = state.Status mapped.SoundEnabled = state.SoundEnabled } @@ -87,10 +87,10 @@ func (s *server) UpdateGameMapItem(ctx context.Context, req *proto.UpdateGameMap if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 || req.ItemId <= 0 || (req.Kind != "team" && req.Kind != "screen" && req.Kind != "organizer_desk") { + if req == nil || req.GameID <= 0 || req.ItemID <= 0 || (req.Kind != "team" && req.Kind != "screen" && req.Kind != "organizer_desk") { return nil, status.Error(codes.InvalidArgument, "некорректный объект карты") } - if err := s.mapRepo.Update(ctx, game_map_repo.Item{GameID: int(req.GameId), Kind: req.Kind, ItemID: int(req.ItemId), X: int(req.X), Y: int(req.Y), Hidden: req.Hidden}); err != nil { + if err := s.mapRepo.Update(ctx, game_map_repo.Item{GameID: int(req.GameID), Kind: req.Kind, ItemID: int(req.ItemID), X: int(req.X), Y: int(req.Y), Hidden: req.Hidden}); err != nil { if errors.Is(err, game_map_repo.ErrItemNotFound) { return nil, status.Error(codes.NotFound, "объект карты не найден") } diff --git a/internal/app/game_mapper.go b/internal/app/game_mapper.go index f80105d..a232072 100644 --- a/internal/app/game_mapper.go +++ b/internal/app/game_mapper.go @@ -28,7 +28,7 @@ func mapGame( teams = append(teams, mapTeamDetails(team)) } return &proto.Game{ - Id: int32(o.ID), + ID: int32(o.ID), Name: o.Name, Description: o.Description, Location: location, diff --git a/internal/app/game_reviews.go b/internal/app/game_reviews.go index d309bbe..191760f 100644 --- a/internal/app/game_reviews.go +++ b/internal/app/game_reviews.go @@ -12,7 +12,7 @@ import ( ) func mapGameReview(r *game_reviews_repo.Review) *proto.GameReview { - return &proto.GameReview{Id: int32(r.ID), GameId: int32(r.GameID), TeamId: int32(r.TeamID), TeamName: r.TeamName, Rating: r.Rating, Text: r.Text, Status: r.Status, CreatedAt: timestamppb.New(r.CreatedAt), GameName: r.GameName} + return &proto.GameReview{ID: int32(r.ID), GameID: int32(r.GameID), TeamID: int32(r.TeamID), TeamName: r.TeamName, Rating: r.Rating, Text: r.Text, Status: r.Status, CreatedAt: timestamppb.New(r.CreatedAt), GameName: r.GameName} } func mapGameReviews(reviews []*game_reviews_repo.Review) []*proto.GameReview { @@ -24,7 +24,7 @@ func mapGameReviews(reviews []*game_reviews_repo.Review) []*proto.GameReview { } func (s *server) CreateGameReview(ctx context.Context, req *proto.CreateGameReviewReq) (*proto.CreateGameReviewRsp, error) { - review, err := s.reviewService.Create(ctx, int(req.GameId), int(req.TeamId), req.Password, req.Rating, req.Text) + review, err := s.reviewService.Create(ctx, int(req.GameID), int(req.TeamID), req.Password, req.Rating, req.Text) if err != nil { return &proto.CreateGameReviewRsp{Error: err.Error()}, nil } @@ -32,7 +32,7 @@ func (s *server) CreateGameReview(ctx context.Context, req *proto.CreateGameRevi } func (s *server) GetGameReviews(ctx context.Context, req *proto.GetGameReviewsReq) (*proto.GetGameReviewsRsp, error) { - reviews, average, count, err := s.reviewService.List(ctx, int(req.GameId), false) + reviews, average, count, err := s.reviewService.List(ctx, int(req.GameID), false) if err != nil { return &proto.GetGameReviewsRsp{Error: err.Error()}, nil } @@ -40,7 +40,7 @@ func (s *server) GetGameReviews(ctx context.Context, req *proto.GetGameReviewsRe } func (s *server) GetScenarioReviews(ctx context.Context, req *proto.GetScenarioReviewsReq) (*proto.GetGameReviewsRsp, error) { - reviews, average, count, err := s.reviewService.ListByScenario(ctx, int(req.ScenarioId)) + reviews, average, count, err := s.reviewService.ListByScenario(ctx, int(req.ScenarioID)) if err != nil { return &proto.GetGameReviewsRsp{Error: err.Error()}, nil } @@ -55,7 +55,7 @@ func (s *server) GetGameReviewsForModeration(ctx context.Context, req *proto.Get if !roles.HasRole(claims, roles.Admin) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - reviews, average, count, err := s.reviewService.List(ctx, int(req.GameId), true) + reviews, average, count, err := s.reviewService.List(ctx, int(req.GameID), true) if err != nil { return &proto.GetGameReviewsRsp{Error: err.Error()}, nil } @@ -85,7 +85,7 @@ func (s *server) ModerateGameReview(ctx context.Context, req *proto.ModerateGame if !roles.HasRole(claims, roles.Admin) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - review, err := s.reviewService.Moderate(ctx, int(req.Id), req.Status) + review, err := s.reviewService.Moderate(ctx, int(req.ID), req.Status) if err != nil { return &proto.ModerateGameReviewRsp{Error: err.Error()}, nil } diff --git a/internal/app/games.go b/internal/app/games.go index 13da7e0..59a87f6 100644 --- a/internal/app/games.go +++ b/internal/app/games.go @@ -36,7 +36,7 @@ func (s *server) AddGame(ctx context.Context, req *proto.AddGameReq) (*proto.Add req.Description, nilIfEmpty(req.Location), req.StartAt.AsTime(), - req.ScenarioId, + req.ScenarioID, req.Format, ) if err != nil { @@ -46,7 +46,7 @@ func (s *server) AddGame(ctx context.Context, req *proto.AddGameReq) (*proto.Add } return &proto.AddGameRsp{ - Id: int32(id), + ID: int32(id), }, nil } @@ -61,7 +61,7 @@ func (s *server) DeleteGame(ctx context.Context, req *proto.DeleteGameReq) (*pro err := s.gameService.DeleteGame( ctx, - int(req.Id), + int(req.ID), ) if err != nil { return &proto.DeleteGameRsp{ @@ -81,7 +81,7 @@ func (s *server) GetGame(ctx context.Context, req *proto.GetGameReq) (*proto.Get return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - game, err := s.gameService.GetFullGame(ctx, int(req.Id)) + game, err := s.gameService.GetFullGame(ctx, int(req.ID)) if err != nil { return &proto.GetGameRsp{ Error: err.Error(), @@ -102,7 +102,7 @@ func (s *server) GetGameAnswers(ctx context.Context, req *proto.GetGameAnswersRe return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - gameAnswers, err := s.answerService.GetGameAnswers(ctx, int(req.GameId)) + gameAnswers, err := s.answerService.GetGameAnswers(ctx, int(req.GameID)) if err != nil { return &proto.GetGameAnswersRsp{ Error: err.Error(), @@ -124,7 +124,7 @@ func (s *server) GetGameResults(ctx context.Context, req *proto.GetGameResultsRe return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - results, err := s.answerService.GetGameResults(ctx, int(req.GameId)) + results, err := s.answerService.GetGameResults(ctx, int(req.GameID)) if err != nil { return &proto.GetGameResultsRsp{ Error: err.Error(), @@ -173,12 +173,12 @@ func (s *server) UpdateGame(ctx context.Context, req *proto.UpdateGameReq) (*pro err := s.gameService.UpdateGame( ctx, - int(req.Id), + int(req.ID), req.Name, req.Description, nilIfEmpty(req.Location), req.StartAt.AsTime(), - req.ScenarioId, + req.ScenarioID, req.Format, ) if err != nil { @@ -199,7 +199,7 @@ func (s *server) StartGame(ctx context.Context, req *proto.StartGameReq) (*proto return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - err := s.gameService.StartGame(ctx, int(req.Id)) + err := s.gameService.StartGame(ctx, int(req.ID)) if err != nil { return &proto.StartGameRsp{ Error: err.Error(), @@ -218,7 +218,7 @@ func (s *server) PauseGame(ctx context.Context, req *proto.PauseGameReq) (*proto return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - err := s.gameService.PauseGame(ctx, int(req.Id)) + err := s.gameService.PauseGame(ctx, int(req.ID)) if err != nil { return &proto.PauseGameRsp{ Error: err.Error(), @@ -237,7 +237,7 @@ func (s *server) PlayGame(ctx context.Context, req *proto.PlayGameReq) (*proto.P return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - err := s.gameService.PlayGame(ctx, int(req.Id)) + err := s.gameService.PlayGame(ctx, int(req.ID)) if err != nil { return &proto.PlayGameRsp{ Error: err.Error(), @@ -256,7 +256,7 @@ func (s *server) FinishGame(ctx context.Context, req *proto.FinishGameReq) (*pro return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - err := s.gameService.FinishGame(ctx, int(req.Id)) + err := s.gameService.FinishGame(ctx, int(req.ID)) if err != nil { return &proto.FinishGameRsp{ Error: err.Error(), @@ -275,7 +275,7 @@ func (s *server) ResetGame(ctx context.Context, req *proto.ResetGameReq) (*proto return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - err := s.gameService.ResetGame(ctx, int(req.Id)) + err := s.gameService.ResetGame(ctx, int(req.ID)) if err != nil { return &proto.ResetGameRsp{ Error: err.Error(), diff --git a/internal/app/results_mapper_test.go b/internal/app/results_mapper_test.go index 5f07b42..e3b9ee2 100644 --- a/internal/app/results_mapper_test.go +++ b/internal/app/results_mapper_test.go @@ -30,7 +30,7 @@ func TestMapTeamResults(t *testing.T) { t.Fatalf("len(mapTeamResults) = %d, want 1", len(got)) } row := got[0] - if row.Team == nil || row.Team.Id != 1 || row.Team.Name != "Команда А" { + if row.Team == nil || row.Team.ID != 1 || row.Team.Name != "Команда А" { t.Fatalf("row.Team = %+v, want id 1, name Команда А", row.Team) } // actionsCount продублирован на уровне строки таблицы. diff --git a/internal/app/scenario_archive.go b/internal/app/scenario_archive.go index 17e82ca..0582bcf 100644 --- a/internal/app/scenario_archive.go +++ b/internal/app/scenario_archive.go @@ -31,7 +31,7 @@ func (s *server) DownloadScenarioArchive(ctx context.Context, req *proto.Downloa data, name, err := s.scenarioService.DownloadArchive( ctx, - int(req.Id), + int(req.ID), claims.UserID, roles.HasRole(claims, roles.Admin), ) @@ -85,7 +85,7 @@ func (s *server) UploadScenarioArchive(ctx context.Context, req *httpbody.HttpBo }, nil } return &proto.UploadScenarioArchiveRsp{ - Id: int32(id), + ID: int32(id), }, nil } diff --git a/internal/app/scenario_story.go b/internal/app/scenario_story.go index e573c72..08459d3 100644 --- a/internal/app/scenario_story.go +++ b/internal/app/scenario_story.go @@ -21,7 +21,7 @@ func (s *server) AddScenarioPlace(ctx context.Context, req *proto.AddScenarioPla err := s.scenarioService.AddScenarioPlace( ctx, - int(req.Id), + int(req.ID), convertPlace(req.Place), claims.UserID, roles.HasRole(claims, roles.Admin), @@ -46,7 +46,7 @@ func (s *server) UpdateScenarioPlace(ctx context.Context, req *proto.UpdateScena err := s.scenarioService.UpdateScenarioPlace( ctx, - int(req.Id), + int(req.ID), req.Code, convertPlace(req.Place), claims.UserID, @@ -72,7 +72,7 @@ func (s *server) DeleteScenarioPlace(ctx context.Context, req *proto.DeleteScena err := s.scenarioService.DeleteScenarioPlace( ctx, - int(req.Id), + int(req.ID), req.Code, claims.UserID, roles.HasRole(claims, roles.Admin), @@ -97,7 +97,7 @@ func (s *server) AddScenarioQuestion(ctx context.Context, req *proto.AddScenario err := s.scenarioService.AddScenarioQuestion( ctx, - int(req.Id), + int(req.ID), convertQuestion(req.Question), claims.UserID, roles.HasRole(claims, roles.Admin), @@ -122,7 +122,7 @@ func (s *server) UpdateScenarioQuestion(ctx context.Context, req *proto.UpdateSc err := s.scenarioService.UpdateScenarioQuestion( ctx, - int(req.Id), + int(req.ID), req.Code, convertQuestion(req.Question), claims.UserID, @@ -148,7 +148,7 @@ func (s *server) DeleteScenarioQuestion(ctx context.Context, req *proto.DeleteSc err := s.scenarioService.DeleteScenarioQuestion( ctx, - int(req.Id), + int(req.ID), req.Code, claims.UserID, roles.HasRole(claims, roles.Admin), @@ -173,7 +173,7 @@ func (s *server) UpdateScenarioBackground(ctx context.Context, req *proto.Update err := s.scenarioService.UpdateScenarioBackground( ctx, - int(req.Id), + int(req.ID), req.Background, claims.UserID, roles.HasRole(claims, roles.Admin), @@ -198,7 +198,7 @@ func (s *server) UpdateScenarioIntro(ctx context.Context, req *proto.UpdateScena err := s.scenarioService.UpdateScenarioIntro( ctx, - int(req.Id), + int(req.ID), convertIntroduction(req.Introduction), claims.UserID, roles.HasRole(claims, roles.Admin), @@ -220,7 +220,7 @@ func (s *server) UpdateScenarioConclusion(ctx context.Context, req *proto.Update if !roles.HasRole(claims, roles.Author) { return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - if err := s.scenarioService.UpdateScenarioConclusion(ctx, int(req.Id), convertConclusion(req.Conclusion), claims.UserID, roles.HasRole(claims, roles.Admin)); err != nil { + if err := s.scenarioService.UpdateScenarioConclusion(ctx, int(req.ID), convertConclusion(req.Conclusion), claims.UserID, roles.HasRole(claims, roles.Admin)); err != nil { return &proto.UpdateScenarioConclusionRsp{Error: err.Error()}, nil } return &proto.UpdateScenarioConclusionRsp{}, nil diff --git a/internal/app/scenarios.go b/internal/app/scenarios.go index 330fe1c..bbe74a0 100644 --- a/internal/app/scenarios.go +++ b/internal/app/scenarios.go @@ -27,7 +27,7 @@ func (s *server) AddScenario(ctx context.Context, req *proto.AddScenarioReq) (*p }, nil } return &proto.AddScenarioRsp{ - Id: int32(id), + ID: int32(id), }, nil } @@ -77,7 +77,7 @@ func (s *server) GetFullScenario(ctx context.Context, req *proto.GetScenarioReq) return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - scenario, err := s.scenarioService.GetFullScenarioByID(ctx, int(req.Id)) + scenario, err := s.scenarioService.GetFullScenarioByID(ctx, int(req.ID)) if err != nil { return &proto.GetScenarioRsp{ Error: err.Error(), @@ -90,7 +90,7 @@ func (s *server) GetFullScenario(ctx context.Context, req *proto.GetScenarioReq) } func (s *server) GetScenario(ctx context.Context, req *proto.GetScenarioReq) (*proto.GetScenarioRsp, error) { - scenario, err := s.scenarioService.GetScenarioByID(ctx, int(req.Id)) + scenario, err := s.scenarioService.GetScenarioByID(ctx, int(req.ID)) if err != nil { return &proto.GetScenarioRsp{ Error: err.Error(), @@ -128,7 +128,7 @@ func (s *server) UpdateScenario(ctx context.Context, req *proto.UpdateScenarioRe err := s.scenarioService.UpdateScenarioByID( ctx, - int(req.Id), + int(req.ID), req.Name, req.Description, req.Image, @@ -155,7 +155,7 @@ func (s *server) PublicScenario(ctx context.Context, req *proto.PublicScenarioRe err := s.scenarioService.UpdateScenarioStatusByID( ctx, - int(req.Id), + int(req.ID), "public", claims.UserID, roles.HasRole(claims, roles.Admin), // публикация = момент отчуждения прав @@ -183,7 +183,7 @@ func (s *server) DraftScenario(ctx context.Context, req *proto.DraftScenarioReq) err := s.scenarioService.UpdateScenarioStatusByID( ctx, - int(req.Id), + int(req.ID), "draft", claims.UserID, true, @@ -210,7 +210,7 @@ func (s *server) DeleteScenario(ctx context.Context, req *proto.DeleteScenarioRe // отчуждено); админ может. err := s.scenarioService.DeleteScenarioByID( ctx, - int(req.Id), + int(req.ID), claims.UserID, roles.HasRole(claims, roles.Admin), ) diff --git a/internal/app/screens.go b/internal/app/screens.go index 63be67a..fe7144c 100644 --- a/internal/app/screens.go +++ b/internal/app/screens.go @@ -26,14 +26,14 @@ func (s *server) CreateScreenSession(ctx context.Context, _ *proto.CreateScreenS if err != nil { return nil, status.Error(codes.Internal, "не удалось создать сессию экрана") } - return &proto.CreateScreenSessionRsp{ScreenId: fmt.Sprint(id), AccessToken: token}, nil + return &proto.CreateScreenSessionRsp{ScreenID: fmt.Sprint(id), AccessToken: token}, nil } func (s *server) GetScreenState(ctx context.Context, req *proto.GetScreenStateReq) (*proto.GetScreenStateRsp, error) { - if req == nil || req.ScreenId == "" || req.AccessToken == "" { + if req == nil || req.ScreenID == "" || req.AccessToken == "" { return nil, status.Error(codes.InvalidArgument, "некорректные данные экрана") } - id, err := strconv.Atoi(req.ScreenId) + id, err := strconv.Atoi(req.ScreenID) if err != nil || id <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } @@ -53,13 +53,13 @@ func (s *server) GetGameScreens(ctx context.Context, req *proto.GetGameScreensRe if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 { + if req == nil || req.GameID <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор игры") } - if _, err := s.gameService.GetGame(ctx, int(req.GameId)); err != nil { + if _, err := s.gameService.GetGame(ctx, int(req.GameID)); err != nil { return nil, status.Error(codes.NotFound, "игра не найдена") } - sessions, err := s.screenRepo.ListByGame(ctx, int(req.GameId)) + sessions, err := s.screenRepo.ListByGame(ctx, int(req.GameID)) if err != nil { return nil, status.Error(codes.Internal, "не удалось получить экраны игры") } @@ -76,18 +76,18 @@ func (s *server) BindScreen(ctx context.Context, req *proto.BindScreenReq) (*pro if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.ScreenId == "" || req.AccessToken == "" || req.GameId <= 0 { + if req == nil || req.ScreenID == "" || req.AccessToken == "" || req.GameID <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректные данные привязки") } - id, err := strconv.Atoi(req.ScreenId) + id, err := strconv.Atoi(req.ScreenID) if err != nil || id <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } - if _, err = s.gameService.GetGame(ctx, int(req.GameId)); err != nil { + if _, err = s.gameService.GetGame(ctx, int(req.GameID)); err != nil { return nil, status.Error(codes.NotFound, "игра не найдена") } hash := hashScreenToken(req.AccessToken) - if err = s.screenRepo.Bind(ctx, id, int(req.GameId), hash); err != nil { + if err = s.screenRepo.Bind(ctx, id, int(req.GameID), hash); err != nil { if errors.Is(err, screen_sessions_repo.ErrScreenNotFound) { return nil, status.Error(codes.Unauthenticated, "недействительная сессия экрана") } @@ -106,10 +106,10 @@ func (s *server) UnbindScreen(ctx context.Context, req *proto.UnbindScreenReq) ( if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.ScreenId == "" { + if req == nil || req.ScreenID == "" { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } - id, err := strconv.Atoi(req.ScreenId) + id, err := strconv.Atoi(req.ScreenID) if err != nil || id <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } @@ -126,10 +126,10 @@ func (s *server) SetScreenSound(ctx context.Context, req *proto.SetScreenSoundRe if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.ScreenId == "" { + if req == nil || req.ScreenID == "" { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } - id, err := strconv.Atoi(req.ScreenId) + id, err := strconv.Atoi(req.ScreenID) if err != nil || id <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } @@ -167,7 +167,7 @@ func screenState(session *screen_sessions_repo.ScreenSession) *proto.ScreenState } } state := &proto.ScreenState{ - Id: fmt.Sprint(session.ID), + ID: fmt.Sprint(session.ID), Status: "disconnected", SoundEnabled: session.Sound, Mode: proto.ScreenMode(session.Mode), @@ -185,7 +185,7 @@ func screenState(session *screen_sessions_repo.ScreenSession) *proto.ScreenState } if session.GameID != nil { gameID := int32(*session.GameID) - state.GameId = &gameID + state.GameID = &gameID if state.Mode == proto.ScreenMode_SCREEN_MODE_UNSPECIFIED { state.Mode = proto.ScreenMode_SCREEN_MODE_COVER } @@ -223,13 +223,13 @@ func (s *server) SetScreenMode(ctx context.Context, req *proto.SetScreenModeReq) if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 || req.Mode == proto.ScreenMode_SCREEN_MODE_UNSPECIFIED { + if req == nil || req.GameID <= 0 || req.Mode == proto.ScreenMode_SCREEN_MODE_UNSPECIFIED { return nil, status.Error(codes.InvalidArgument, "некорректный режим экрана") } - if _, err := s.gameService.GetGame(ctx, int(req.GameId)); err != nil { + if _, err := s.gameService.GetGame(ctx, int(req.GameID)); err != nil { return nil, status.Error(codes.NotFound, "игра не найдена") } - if err := s.screenRepo.SetMode(ctx, int(req.GameId), int32(req.Mode)); err != nil { + if err := s.screenRepo.SetMode(ctx, int(req.GameID), int32(req.Mode)); err != nil { return nil, status.Error(codes.Internal, "не удалось изменить режим экранов") } return &proto.SetScreenModeRsp{}, nil @@ -239,7 +239,7 @@ func (s *server) SetScreenTimer(ctx context.Context, req *proto.SetScreenTimerRe if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 || req.DurationSeconds <= 0 || req.DurationSeconds > 24*60*60 { + if req == nil || req.GameID <= 0 || req.DurationSeconds <= 0 || req.DurationSeconds > 24*60*60 { return nil, status.Error(codes.InvalidArgument, "некорректные параметры таймера") } label := strings.TrimSpace(req.Label) @@ -249,10 +249,10 @@ func (s *server) SetScreenTimer(ctx context.Context, req *proto.SetScreenTimerRe if len(label) > 200 { return nil, status.Error(codes.InvalidArgument, "слишком длинная надпись таймера") } - if _, err := s.gameService.GetGame(ctx, int(req.GameId)); err != nil { + if _, err := s.gameService.GetGame(ctx, int(req.GameID)); err != nil { return nil, status.Error(codes.NotFound, "игра не найдена") } - if err := s.screenRepo.SetTimer(ctx, int(req.GameId), req.DurationSeconds, label); err != nil { + if err := s.screenRepo.SetTimer(ctx, int(req.GameID), req.DurationSeconds, label); err != nil { return nil, status.Error(codes.Internal, "не удалось настроить таймер экранов") } return &proto.SetScreenTimerRsp{}, nil @@ -262,14 +262,14 @@ func (s *server) SendScreenCommand(ctx context.Context, req *proto.SendScreenCom if !canManageScreens(ctx) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 || req.Command == proto.ScreenCommand_SCREEN_COMMAND_UNSPECIFIED { + if req == nil || req.GameID <= 0 || req.Command == proto.ScreenCommand_SCREEN_COMMAND_UNSPECIFIED { return nil, status.Error(codes.InvalidArgument, "некорректная команда экрана") } - if _, err := s.gameService.GetGame(ctx, int(req.GameId)); err != nil { + if _, err := s.gameService.GetGame(ctx, int(req.GameID)); err != nil { return nil, status.Error(codes.NotFound, "игра не найдена") } if isTimerCommand(req.Command) { - if err := s.screenRepo.SetTimerCommand(ctx, int(req.GameId), int32(req.Command)); err != nil { + if err := s.screenRepo.SetTimerCommand(ctx, int(req.GameID), int32(req.Command)); err != nil { return nil, status.Error(codes.Internal, "не удалось выполнить команду таймера") } return &proto.SendScreenCommandRsp{}, nil @@ -280,7 +280,7 @@ func (s *server) SendScreenCommand(ctx context.Context, req *proto.SendScreenCom if req.Volume < 0 || req.Volume > 100 { return nil, status.Error(codes.InvalidArgument, "некорректная громкость") } - if err := s.screenRepo.SetCommand(ctx, int(req.GameId), int32(req.Command), req.PositionMs, req.Volume); err != nil { + if err := s.screenRepo.SetCommand(ctx, int(req.GameID), int32(req.Command), req.PositionMs, req.Volume); err != nil { return nil, status.Error(codes.Internal, "не удалось сохранить позицию экранов") } return &proto.SendScreenCommandRsp{}, nil @@ -291,10 +291,10 @@ func isTimerCommand(command proto.ScreenCommand) bool { } func (s *server) GetScreenResults(ctx context.Context, req *proto.GetScreenResultsReq) (*proto.GetScreenResultsRsp, error) { - if req == nil || req.ScreenId == "" || req.AccessToken == "" { + if req == nil || req.ScreenID == "" || req.AccessToken == "" { return nil, status.Error(codes.InvalidArgument, "некорректные данные экрана") } - id, err := strconv.Atoi(req.ScreenId) + id, err := strconv.Atoi(req.ScreenID) if err != nil || id <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор экрана") } diff --git a/internal/app/story_mapper.go b/internal/app/story_mapper.go index 5fb7347..91fafe5 100644 --- a/internal/app/story_mapper.go +++ b/internal/app/story_mapper.go @@ -26,7 +26,7 @@ func mapScenario(o *scenarios_service.Scenario) *proto.Scenario { publishedAt = timestamppb.New(*o.PublishedAt) } return &proto.Scenario{ - Id: int32(o.ID), + ID: int32(o.ID), Name: o.Name, Description: o.Description, Image: o.Image, diff --git a/internal/app/team_mapper.go b/internal/app/team_mapper.go index ebca700..566a29a 100644 --- a/internal/app/team_mapper.go +++ b/internal/app/team_mapper.go @@ -9,7 +9,7 @@ func mapTeam( o *game_model.Team, ) *proto.Team { return &proto.Team{ - Id: int32(o.ID), + ID: int32(o.ID), Name: o.Name, Status: o.Status, Password: o.Password, diff --git a/internal/app/team_qr.go b/internal/app/team_qr.go index d1dbed7..ff8d08f 100644 --- a/internal/app/team_qr.go +++ b/internal/app/team_qr.go @@ -26,10 +26,10 @@ func (s *server) DownloadTeamQR(ctx context.Context, req *proto.GetGameReq) (*ht if !roles.HasRole(claims, roles.Organizer) && !roles.HasRole(claims, roles.Author) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.Id <= 0 { + if req == nil || req.ID <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор игры") } - data, filename, err := s.teamService.DownloadTeamQR(ctx, int(req.Id)) + data, filename, err := s.teamService.DownloadTeamQR(ctx, int(req.ID)) if err != nil { switch { case errors.Is(err, games_repo.ErrGameNotFound): diff --git a/internal/app/team_qr_test.go b/internal/app/team_qr_test.go index 0dbfa23..1ed0aed 100644 --- a/internal/app/team_qr_test.go +++ b/internal/app/team_qr_test.go @@ -22,7 +22,7 @@ func TestDownloadTeamQRAccess(t *testing.T) { {ctxWithClaims("author"), -1, codes.InvalidArgument}, {ctxWithClaims("admin"), 0, codes.InvalidArgument}, } { - _, err := s.DownloadTeamQR(tc.ctx, &proto.GetGameReq{Id: tc.id}) + _, err := s.DownloadTeamQR(tc.ctx, &proto.GetGameReq{ID: tc.id}) if status.Code(err) != tc.want { t.Errorf("code = %v, want %v", status.Code(err), tc.want) } diff --git a/internal/app/teams.go b/internal/app/teams.go index ae68b89..2423daf 100644 --- a/internal/app/teams.go +++ b/internal/app/teams.go @@ -22,7 +22,7 @@ func (s *server) AddTeam(ctx context.Context, req *proto.AddTeamReq) (*proto.Add team, err := s.teamService.AddTeam( ctx, claims.UserID, - int(req.GameId), + int(req.GameID), req.Name, req.CaptainEmail, ) @@ -33,7 +33,7 @@ func (s *server) AddTeam(ctx context.Context, req *proto.AddTeamReq) (*proto.Add } return &proto.AddTeamRsp{ - Id: int32(team.ID), + ID: int32(team.ID), Password: team.Password, }, nil } @@ -49,7 +49,7 @@ func (s *server) UpdateTeam(ctx context.Context, req *proto.UpdateTeamReq) (*pro err := s.teamService.UpdateTeam( ctx, - int(req.Id), + int(req.ID), req.Name, ) if err != nil { @@ -72,7 +72,7 @@ func (s *server) DeleteTeam(ctx context.Context, req *proto.DeleteTeamReq) (*pro err := s.teamService.DeleteTeam( ctx, - int(req.Id), + int(req.ID), ) if err != nil { return &proto.DeleteTeamRsp{ @@ -94,7 +94,7 @@ func (s *server) GiveTeamApplications(ctx context.Context, req *proto.GiveTeamAp err := s.gameplayService.GiveTeamApplications( ctx, - int(req.Id), + int(req.ID), req.Name, ) if err != nil { @@ -109,7 +109,7 @@ func (s *server) GiveTeamApplications(ctx context.Context, req *proto.GiveTeamAp func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (*proto.GetTeamStoryRsp, error) { story, game, actions, err := s.gameplayService.GetTeamActions( ctx, - int(req.Id), + int(req.ID), req.Password, ) if err != nil { @@ -132,7 +132,7 @@ func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) ( func (s *server) AddTeamAction(ctx context.Context, req *proto.AddTeamActionReq) (*proto.AddTeamActionRsp, error) { err := s.gameplayService.AddTeamAction( ctx, - int(req.Id), + int(req.ID), req.Password, req.Code, false, @@ -157,7 +157,7 @@ func (s *server) DeleteLastTeamAction(ctx context.Context, req *proto.DeleteLast err := s.gameplayService.DeleteLastTeamAction( ctx, - int(req.Id), + int(req.ID), ) if err != nil { return &proto.DeleteLastTeamActionRsp{ diff --git a/internal/app/tickets.go b/internal/app/tickets.go index 0b4bbf4..7fc13d6 100644 --- a/internal/app/tickets.go +++ b/internal/app/tickets.go @@ -25,7 +25,7 @@ func (s *server) GetTicket(ctx context.Context, req *proto.GetTicketReq) (*proto } result := &proto.TicketPage{ - Id: int32(page.ID), + ID: int32(page.ID), GameName: page.GameName, StartAt: timestamppb.New(page.StartAt), Status: page.Status, @@ -55,7 +55,7 @@ func (s *server) AcceptTicket(ctx context.Context, req *proto.AcceptTicketReq) ( if err != nil { return &proto.AcceptTicketRsp{Error: err.Error()}, nil } - result := &proto.TicketPage{Id: int32(page.ID), GameName: page.GameName, StartAt: timestamppb.New(page.StartAt), Status: page.Status, GameStatus: page.GameStatus} + result := &proto.TicketPage{ID: int32(page.ID), GameName: page.GameName, StartAt: timestamppb.New(page.StartAt), Status: page.Status, GameStatus: page.GameStatus} if page.Location != nil { result.Location = *page.Location } @@ -76,18 +76,18 @@ func (s *server) IssueGameTickets(ctx context.Context, req *proto.IssueGameTicke if !roles.HasRole(claims, roles.Organizer) && !roles.HasRole(claims, roles.Author) { return nil, status.Error(codes.PermissionDenied, "permission denied") } - if req == nil || req.GameId <= 0 { + if req == nil || req.GameID <= 0 { return nil, status.Error(codes.InvalidArgument, "некорректный идентификатор игры") } - tickets, err := s.ticketService.Issue(ctx, int(req.GameId), int(req.Count)) + tickets, err := s.ticketService.Issue(ctx, int(req.GameID), int(req.Count)) if err != nil { return &proto.IssueGameTicketsRsp{Error: err.Error()}, nil } result := make([]*proto.Ticket, 0, len(tickets)) for _, ticket := range tickets { - result = append(result, &proto.Ticket{Id: int32(ticket.ID), Url: ticket.URL}) + result = append(result, &proto.Ticket{ID: int32(ticket.ID), URL: ticket.URL}) } return &proto.IssueGameTicketsRsp{Tickets: result}, nil } diff --git a/internal/app/user_mapper.go b/internal/app/user_mapper.go index 59e7cf0..eeae483 100644 --- a/internal/app/user_mapper.go +++ b/internal/app/user_mapper.go @@ -15,7 +15,7 @@ func mapUser(o *repos.User) *proto.User { return nil } return &proto.User{ - Id: int32(o.ID), + ID: int32(o.ID), Username: o.Username, Email: o.Email, Roles: o.Roles, diff --git a/internal/app/user_mapper_test.go b/internal/app/user_mapper_test.go index d69710c..f3c0b8e 100644 --- a/internal/app/user_mapper_test.go +++ b/internal/app/user_mapper_test.go @@ -27,7 +27,7 @@ func TestMapUser(t *testing.T) { if got == nil { t.Fatal("mapUser вернул nil для не-nil пользователя") } - if got.Id != 42 || got.Username != "detective" || got.Email != "d@example.com" { + if got.ID != 42 || got.Username != "detective" || got.Email != "d@example.com" { t.Errorf("неожиданный маппинг: %+v", got) } if len(got.Roles) != 1 || got.Roles[0] != "user" { diff --git a/internal/app/users.go b/internal/app/users.go index b1c2c76..38ce472 100644 --- a/internal/app/users.go +++ b/internal/app/users.go @@ -175,15 +175,15 @@ func (s *server) GetUsers(ctx context.Context, req *proto.GetUsersReq) (*proto.G }, nil } -func (s *server) GetUserById(ctx context.Context, req *proto.GetUserByIdReq) (*proto.GetUserByIdRsp, error) { - user, err := s.usersService.GetUserByID(ctx, int(req.Id)) +func (s *server) GetUserByID(ctx context.Context, req *proto.GetUserByIDReq) (*proto.GetUserByIDRsp, error) { + user, err := s.usersService.GetUserByID(ctx, int(req.ID)) if err != nil { - return &proto.GetUserByIdRsp{ + return &proto.GetUserByIDRsp{ Error: err.Error(), }, nil } - return &proto.GetUserByIdRsp{ + return &proto.GetUserByIDRsp{ User: mapUser(user), }, nil } @@ -213,7 +213,7 @@ func (s *server) AddUserRole(ctx context.Context, req *proto.AddUserRoleReq) (*p if !roles.HasRole(claims, roles.Admin) { return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - if err := s.usersService.AddUserRole(ctx, int(req.Id), req.Role); err != nil { + if err := s.usersService.AddUserRole(ctx, int(req.ID), req.Role); err != nil { return &proto.AddUserRoleRsp{ Error: err.Error(), }, nil @@ -229,7 +229,7 @@ func (s *server) DeleteUserRole(ctx context.Context, req *proto.DeleteUserRoleRe if !roles.HasRole(claims, roles.Admin) { return nil, status.Errorf(codes.PermissionDenied, "permission denied") } - if err := s.usersService.DeleteUserRole(ctx, int(req.Id), req.Role); err != nil { + if err := s.usersService.DeleteUserRole(ctx, int(req.ID), req.Role); err != nil { return &proto.DeleteUserRoleRsp{ Error: err.Error(), }, nil @@ -256,7 +256,7 @@ func (s *server) ChangeUserPassword(ctx context.Context, req *proto.ChangeUserPa if !roles.HasRole(claims, roles.Admin) { return nil, status.Error(codes.PermissionDenied, "Недостаточно прав") } - err := s.usersService.ChangeUserPassword(ctx, claims.UserID, int(req.GetId()), req.GetNewPassword()) + err := s.usersService.ChangeUserPassword(ctx, claims.UserID, int(req.GetID()), req.GetNewPassword()) switch { case errors.Is(err, users_service.ErrPasswordChangeForbidden): return nil, status.Error(codes.PermissionDenied, err.Error()) diff --git a/proto/main.pb.go b/proto/main.pb.go index b1ea571..c1e5184 100644 --- a/proto/main.pb.go +++ b/proto/main.pb.go @@ -4,6 +4,12 @@ // protoc v7.36.0 // source: main.proto +// Contract rules: +// - fields inside each message are declared in ascending number order; +// - published field numbers are never renumbered or reused; +// - use ID, ID and URL for abbreviation fields so generated clients +// keep the same naming convention across Go and TypeScript. + package proto import ( @@ -1236,7 +1242,7 @@ func (x *GetUsersRsp) GetUsers() []*User { type User struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` @@ -1276,9 +1282,9 @@ func (*User) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{22} } -func (x *User) GetId() int32 { +func (x *User) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -1318,27 +1324,27 @@ func (x *User) GetCreatedAt() *timestamppb.Timestamp { return nil } -type GetUserByIdReq struct { +type GetUserByIDReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *GetUserByIdReq) Reset() { - *x = GetUserByIdReq{} +func (x *GetUserByIDReq) Reset() { + *x = GetUserByIDReq{} mi := &file_main_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *GetUserByIdReq) String() string { +func (x *GetUserByIDReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetUserByIdReq) ProtoMessage() {} +func (*GetUserByIDReq) ProtoMessage() {} -func (x *GetUserByIdReq) ProtoReflect() protoreflect.Message { +func (x *GetUserByIDReq) ProtoReflect() protoreflect.Message { mi := &file_main_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1350,19 +1356,19 @@ func (x *GetUserByIdReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserByIdReq.ProtoReflect.Descriptor instead. -func (*GetUserByIdReq) Descriptor() ([]byte, []int) { +// Deprecated: Use GetUserByIDReq.ProtoReflect.Descriptor instead. +func (*GetUserByIDReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{23} } -func (x *GetUserByIdReq) GetId() int32 { +func (x *GetUserByIDReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } -type GetUserByIdRsp struct { +type GetUserByIDRsp struct { state protoimpl.MessageState `protogen:"open.v1"` Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` @@ -1370,20 +1376,20 @@ type GetUserByIdRsp struct { sizeCache protoimpl.SizeCache } -func (x *GetUserByIdRsp) Reset() { - *x = GetUserByIdRsp{} +func (x *GetUserByIDRsp) Reset() { + *x = GetUserByIDRsp{} mi := &file_main_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *GetUserByIdRsp) String() string { +func (x *GetUserByIDRsp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetUserByIdRsp) ProtoMessage() {} +func (*GetUserByIDRsp) ProtoMessage() {} -func (x *GetUserByIdRsp) ProtoReflect() protoreflect.Message { +func (x *GetUserByIDRsp) ProtoReflect() protoreflect.Message { mi := &file_main_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1395,19 +1401,19 @@ func (x *GetUserByIdRsp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserByIdRsp.ProtoReflect.Descriptor instead. -func (*GetUserByIdRsp) Descriptor() ([]byte, []int) { +// Deprecated: Use GetUserByIDRsp.ProtoReflect.Descriptor instead. +func (*GetUserByIDRsp) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{24} } -func (x *GetUserByIdRsp) GetError() string { +func (x *GetUserByIDRsp) GetError() string { if x != nil { return x.Error } return "" } -func (x *GetUserByIdRsp) GetUser() *User { +func (x *GetUserByIDRsp) GetUser() *User { if x != nil { return x.User } @@ -1504,7 +1510,7 @@ func (x *GetMeRsp) GetUser() *User { type ChangeUserPasswordReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1540,9 +1546,9 @@ func (*ChangeUserPasswordReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{27} } -func (x *ChangeUserPasswordReq) GetId() int32 { +func (x *ChangeUserPasswordReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -1592,7 +1598,7 @@ func (*ChangeUserPasswordRsp) Descriptor() ([]byte, []int) { type AddUserRoleReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1628,9 +1634,9 @@ func (*AddUserRoleReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{29} } -func (x *AddUserRoleReq) GetId() int32 { +func (x *AddUserRoleReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -1688,7 +1694,7 @@ func (x *AddUserRoleRsp) GetError() string { type DeleteUserRoleReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1724,9 +1730,9 @@ func (*DeleteUserRoleReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{31} } -func (x *DeleteUserRoleReq) GetId() int32 { +func (x *DeleteUserRoleReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -2075,7 +2081,7 @@ func (x *AddScenarioReq) GetName() string { type AddScenarioRsp struct { state protoimpl.MessageState `protogen:"open.v1"` Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2117,9 +2123,9 @@ func (x *AddScenarioRsp) GetError() string { return "" } -func (x *AddScenarioRsp) GetId() int32 { +func (x *AddScenarioRsp) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -2302,7 +2308,7 @@ func (x *GetScenariosCatalogRsp) GetScenarios() []*Scenario { type GetScenarioReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2337,9 +2343,9 @@ func (*GetScenarioReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{44} } -func (x *GetScenarioReq) GetId() int32 { +func (x *GetScenarioReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -2398,7 +2404,7 @@ func (x *GetScenarioRsp) GetScenario() *Scenario { type Scenario struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` Image *string `protobuf:"bytes,4,opt,name=image,proto3,oneof" json:"image,omitempty"` @@ -2444,9 +2450,9 @@ func (*Scenario) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{46} } -func (x *Scenario) GetId() int32 { +func (x *Scenario) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -2530,11 +2536,11 @@ func (x *Scenario) GetReviewsCount() int32 { type Story struct { state protoimpl.MessageState `protogen:"open.v1"` - Conclusion *Conclusion `protobuf:"bytes,5,opt,name=conclusion,proto3" json:"conclusion,omitempty"` // Только в полном сценарии, игрокам не передаётся. - Background string `protobuf:"bytes,4,opt,name=background,proto3" json:"background,omitempty"` - Introduction *Introduction `protobuf:"bytes,2,opt,name=introduction,proto3" json:"introduction,omitempty"` Places []*Place `protobuf:"bytes,1,rep,name=places,proto3" json:"places,omitempty"` + Introduction *Introduction `protobuf:"bytes,2,opt,name=introduction,proto3" json:"introduction,omitempty"` Questions []*Question `protobuf:"bytes,3,rep,name=questions,proto3" json:"questions,omitempty"` + Background string `protobuf:"bytes,4,opt,name=background,proto3" json:"background,omitempty"` + Conclusion *Conclusion `protobuf:"bytes,5,opt,name=conclusion,proto3" json:"conclusion,omitempty"` // Только в полном сценарии, игрокам не передаётся. unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2569,9 +2575,23 @@ func (*Story) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{47} } -func (x *Story) GetConclusion() *Conclusion { +func (x *Story) GetPlaces() []*Place { if x != nil { - return x.Conclusion + return x.Places + } + return nil +} + +func (x *Story) GetIntroduction() *Introduction { + if x != nil { + return x.Introduction + } + return nil +} + +func (x *Story) GetQuestions() []*Question { + if x != nil { + return x.Questions } return nil } @@ -2583,23 +2603,9 @@ func (x *Story) GetBackground() string { return "" } -func (x *Story) GetIntroduction() *Introduction { +func (x *Story) GetConclusion() *Conclusion { if x != nil { - return x.Introduction - } - return nil -} - -func (x *Story) GetPlaces() []*Place { - if x != nil { - return x.Places - } - return nil -} - -func (x *Story) GetQuestions() []*Question { - if x != nil { - return x.Questions + return x.Conclusion } return nil } @@ -3213,7 +3219,7 @@ func (x *TeamAnswers) GetAnswers() []*AnswerScore { type UpdateScenarioReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` @@ -3251,9 +3257,9 @@ func (*UpdateScenarioReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{58} } -func (x *UpdateScenarioReq) GetId() int32 { +func (x *UpdateScenarioReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3325,7 +3331,7 @@ func (x *UpdateScenarioRsp) GetError() string { type PublicScenarioReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3360,9 +3366,9 @@ func (*PublicScenarioReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{60} } -func (x *PublicScenarioReq) GetId() int32 { +func (x *PublicScenarioReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3413,7 +3419,7 @@ func (x *PublicScenarioRsp) GetError() string { type DraftScenarioReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3448,9 +3454,9 @@ func (*DraftScenarioReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{62} } -func (x *DraftScenarioReq) GetId() int32 { +func (x *DraftScenarioReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3501,7 +3507,7 @@ func (x *DraftScenarioRsp) GetError() string { type DeleteScenarioReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3536,9 +3542,9 @@ func (*DeleteScenarioReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{64} } -func (x *DeleteScenarioReq) GetId() int32 { +func (x *DeleteScenarioReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3589,7 +3595,7 @@ func (x *DeleteScenarioRsp) GetError() string { type AddScenarioPlaceReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Place *Place `protobuf:"bytes,2,opt,name=place,proto3" json:"place,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -3625,9 +3631,9 @@ func (*AddScenarioPlaceReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{66} } -func (x *AddScenarioPlaceReq) GetId() int32 { +func (x *AddScenarioPlaceReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3685,7 +3691,7 @@ func (x *AddScenarioPlaceRsp) GetError() string { type UpdateScenarioPlaceReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Place *Place `protobuf:"bytes,3,opt,name=place,proto3" json:"place,omitempty"` unknownFields protoimpl.UnknownFields @@ -3722,9 +3728,9 @@ func (*UpdateScenarioPlaceReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{68} } -func (x *UpdateScenarioPlaceReq) GetId() int32 { +func (x *UpdateScenarioPlaceReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3789,7 +3795,7 @@ func (x *UpdateScenarioPlaceRsp) GetError() string { type DeleteScenarioPlaceReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -3825,9 +3831,9 @@ func (*DeleteScenarioPlaceReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{70} } -func (x *DeleteScenarioPlaceReq) GetId() int32 { +func (x *DeleteScenarioPlaceReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3885,7 +3891,7 @@ func (x *DeleteScenarioPlaceRsp) GetError() string { type UpdateScenarioConclusionReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Conclusion *Conclusion `protobuf:"bytes,2,opt,name=conclusion,proto3" json:"conclusion,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -3921,9 +3927,9 @@ func (*UpdateScenarioConclusionReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{72} } -func (x *UpdateScenarioConclusionReq) GetId() int32 { +func (x *UpdateScenarioConclusionReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -3981,7 +3987,7 @@ func (x *UpdateScenarioConclusionRsp) GetError() string { type UpdateScenarioIntroReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Introduction *Introduction `protobuf:"bytes,2,opt,name=introduction,proto3" json:"introduction,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -4017,9 +4023,9 @@ func (*UpdateScenarioIntroReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{74} } -func (x *UpdateScenarioIntroReq) GetId() int32 { +func (x *UpdateScenarioIntroReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4077,7 +4083,7 @@ func (x *UpdateScenarioIntroRsp) GetError() string { type AddScenarioQuestionReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Question *Question `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -4113,9 +4119,9 @@ func (*AddScenarioQuestionReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{76} } -func (x *AddScenarioQuestionReq) GetId() int32 { +func (x *AddScenarioQuestionReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4173,7 +4179,7 @@ func (x *AddScenarioQuestionRsp) GetError() string { type UpdateScenarioQuestionReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Question *Question `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"` unknownFields protoimpl.UnknownFields @@ -4210,9 +4216,9 @@ func (*UpdateScenarioQuestionReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{78} } -func (x *UpdateScenarioQuestionReq) GetId() int32 { +func (x *UpdateScenarioQuestionReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4277,7 +4283,7 @@ func (x *UpdateScenarioQuestionRsp) GetError() string { type DeleteScenarioQuestionReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -4313,9 +4319,9 @@ func (*DeleteScenarioQuestionReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{80} } -func (x *DeleteScenarioQuestionReq) GetId() int32 { +func (x *DeleteScenarioQuestionReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4373,7 +4379,7 @@ func (x *DeleteScenarioQuestionRsp) GetError() string { type DownloadScenarioArchiveReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4408,9 +4414,9 @@ func (*DownloadScenarioArchiveReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{82} } -func (x *DownloadScenarioArchiveReq) GetId() int32 { +func (x *DownloadScenarioArchiveReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4418,7 +4424,7 @@ func (x *DownloadScenarioArchiveReq) GetId() int32 { type UploadScenarioArchiveRsp struct { state protoimpl.MessageState `protogen:"open.v1"` Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4460,9 +4466,9 @@ func (x *UploadScenarioArchiveRsp) GetError() string { return "" } -func (x *UploadScenarioArchiveRsp) GetId() int32 { +func (x *UploadScenarioArchiveRsp) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4472,7 +4478,7 @@ type AddGameReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` - ScenarioId int32 `protobuf:"varint,4,opt,name=scenario_id,json=scenarioId,proto3" json:"scenario_id,omitempty"` + ScenarioID int32 `protobuf:"varint,4,opt,name=scenarioID,proto3" json:"scenarioID,omitempty"` Format string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"` Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"` unknownFields protoimpl.UnknownFields @@ -4530,9 +4536,9 @@ func (x *AddGameReq) GetStartAt() *timestamppb.Timestamp { return nil } -func (x *AddGameReq) GetScenarioId() int32 { +func (x *AddGameReq) GetScenarioID() int32 { if x != nil { - return x.ScenarioId + return x.ScenarioID } return 0 } @@ -4554,7 +4560,7 @@ func (x *AddGameReq) GetLocation() string { type AddGameRsp struct { state protoimpl.MessageState `protogen:"open.v1"` Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4596,9 +4602,9 @@ func (x *AddGameRsp) GetError() string { return "" } -func (x *AddGameRsp) GetId() int32 { +func (x *AddGameRsp) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4693,7 +4699,7 @@ func (x *GetGamesRsp) GetGames() []*Game { type Game struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` @@ -4738,9 +4744,9 @@ func (*Game) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{88} } -func (x *Game) GetId() int32 { +func (x *Game) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -4817,9 +4823,9 @@ func (x *Game) GetLocation() string { type ScreenState struct { state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - GameId *int32 `protobuf:"varint,3,opt,name=game_id,json=gameId,proto3,oneof" json:"game_id,omitempty"` + GameID *int32 `protobuf:"varint,3,opt,name=gameID,proto3,oneof" json:"gameID,omitempty"` Mode ScreenMode `protobuf:"varint,4,opt,name=mode,proto3,enum=crabs.evening_detective_server.ScreenMode" json:"mode,omitempty"` SoundEnabled bool `protobuf:"varint,5,opt,name=sound_enabled,json=soundEnabled,proto3" json:"sound_enabled,omitempty"` Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` @@ -4870,9 +4876,9 @@ func (*ScreenState) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{89} } -func (x *ScreenState) GetId() string { +func (x *ScreenState) GetID() string { if x != nil { - return x.Id + return x.ID } return "" } @@ -4884,9 +4890,9 @@ func (x *ScreenState) GetStatus() string { return "" } -func (x *ScreenState) GetGameId() int32 { - if x != nil && x.GameId != nil { - return *x.GameId +func (x *ScreenState) GetGameID() int32 { + if x != nil && x.GameID != nil { + return *x.GameID } return 0 } @@ -5042,7 +5048,7 @@ func (*CreateScreenSessionReq) Descriptor() ([]byte, []int) { type CreateScreenSessionRsp struct { state protoimpl.MessageState `protogen:"open.v1"` Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - ScreenId string `protobuf:"bytes,2,opt,name=screen_id,json=screenId,proto3" json:"screen_id,omitempty"` + ScreenID string `protobuf:"bytes,2,opt,name=screenID,proto3" json:"screenID,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -5085,9 +5091,9 @@ func (x *CreateScreenSessionRsp) GetError() string { return "" } -func (x *CreateScreenSessionRsp) GetScreenId() string { +func (x *CreateScreenSessionRsp) GetScreenID() string { if x != nil { - return x.ScreenId + return x.ScreenID } return "" } @@ -5101,7 +5107,7 @@ func (x *CreateScreenSessionRsp) GetAccessToken() string { type GetScreenStateReq struct { state protoimpl.MessageState `protogen:"open.v1"` - ScreenId string `protobuf:"bytes,1,opt,name=screenId,proto3" json:"screenId,omitempty"` + ScreenID string `protobuf:"bytes,1,opt,name=screenID,proto3" json:"screenID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -5137,9 +5143,9 @@ func (*GetScreenStateReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{92} } -func (x *GetScreenStateReq) GetScreenId() string { +func (x *GetScreenStateReq) GetScreenID() string { if x != nil { - return x.ScreenId + return x.ScreenID } return "" } @@ -5205,7 +5211,7 @@ func (x *GetScreenStateRsp) GetState() *ScreenState { type GetGameScreensReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5240,9 +5246,9 @@ func (*GetGameScreensReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{94} } -func (x *GetGameScreensReq) GetGameId() int32 { +func (x *GetGameScreensReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -5301,9 +5307,9 @@ func (x *GetGameScreensRsp) GetScreens() []*ScreenState { type BindScreenReq struct { state protoimpl.MessageState `protogen:"open.v1"` - ScreenId string `protobuf:"bytes,1,opt,name=screenId,proto3" json:"screenId,omitempty"` + ScreenID string `protobuf:"bytes,1,opt,name=screenID,proto3" json:"screenID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"` - GameId int32 `protobuf:"varint,3,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,3,opt,name=gameID,proto3" json:"gameID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5338,9 +5344,9 @@ func (*BindScreenReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{96} } -func (x *BindScreenReq) GetScreenId() string { +func (x *BindScreenReq) GetScreenID() string { if x != nil { - return x.ScreenId + return x.ScreenID } return "" } @@ -5352,9 +5358,9 @@ func (x *BindScreenReq) GetAccessToken() string { return "" } -func (x *BindScreenReq) GetGameId() int32 { +func (x *BindScreenReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -5413,7 +5419,7 @@ func (x *BindScreenRsp) GetState() *ScreenState { type UnbindScreenReq struct { state protoimpl.MessageState `protogen:"open.v1"` - ScreenId string `protobuf:"bytes,1,opt,name=screenId,proto3" json:"screenId,omitempty"` + ScreenID string `protobuf:"bytes,1,opt,name=screenID,proto3" json:"screenID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5448,9 +5454,9 @@ func (*UnbindScreenReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{98} } -func (x *UnbindScreenReq) GetScreenId() string { +func (x *UnbindScreenReq) GetScreenID() string { if x != nil { - return x.ScreenId + return x.ScreenID } return "" } @@ -5501,7 +5507,7 @@ func (x *UnbindScreenRsp) GetError() string { type SetScreenSoundReq struct { state protoimpl.MessageState `protogen:"open.v1"` - ScreenId string `protobuf:"bytes,1,opt,name=screenId,proto3" json:"screenId,omitempty"` + ScreenID string `protobuf:"bytes,1,opt,name=screenID,proto3" json:"screenID,omitempty"` SoundEnabled bool `protobuf:"varint,2,opt,name=soundEnabled,proto3" json:"soundEnabled,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -5537,9 +5543,9 @@ func (*SetScreenSoundReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{100} } -func (x *SetScreenSoundReq) GetScreenId() string { +func (x *SetScreenSoundReq) GetScreenID() string { if x != nil { - return x.ScreenId + return x.ScreenID } return "" } @@ -5598,7 +5604,7 @@ func (x *SetScreenSoundRsp) GetError() string { type MapItem struct { state protoimpl.MessageState `protogen:"open.v1"` Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - ItemId int32 `protobuf:"varint,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` + ItemID int32 `protobuf:"varint,2,opt,name=itemID,proto3" json:"itemID,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` X int32 `protobuf:"varint,4,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,5,opt,name=y,proto3" json:"y,omitempty"` @@ -5646,9 +5652,9 @@ func (x *MapItem) GetKind() string { return "" } -func (x *MapItem) GetItemId() int32 { +func (x *MapItem) GetItemID() int32 { if x != nil { - return x.ItemId + return x.ItemID } return 0 } @@ -5697,7 +5703,7 @@ func (x *MapItem) GetSoundEnabled() bool { type GetGameMapReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5732,9 +5738,9 @@ func (*GetGameMapReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{103} } -func (x *GetGameMapReq) GetGameId() int32 { +func (x *GetGameMapReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -5793,9 +5799,9 @@ func (x *GetGameMapRsp) GetItems() []*MapItem { type UpdateGameMapItemReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` - ItemId int32 `protobuf:"varint,3,opt,name=itemId,proto3" json:"itemId,omitempty"` + ItemID int32 `protobuf:"varint,3,opt,name=itemID,proto3" json:"itemID,omitempty"` X int32 `protobuf:"varint,4,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,5,opt,name=y,proto3" json:"y,omitempty"` Hidden bool `protobuf:"varint,6,opt,name=hidden,proto3" json:"hidden,omitempty"` @@ -5833,9 +5839,9 @@ func (*UpdateGameMapItemReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{105} } -func (x *UpdateGameMapItemReq) GetGameId() int32 { +func (x *UpdateGameMapItemReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -5847,9 +5853,9 @@ func (x *UpdateGameMapItemReq) GetKind() string { return "" } -func (x *UpdateGameMapItemReq) GetItemId() int32 { +func (x *UpdateGameMapItemReq) GetItemID() int32 { if x != nil { - return x.ItemId + return x.ItemID } return 0 } @@ -5921,7 +5927,7 @@ func (x *UpdateGameMapItemRsp) GetError() string { type SetScreenModeReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` Mode ScreenMode `protobuf:"varint,2,opt,name=mode,proto3,enum=crabs.evening_detective_server.ScreenMode" json:"mode,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -5957,9 +5963,9 @@ func (*SetScreenModeReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{107} } -func (x *SetScreenModeReq) GetGameId() int32 { +func (x *SetScreenModeReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -6017,7 +6023,7 @@ func (x *SetScreenModeRsp) GetError() string { type SetScreenTimerReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` DurationSeconds int64 `protobuf:"varint,2,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` unknownFields protoimpl.UnknownFields @@ -6054,9 +6060,9 @@ func (*SetScreenTimerReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{109} } -func (x *SetScreenTimerReq) GetGameId() int32 { +func (x *SetScreenTimerReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -6121,7 +6127,7 @@ func (x *SetScreenTimerRsp) GetError() string { type SendScreenCommandReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` Command ScreenCommand `protobuf:"varint,2,opt,name=command,proto3,enum=crabs.evening_detective_server.ScreenCommand" json:"command,omitempty"` PositionMs int64 `protobuf:"varint,3,opt,name=position_ms,json=positionMs,proto3" json:"position_ms,omitempty"` Volume int32 `protobuf:"varint,4,opt,name=volume,proto3" json:"volume,omitempty"` @@ -6159,9 +6165,9 @@ func (*SendScreenCommandReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{111} } -func (x *SendScreenCommandReq) GetGameId() int32 { +func (x *SendScreenCommandReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -6233,7 +6239,7 @@ func (x *SendScreenCommandRsp) GetError() string { type GetScreenResultsReq struct { state protoimpl.MessageState `protogen:"open.v1"` - ScreenId string `protobuf:"bytes,1,opt,name=screenId,proto3" json:"screenId,omitempty"` + ScreenID string `protobuf:"bytes,1,opt,name=screenID,proto3" json:"screenID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -6269,9 +6275,9 @@ func (*GetScreenResultsReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{113} } -func (x *GetScreenResultsReq) GetScreenId() string { +func (x *GetScreenResultsReq) GetScreenID() string { if x != nil { - return x.ScreenId + return x.ScreenID } return "" } @@ -6543,7 +6549,15 @@ func (x *ParticipationRsp) GetClosed() bool { } type Team struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"open.v1"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + ActionsCount int32 `protobuf:"varint,5,opt,name=actions_count,json=actionsCount,proto3" json:"actions_count,omitempty"` + Applications []*Application `protobuf:"bytes,6,rep,name=applications,proto3" json:"applications,omitempty"` + CaptainEmail string `protobuf:"bytes,7,opt,name=captain_email,json=captainEmail,proto3" json:"captain_email,omitempty"` + ParticipantsCount int32 `protobuf:"varint,8,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` // Статус участия: pending, confirmed или cancelled. Поле панели организатора. ParticipationStatus string `protobuf:"bytes,9,opt,name=participation_status,json=participationStatus,proto3" json:"participation_status,omitempty"` // Источник решения: captain, automatic либо пустая строка до ответа. @@ -6551,15 +6565,7 @@ type Team struct { // Последняя ошибка отправки; пустая строка, если ошибки нет. ParticipationEmailError string `protobuf:"bytes,11,opt,name=participation_email_error,json=participationEmailError,proto3" json:"participation_email_error,omitempty"` // Письмо принято SMTP-сервером; не означает прочтение или доставку во входящие. - ParticipationEmailSent bool `protobuf:"varint,12,opt,name=participation_email_sent,json=participationEmailSent,proto3" json:"participation_email_sent,omitempty"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` - ActionsCount int32 `protobuf:"varint,5,opt,name=actions_count,json=actionsCount,proto3" json:"actions_count,omitempty"` - Applications []*Application `protobuf:"bytes,6,rep,name=applications,proto3" json:"applications,omitempty"` - CaptainEmail string `protobuf:"bytes,7,opt,name=captain_email,json=captainEmail,proto3" json:"captain_email,omitempty"` - ParticipantsCount int32 `protobuf:"varint,8,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` + ParticipationEmailSent bool `protobuf:"varint,12,opt,name=participation_email_sent,json=participationEmailSent,proto3" json:"participation_email_sent,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6594,37 +6600,9 @@ func (*Team) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{118} } -func (x *Team) GetParticipationStatus() string { +func (x *Team) GetID() int32 { if x != nil { - return x.ParticipationStatus - } - return "" -} - -func (x *Team) GetParticipationSource() string { - if x != nil { - return x.ParticipationSource - } - return "" -} - -func (x *Team) GetParticipationEmailError() string { - if x != nil { - return x.ParticipationEmailError - } - return "" -} - -func (x *Team) GetParticipationEmailSent() bool { - if x != nil { - return x.ParticipationEmailSent - } - return false -} - -func (x *Team) GetId() int32 { - if x != nil { - return x.Id + return x.ID } return 0 } @@ -6678,9 +6656,37 @@ func (x *Team) GetParticipantsCount() int32 { return 0 } +func (x *Team) GetParticipationStatus() string { + if x != nil { + return x.ParticipationStatus + } + return "" +} + +func (x *Team) GetParticipationSource() string { + if x != nil { + return x.ParticipationSource + } + return "" +} + +func (x *Team) GetParticipationEmailError() string { + if x != nil { + return x.ParticipationEmailError + } + return "" +} + +func (x *Team) GetParticipationEmailSent() bool { + if x != nil { + return x.ParticipationEmailSent + } + return false +} + type GetGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6715,9 +6721,9 @@ func (*GetGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{119} } -func (x *GetGameReq) GetId() int32 { +func (x *GetGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -6776,7 +6782,7 @@ func (x *GetGameRsp) GetGame() *Game { type GetGameAnswersReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6811,9 +6817,9 @@ func (*GetGameAnswersReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{121} } -func (x *GetGameAnswersReq) GetGameId() int32 { +func (x *GetGameAnswersReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -6880,7 +6886,7 @@ func (x *GetGameAnswersRsp) GetTeams() []*TeamAnswers { type GetGameResultsReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6915,9 +6921,9 @@ func (*GetGameResultsReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{123} } -func (x *GetGameResultsReq) GetGameId() int32 { +func (x *GetGameResultsReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -7120,9 +7126,9 @@ func (x *GetGameResultsRsp) GetTeams() []*TeamResult { type GameReview struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - GameId int32 `protobuf:"varint,2,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` - TeamId int32 `protobuf:"varint,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + GameID int32 `protobuf:"varint,2,opt,name=gameID,proto3" json:"gameID,omitempty"` + TeamID int32 `protobuf:"varint,3,opt,name=teamID,proto3" json:"teamID,omitempty"` TeamName string `protobuf:"bytes,4,opt,name=team_name,json=teamName,proto3" json:"team_name,omitempty"` Rating int32 `protobuf:"varint,5,opt,name=rating,proto3" json:"rating,omitempty"` Text string `protobuf:"bytes,6,opt,name=text,proto3" json:"text,omitempty"` @@ -7163,23 +7169,23 @@ func (*GameReview) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{127} } -func (x *GameReview) GetId() int32 { +func (x *GameReview) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } -func (x *GameReview) GetGameId() int32 { +func (x *GameReview) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } -func (x *GameReview) GetTeamId() int32 { +func (x *GameReview) GetTeamID() int32 { if x != nil { - return x.TeamId + return x.TeamID } return 0 } @@ -7228,8 +7234,8 @@ func (x *GameReview) GetGameName() string { type CreateGameReviewReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` - TeamId int32 `protobuf:"varint,2,opt,name=teamId,proto3" json:"teamId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` + TeamID int32 `protobuf:"varint,2,opt,name=teamID,proto3" json:"teamID,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Rating int32 `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` @@ -7267,16 +7273,16 @@ func (*CreateGameReviewReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{128} } -func (x *CreateGameReviewReq) GetGameId() int32 { +func (x *CreateGameReviewReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } -func (x *CreateGameReviewReq) GetTeamId() int32 { +func (x *CreateGameReviewReq) GetTeamID() int32 { if x != nil { - return x.TeamId + return x.TeamID } return 0 } @@ -7356,7 +7362,7 @@ func (x *CreateGameReviewRsp) GetReview() *GameReview { type GetGameReviewsReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7391,16 +7397,16 @@ func (*GetGameReviewsReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{130} } -func (x *GetGameReviewsReq) GetGameId() int32 { +func (x *GetGameReviewsReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } type GetScenarioReviewsReq struct { state protoimpl.MessageState `protogen:"open.v1"` - ScenarioId int32 `protobuf:"varint,1,opt,name=scenarioId,proto3" json:"scenarioId,omitempty"` + ScenarioID int32 `protobuf:"varint,1,opt,name=scenarioID,proto3" json:"scenarioID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7435,9 +7441,9 @@ func (*GetScenarioReviewsReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{131} } -func (x *GetScenarioReviewsReq) GetScenarioId() int32 { +func (x *GetScenarioReviewsReq) GetScenarioID() int32 { if x != nil { - return x.ScenarioId + return x.ScenarioID } return 0 } @@ -7548,7 +7554,7 @@ func (x *GetGameReviewsRsp) GetReviews() []*GameReview { type ModerateGameReviewReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -7584,9 +7590,9 @@ func (*ModerateGameReviewReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{134} } -func (x *ModerateGameReviewReq) GetId() int32 { +func (x *ModerateGameReviewReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -7652,11 +7658,11 @@ func (x *ModerateGameReviewRsp) GetReview() *GameReview { type UpdateGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` - ScenarioId int32 `protobuf:"varint,5,opt,name=scenario_id,json=scenarioId,proto3" json:"scenario_id,omitempty"` + ScenarioID int32 `protobuf:"varint,5,opt,name=scenarioID,proto3" json:"scenarioID,omitempty"` Format string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"` Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` unknownFields protoimpl.UnknownFields @@ -7693,9 +7699,9 @@ func (*UpdateGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{136} } -func (x *UpdateGameReq) GetId() int32 { +func (x *UpdateGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -7721,9 +7727,9 @@ func (x *UpdateGameReq) GetStartAt() *timestamppb.Timestamp { return nil } -func (x *UpdateGameReq) GetScenarioId() int32 { +func (x *UpdateGameReq) GetScenarioID() int32 { if x != nil { - return x.ScenarioId + return x.ScenarioID } return 0 } @@ -7788,7 +7794,7 @@ func (x *UpdateGameRsp) GetError() string { type StartGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7823,9 +7829,9 @@ func (*StartGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{138} } -func (x *StartGameReq) GetId() int32 { +func (x *StartGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -7876,7 +7882,7 @@ func (x *StartGameRsp) GetError() string { type PauseGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7911,9 +7917,9 @@ func (*PauseGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{140} } -func (x *PauseGameReq) GetId() int32 { +func (x *PauseGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -7964,7 +7970,7 @@ func (x *PauseGameRsp) GetError() string { type PlayGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7999,9 +8005,9 @@ func (*PlayGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{142} } -func (x *PlayGameReq) GetId() int32 { +func (x *PlayGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8052,7 +8058,7 @@ func (x *PlayGameRsp) GetError() string { type FinishGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -8087,9 +8093,9 @@ func (*FinishGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{144} } -func (x *FinishGameReq) GetId() int32 { +func (x *FinishGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8140,7 +8146,7 @@ func (x *FinishGameRsp) GetError() string { type ResetGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -8175,9 +8181,9 @@ func (*ResetGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{146} } -func (x *ResetGameReq) GetId() int32 { +func (x *ResetGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8228,7 +8234,7 @@ func (x *ResetGameRsp) GetError() string { type DeleteGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -8263,9 +8269,9 @@ func (*DeleteGameReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{148} } -func (x *DeleteGameReq) GetId() int32 { +func (x *DeleteGameReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8316,7 +8322,7 @@ func (x *DeleteGameRsp) GetError() string { type AddTeamReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CaptainEmail string `protobuf:"bytes,3,opt,name=captain_email,json=captainEmail,proto3" json:"captain_email,omitempty"` unknownFields protoimpl.UnknownFields @@ -8353,9 +8359,9 @@ func (*AddTeamReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{150} } -func (x *AddTeamReq) GetGameId() int32 { +func (x *AddTeamReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -8377,7 +8383,7 @@ func (x *AddTeamReq) GetCaptainEmail() string { type AddTeamRsp struct { state protoimpl.MessageState `protogen:"open.v1"` Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -8420,9 +8426,9 @@ func (x *AddTeamRsp) GetError() string { return "" } -func (x *AddTeamRsp) GetId() int32 { +func (x *AddTeamRsp) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8436,7 +8442,7 @@ func (x *AddTeamRsp) GetPassword() string { type UpdateTeamReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -8472,9 +8478,9 @@ func (*UpdateTeamReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{152} } -func (x *UpdateTeamReq) GetId() int32 { +func (x *UpdateTeamReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8532,7 +8538,7 @@ func (x *UpdateTeamRsp) GetError() string { type DeleteTeamReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -8567,9 +8573,9 @@ func (*DeleteTeamReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{154} } -func (x *DeleteTeamReq) GetId() int64 { +func (x *DeleteTeamReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8620,7 +8626,7 @@ func (x *DeleteTeamRsp) GetError() string { type GiveTeamApplicationsReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -8656,9 +8662,9 @@ func (*GiveTeamApplicationsReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{156} } -func (x *GiveTeamApplicationsReq) GetId() int64 { +func (x *GiveTeamApplicationsReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8716,7 +8722,7 @@ func (x *GiveTeamApplicationsRsp) GetError() string { type GetTeamStoryReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -8752,9 +8758,9 @@ func (*GetTeamStoryReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{158} } -func (x *GetTeamStoryReq) GetId() int64 { +func (x *GetTeamStoryReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8888,7 +8894,7 @@ func (x *TeamAction) GetMcp() bool { type AddTeamActionReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` unknownFields protoimpl.UnknownFields @@ -8925,9 +8931,9 @@ func (*AddTeamActionReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{161} } -func (x *AddTeamActionReq) GetId() int64 { +func (x *AddTeamActionReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -8992,7 +8998,7 @@ func (x *AddTeamActionRsp) GetError() string { type DeleteLastTeamActionReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -9027,9 +9033,9 @@ func (*DeleteLastTeamActionReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{163} } -func (x *DeleteLastTeamActionReq) GetId() int64 { +func (x *DeleteLastTeamActionReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -9080,7 +9086,7 @@ func (x *DeleteLastTeamActionRsp) GetError() string { type GetTeamAnswersReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -9116,9 +9122,9 @@ func (*GetTeamAnswersReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{165} } -func (x *GetTeamAnswersReq) GetId() int64 { +func (x *GetTeamAnswersReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -9184,7 +9190,7 @@ func (x *GetTeamAnswersRsp) GetAnswers() []*Answer { type SubmitTeamAnswersReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Answers []*Answer `protobuf:"bytes,3,rep,name=answers,proto3" json:"answers,omitempty"` unknownFields protoimpl.UnknownFields @@ -9221,9 +9227,9 @@ func (*SubmitTeamAnswersReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{167} } -func (x *SubmitTeamAnswersReq) GetId() int64 { +func (x *SubmitTeamAnswersReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -9288,7 +9294,7 @@ func (x *SubmitTeamAnswersRsp) GetError() string { type SetTeamAnswerScoreReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` QuestionCode string `protobuf:"bytes,2,opt,name=questionCode,proto3" json:"questionCode,omitempty"` // Балл; отсутствует — сбросить выставленный балл Score *int32 `protobuf:"varint,3,opt,name=score,proto3,oneof" json:"score,omitempty"` @@ -9326,9 +9332,9 @@ func (*SetTeamAnswerScoreReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{169} } -func (x *SetTeamAnswerScoreReq) GetId() int64 { +func (x *SetTeamAnswerScoreReq) GetID() int64 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -9393,7 +9399,7 @@ func (x *SetTeamAnswerScoreRsp) GetError() string { type UpdateScenarioBackgroundReq struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Background string `protobuf:"bytes,2,opt,name=background,proto3" json:"background,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -9429,9 +9435,9 @@ func (*UpdateScenarioBackgroundReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{171} } -func (x *UpdateScenarioBackgroundReq) GetId() int32 { +func (x *UpdateScenarioBackgroundReq) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -9489,7 +9495,7 @@ func (x *UpdateScenarioBackgroundRsp) GetError() string { type IssueGameTicketsReq struct { state protoimpl.MessageState `protogen:"open.v1"` - GameId int32 `protobuf:"varint,1,opt,name=gameId,proto3" json:"gameId,omitempty"` + GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -9525,9 +9531,9 @@ func (*IssueGameTicketsReq) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{173} } -func (x *IssueGameTicketsReq) GetGameId() int32 { +func (x *IssueGameTicketsReq) GetGameID() int32 { if x != nil { - return x.GameId + return x.GameID } return 0 } @@ -9593,8 +9599,8 @@ func (x *IssueGameTicketsRsp) GetTickets() []*Ticket { type Ticket struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + URL string `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -9629,16 +9635,16 @@ func (*Ticket) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{175} } -func (x *Ticket) GetId() int32 { +func (x *Ticket) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } -func (x *Ticket) GetUrl() string { +func (x *Ticket) GetURL() string { if x != nil { - return x.Url + return x.URL } return "" } @@ -9837,7 +9843,7 @@ func (x *AcceptTicketRsp) GetTicket() *TicketPage { type TicketPage struct { state protoimpl.MessageState `protogen:"open.v1"` - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` GameName string `protobuf:"bytes,2,opt,name=game_name,json=gameName,proto3" json:"game_name,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` @@ -9879,9 +9885,9 @@ func (*TicketPage) Descriptor() ([]byte, []int) { return file_main_proto_rawDescGZIP(), []int{180} } -func (x *TicketPage) GetId() int32 { +func (x *TicketPage) GetID() int32 { if x != nil { - return x.Id + return x.ID } return 0 } @@ -9993,16 +9999,16 @@ const file_main_proto_rawDesc = "" + "\x05error\x18\x01 \x01(\tR\x05error\x12:\n" + "\x05users\x18\x02 \x03(\v2$.crabs.evening_detective_server.UserR\x05users\"\xb6\x01\n" + "\x04User\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x1a\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x1a\n" + "\busername\x18\x02 \x01(\tR\busername\x12\x14\n" + "\x05email\x18\x03 \x01(\tR\x05email\x12\x14\n" + "\x05roles\x18\x04 \x03(\tR\x05roles\x12\x1b\n" + "\tis_active\x18\x05 \x01(\bR\bisActive\x129\n" + "\n" + "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\" \n" + - "\x0eGetUserByIdReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"`\n" + - "\x0eGetUserByIdRsp\x12\x14\n" + + "\x0eGetUserByIDReq\x12\x0e\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"`\n" + + "\x0eGetUserByIDRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x128\n" + "\x04user\x18\x02 \x01(\v2$.crabs.evening_detective_server.UserR\x04user\"\n" + "\n" + @@ -10011,16 +10017,16 @@ const file_main_proto_rawDesc = "" + "\x05error\x18\x01 \x01(\tR\x05error\x128\n" + "\x04user\x18\x02 \x01(\v2$.crabs.evening_detective_server.UserR\x04user\"J\n" + "\x15ChangeUserPasswordReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12!\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12!\n" + "\fnew_password\x18\x02 \x01(\tR\vnewPassword\"\x17\n" + "\x15ChangeUserPasswordRsp\"4\n" + "\x0eAddUserRoleReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04role\x18\x02 \x01(\tR\x04role\"&\n" + "\x0eAddUserRoleRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"7\n" + "\x11DeleteUserRoleReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04role\x18\x02 \x01(\tR\x04role\")\n" + "\x11DeleteUserRoleRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x13\n" + @@ -10041,7 +10047,7 @@ const file_main_proto_rawDesc = "" + "\x04name\x18\x01 \x01(\tR\x04name\"6\n" + "\x0eAddScenarioRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12\x0e\n" + - "\x02id\x18\x02 \x01(\x05R\x02id\"\x13\n" + + "\x02ID\x18\x02 \x01(\x05R\x02ID\"\x13\n" + "\x11GetMyScenariosReq\"q\n" + "\x11GetMyScenariosRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12F\n" + @@ -10051,12 +10057,12 @@ const file_main_proto_rawDesc = "" + "\x05error\x18\x01 \x01(\tR\x05error\x12F\n" + "\tscenarios\x18\x02 \x03(\v2(.crabs.evening_detective_server.ScenarioR\tscenarios\" \n" + "\x0eGetScenarioReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"l\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"l\n" + "\x0eGetScenarioRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12D\n" + "\bscenario\x18\x02 \x01(\v2(.crabs.evening_detective_server.ScenarioR\bscenario\"\x9e\x04\n" + "\bScenario\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12%\n" + "\vdescription\x18\x03 \x01(\tH\x00R\vdescription\x88\x01\x01\x12\x19\n" + "\x05image\x18\x04 \x01(\tH\x01R\x05image\x88\x01\x01\x12;\n" + @@ -10073,16 +10079,16 @@ const file_main_proto_rawDesc = "" + "\rreviews_count\x18\f \x01(\x05R\freviewsCountB\x0e\n" + "\f_descriptionB\b\n" + "\x06_image\"\xcc\x02\n" + - "\x05Story\x12J\n" + - "\n" + - "conclusion\x18\x05 \x01(\v2*.crabs.evening_detective_server.ConclusionR\n" + - "conclusion\x12\x1e\n" + + "\x05Story\x12=\n" + + "\x06places\x18\x01 \x03(\v2%.crabs.evening_detective_server.PlaceR\x06places\x12P\n" + + "\fintroduction\x18\x02 \x01(\v2,.crabs.evening_detective_server.IntroductionR\fintroduction\x12F\n" + + "\tquestions\x18\x03 \x03(\v2(.crabs.evening_detective_server.QuestionR\tquestions\x12\x1e\n" + "\n" + "background\x18\x04 \x01(\tR\n" + - "background\x12P\n" + - "\fintroduction\x18\x02 \x01(\v2,.crabs.evening_detective_server.IntroductionR\fintroduction\x12=\n" + - "\x06places\x18\x01 \x03(\v2%.crabs.evening_detective_server.PlaceR\x06places\x12F\n" + - "\tquestions\x18\x03 \x03(\v2(.crabs.evening_detective_server.QuestionR\tquestions\"6\n" + + "background\x12J\n" + + "\n" + + "conclusion\x18\x05 \x01(\v2*.crabs.evening_detective_server.ConclusionR\n" + + "conclusion\"6\n" + "\n" + "Conclusion\x12\x12\n" + "\x04text\x18\x01 \x01(\tR\x04text\x12\x14\n" + @@ -10125,92 +10131,93 @@ const file_main_proto_rawDesc = "" + "\x04team\x18\x01 \x01(\v2$.crabs.evening_detective_server.TeamR\x04team\x12E\n" + "\aanswers\x18\x02 \x03(\v2+.crabs.evening_detective_server.AnswerScoreR\aanswers\"o\n" + "\x11UpdateScenarioReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x14\n" + "\x05image\x18\x04 \x01(\tR\x05image\")\n" + "\x11UpdateScenarioRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"#\n" + "\x11PublicScenarioReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\")\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\")\n" + "\x11PublicScenarioRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\"\n" + "\x10DraftScenarioReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"(\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"(\n" + "\x10DraftScenarioRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"#\n" + "\x11DeleteScenarioReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\")\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\")\n" + "\x11DeleteScenarioRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"b\n" + "\x13AddScenarioPlaceReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12;\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12;\n" + "\x05place\x18\x02 \x01(\v2%.crabs.evening_detective_server.PlaceR\x05place\"+\n" + "\x13AddScenarioPlaceRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"y\n" + "\x16UpdateScenarioPlaceReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04code\x18\x02 \x01(\tR\x04code\x12;\n" + "\x05place\x18\x03 \x01(\v2%.crabs.evening_detective_server.PlaceR\x05place\".\n" + "\x16UpdateScenarioPlaceRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"<\n" + "\x16DeleteScenarioPlaceReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04code\x18\x02 \x01(\tR\x04code\".\n" + "\x16DeleteScenarioPlaceRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"y\n" + "\x1bUpdateScenarioConclusionReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12J\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12J\n" + "\n" + "conclusion\x18\x02 \x01(\v2*.crabs.evening_detective_server.ConclusionR\n" + "conclusion\"3\n" + "\x1bUpdateScenarioConclusionRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"z\n" + "\x16UpdateScenarioIntroReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12P\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12P\n" + "\fintroduction\x18\x02 \x01(\v2,.crabs.evening_detective_server.IntroductionR\fintroduction\".\n" + "\x16UpdateScenarioIntroRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"n\n" + "\x16AddScenarioQuestionReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12D\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12D\n" + "\bquestion\x18\x02 \x01(\v2(.crabs.evening_detective_server.QuestionR\bquestion\".\n" + "\x16AddScenarioQuestionRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x85\x01\n" + "\x19UpdateScenarioQuestionReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04code\x18\x02 \x01(\tR\x04code\x12D\n" + "\bquestion\x18\x03 \x01(\v2(.crabs.evening_detective_server.QuestionR\bquestion\"1\n" + "\x19UpdateScenarioQuestionRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"?\n" + "\x19DeleteScenarioQuestionReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04code\x18\x02 \x01(\tR\x04code\"1\n" + "\x19DeleteScenarioQuestionRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\",\n" + "\x1aDownloadScenarioArchiveReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"@\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"@\n" + "\x18UploadScenarioArchiveRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12\x0e\n" + - "\x02id\x18\x02 \x01(\x05R\x02id\"\xce\x01\n" + + "\x02ID\x18\x02 \x01(\x05R\x02ID\"\xcd\x01\n" + "\n" + "AddGameReq\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x02 \x01(\tR\vdescription\x125\n" + - "\bstart_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1f\n" + - "\vscenario_id\x18\x04 \x01(\x05R\n" + - "scenarioId\x12\x16\n" + + "\bstart_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1e\n" + + "\n" + + "scenarioID\x18\x04 \x01(\x05R\n" + + "scenarioID\x12\x16\n" + "\x06format\x18\x05 \x01(\tR\x06format\x12\x1a\n" + "\blocation\x18\x06 \x01(\tR\blocation\"2\n" + "\n" + "AddGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12\x0e\n" + - "\x02id\x18\x02 \x01(\x05R\x02id\"\r\n" + + "\x02ID\x18\x02 \x01(\x05R\x02ID\"\r\n" + "\vGetGamesReq\"_\n" + "\vGetGamesRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12:\n" + "\x05games\x18\x02 \x03(\v2$.crabs.evening_detective_server.GameR\x05games\"\xe9\x03\n" + "\x04Game\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x125\n" + "\bstart_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x16\n" + @@ -10224,11 +10231,11 @@ const file_main_proto_rawDesc = "" + " \x01(\tR\x06format\x12\x1a\n" + "\blocation\x18\v \x01(\tR\blocationB\r\n" + "\v_started_atB\v\n" + - "\t_ended_at\"\x98\x06\n" + + "\t_ended_at\"\x96\x06\n" + "\vScreenState\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06status\x18\x02 \x01(\tR\x06status\x12\x1c\n" + - "\agame_id\x18\x03 \x01(\x05H\x00R\x06gameId\x88\x01\x01\x12>\n" + + "\x02ID\x18\x01 \x01(\tR\x02ID\x12\x16\n" + + "\x06status\x18\x02 \x01(\tR\x06status\x12\x1b\n" + + "\x06gameID\x18\x03 \x01(\x05H\x00R\x06gameID\x88\x01\x01\x12>\n" + "\x04mode\x18\x04 \x01(\x0e2*.crabs.evening_detective_server.ScreenModeR\x04mode\x12#\n" + "\rsound_enabled\x18\x05 \x01(\bR\fsoundEnabled\x12\x14\n" + "\x05error\x18\x06 \x01(\tR\x05error\x12#\n" + @@ -10250,44 +10257,43 @@ const file_main_proto_rawDesc = "" + "\x16timer_duration_seconds\x18\x11 \x01(\x03R\x14timerDurationSeconds\x126\n" + "\x17timer_remaining_seconds\x18\x12 \x01(\x03R\x15timerRemainingSeconds\x12Q\n" + "\vtimer_state\x18\x13 \x01(\x0e20.crabs.evening_detective_server.ScreenTimerStateR\n" + - "timerStateB\n" + - "\n" + - "\b_game_id\"\x18\n" + - "\x16CreateScreenSessionReq\"n\n" + + "timerStateB\t\n" + + "\a_gameID\"\x18\n" + + "\x16CreateScreenSessionReq\"m\n" + "\x16CreateScreenSessionRsp\x12\x14\n" + - "\x05error\x18\x01 \x01(\tR\x05error\x12\x1b\n" + - "\tscreen_id\x18\x02 \x01(\tR\bscreenId\x12!\n" + + "\x05error\x18\x01 \x01(\tR\x05error\x12\x1a\n" + + "\bscreenID\x18\x02 \x01(\tR\bscreenID\x12!\n" + "\faccess_token\x18\x03 \x01(\tR\vaccessToken\"Q\n" + "\x11GetScreenStateReq\x12\x1a\n" + - "\bscreenId\x18\x01 \x01(\tR\bscreenId\x12 \n" + + "\bscreenID\x18\x01 \x01(\tR\bscreenID\x12 \n" + "\vaccessToken\x18\x02 \x01(\tR\vaccessToken\"l\n" + "\x11GetScreenStateRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12A\n" + "\x05state\x18\x02 \x01(\v2+.crabs.evening_detective_server.ScreenStateR\x05state\"+\n" + "\x11GetGameScreensReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\"p\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\"p\n" + "\x11GetGameScreensRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12E\n" + "\ascreens\x18\x02 \x03(\v2+.crabs.evening_detective_server.ScreenStateR\ascreens\"e\n" + "\rBindScreenReq\x12\x1a\n" + - "\bscreenId\x18\x01 \x01(\tR\bscreenId\x12 \n" + + "\bscreenID\x18\x01 \x01(\tR\bscreenID\x12 \n" + "\vaccessToken\x18\x02 \x01(\tR\vaccessToken\x12\x16\n" + - "\x06gameId\x18\x03 \x01(\x05R\x06gameId\"h\n" + + "\x06gameID\x18\x03 \x01(\x05R\x06gameID\"h\n" + "\rBindScreenRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12A\n" + "\x05state\x18\x02 \x01(\v2+.crabs.evening_detective_server.ScreenStateR\x05state\"-\n" + "\x0fUnbindScreenReq\x12\x1a\n" + - "\bscreenId\x18\x01 \x01(\tR\bscreenId\"'\n" + + "\bscreenID\x18\x01 \x01(\tR\bscreenID\"'\n" + "\x0fUnbindScreenRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"S\n" + "\x11SetScreenSoundReq\x12\x1a\n" + - "\bscreenId\x18\x01 \x01(\tR\bscreenId\x12\"\n" + + "\bscreenID\x18\x01 \x01(\tR\bscreenID\x12\"\n" + "\fsoundEnabled\x18\x02 \x01(\bR\fsoundEnabled\")\n" + "\x11SetScreenSoundRsp\x12\x14\n" + - "\x05error\x18\x01 \x01(\tR\x05error\"\xbd\x01\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"\xbc\x01\n" + "\aMapItem\x12\x12\n" + - "\x04kind\x18\x01 \x01(\tR\x04kind\x12\x17\n" + - "\aitem_id\x18\x02 \x01(\x05R\x06itemId\x12\x14\n" + + "\x04kind\x18\x01 \x01(\tR\x04kind\x12\x16\n" + + "\x06itemID\x18\x02 \x01(\x05R\x06itemID\x12\x14\n" + "\x05label\x18\x03 \x01(\tR\x05label\x12\f\n" + "\x01x\x18\x04 \x01(\x05R\x01x\x12\f\n" + "\x01y\x18\x05 \x01(\x05R\x01y\x12\x16\n" + @@ -10295,32 +10301,32 @@ const file_main_proto_rawDesc = "" + "\x06status\x18\a \x01(\tR\x06status\x12#\n" + "\rsound_enabled\x18\b \x01(\bR\fsoundEnabled\"'\n" + "\rGetGameMapReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\"d\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\"d\n" + "\rGetGameMapRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12=\n" + "\x05items\x18\x02 \x03(\v2'.crabs.evening_detective_server.MapItemR\x05items\"\x8e\x01\n" + "\x14UpdateGameMapItemReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\x12\x12\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12\x12\n" + "\x04kind\x18\x02 \x01(\tR\x04kind\x12\x16\n" + - "\x06itemId\x18\x03 \x01(\x05R\x06itemId\x12\f\n" + + "\x06itemID\x18\x03 \x01(\x05R\x06itemID\x12\f\n" + "\x01x\x18\x04 \x01(\x05R\x01x\x12\f\n" + "\x01y\x18\x05 \x01(\x05R\x01y\x12\x16\n" + "\x06hidden\x18\x06 \x01(\bR\x06hidden\",\n" + "\x14UpdateGameMapItemRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"j\n" + "\x10SetScreenModeReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\x12>\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12>\n" + "\x04mode\x18\x02 \x01(\x0e2*.crabs.evening_detective_server.ScreenModeR\x04mode\"(\n" + "\x10SetScreenModeRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"l\n" + "\x11SetScreenTimerReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\x12)\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12)\n" + "\x10duration_seconds\x18\x02 \x01(\x03R\x0fdurationSeconds\x12\x14\n" + "\x05label\x18\x03 \x01(\tR\x05label\")\n" + "\x11SetScreenTimerRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\xb0\x01\n" + "\x14SendScreenCommandReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\x12G\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12G\n" + "\acommand\x18\x02 \x01(\x0e2-.crabs.evening_detective_server.ScreenCommandR\acommand\x12\x1f\n" + "\vposition_ms\x18\x03 \x01(\x03R\n" + "positionMs\x12\x16\n" + @@ -10328,7 +10334,7 @@ const file_main_proto_rawDesc = "" + "\x14SendScreenCommandRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"S\n" + "\x13GetScreenResultsReq\x12\x1a\n" + - "\bscreenId\x18\x01 \x01(\tR\bscreenId\x12 \n" + + "\bscreenID\x18\x01 \x01(\tR\bscreenID\x12 \n" + "\vaccessToken\x18\x02 \x01(\tR\vaccessToken\"\xbc\x01\n" + "\x13GetScreenResultsRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12M\n" + @@ -10347,35 +10353,35 @@ const file_main_proto_rawDesc = "" + "\x12participants_count\x18\x05 \x01(\x05R\x11participantsCount\x12\x16\n" + "\x06status\x18\x06 \x01(\tR\x06status\x12\x16\n" + "\x06closed\x18\a \x01(\bR\x06closed\"\x84\x04\n" + - "\x04Team\x121\n" + - "\x14participation_status\x18\t \x01(\tR\x13participationStatus\x121\n" + - "\x14participation_source\x18\n" + - " \x01(\tR\x13participationSource\x12:\n" + - "\x19participation_email_error\x18\v \x01(\tR\x17participationEmailError\x128\n" + - "\x18participation_email_sent\x18\f \x01(\bR\x16participationEmailSent\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x04Team\x12\x0e\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" + "\x06status\x18\x03 \x01(\tR\x06status\x12\x1a\n" + "\bpassword\x18\x04 \x01(\tR\bpassword\x12#\n" + "\ractions_count\x18\x05 \x01(\x05R\factionsCount\x12O\n" + "\fapplications\x18\x06 \x03(\v2+.crabs.evening_detective_server.ApplicationR\fapplications\x12#\n" + "\rcaptain_email\x18\a \x01(\tR\fcaptainEmail\x12-\n" + - "\x12participants_count\x18\b \x01(\x05R\x11participantsCount\"\x1c\n" + + "\x12participants_count\x18\b \x01(\x05R\x11participantsCount\x121\n" + + "\x14participation_status\x18\t \x01(\tR\x13participationStatus\x121\n" + + "\x14participation_source\x18\n" + + " \x01(\tR\x13participationSource\x12:\n" + + "\x19participation_email_error\x18\v \x01(\tR\x17participationEmailError\x128\n" + + "\x18participation_email_sent\x18\f \x01(\bR\x16participationEmailSent\"\x1c\n" + "\n" + "GetGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"\\\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"\\\n" + "\n" + "GetGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x128\n" + "\x04game\x18\x02 \x01(\v2$.crabs.evening_detective_server.GameR\x04game\"+\n" + "\x11GetGameAnswersReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\"\xb4\x01\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\"\xb4\x01\n" + "\x11GetGameAnswersRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12F\n" + "\tquestions\x18\x02 \x03(\v2(.crabs.evening_detective_server.QuestionR\tquestions\x12A\n" + "\x05teams\x18\x03 \x03(\v2+.crabs.evening_detective_server.TeamAnswersR\x05teams\"+\n" + "\x11GetGameResultsReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\"9\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\"9\n" + "\x0fResultsQuestion\x12\x12\n" + "\x04code\x18\x01 \x01(\tR\x04code\x12\x12\n" + "\x04text\x18\x02 \x01(\tR\x04text\"\xe9\x01\n" + @@ -10390,12 +10396,12 @@ const file_main_proto_rawDesc = "" + "\x11GetGameResultsRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12M\n" + "\tquestions\x18\x02 \x03(\v2/.crabs.evening_detective_server.ResultsQuestionR\tquestions\x12@\n" + - "\x05teams\x18\x03 \x03(\v2*.crabs.evening_detective_server.TeamResultR\x05teams\"\x87\x02\n" + + "\x05teams\x18\x03 \x03(\v2*.crabs.evening_detective_server.TeamResultR\x05teams\"\x85\x02\n" + "\n" + "GameReview\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x17\n" + - "\agame_id\x18\x02 \x01(\x05R\x06gameId\x12\x17\n" + - "\ateam_id\x18\x03 \x01(\x05R\x06teamId\x12\x1b\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x16\n" + + "\x06gameID\x18\x02 \x01(\x05R\x06gameID\x12\x16\n" + + "\x06teamID\x18\x03 \x01(\x05R\x06teamID\x12\x1b\n" + "\tteam_name\x18\x04 \x01(\tR\bteamName\x12\x16\n" + "\x06rating\x18\x05 \x01(\x05R\x06rating\x12\x12\n" + "\x04text\x18\x06 \x01(\tR\x04text\x12\x16\n" + @@ -10404,8 +10410,8 @@ const file_main_proto_rawDesc = "" + "created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1b\n" + "\tgame_name\x18\t \x01(\tR\bgameName\"\x8d\x01\n" + "\x13CreateGameReviewReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\x12\x16\n" + - "\x06teamId\x18\x02 \x01(\x05R\x06teamId\x12\x1a\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12\x16\n" + + "\x06teamID\x18\x02 \x01(\x05R\x06teamID\x12\x1a\n" + "\bpassword\x18\x03 \x01(\tR\bpassword\x12\x16\n" + "\x06rating\x18\x04 \x01(\x05R\x06rating\x12\x12\n" + "\x04text\x18\x05 \x01(\tR\x04text\"o\n" + @@ -10413,11 +10419,11 @@ const file_main_proto_rawDesc = "" + "\x05error\x18\x01 \x01(\tR\x05error\x12B\n" + "\x06review\x18\x02 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"+\n" + "\x11GetGameReviewsReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\"7\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\"7\n" + "\x15GetScenarioReviewsReq\x12\x1e\n" + "\n" + - "scenarioId\x18\x01 \x01(\x05R\n" + - "scenarioId\"\x1c\n" + + "scenarioID\x18\x01 \x01(\x05R\n" + + "scenarioID\"\x1c\n" + "\x1aGetReviewsForModerationReq\"\xbb\x01\n" + "\x11GetGameReviewsRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12%\n" + @@ -10425,72 +10431,73 @@ const file_main_proto_rawDesc = "" + "\rreviews_count\x18\x03 \x01(\x05R\freviewsCount\x12D\n" + "\areviews\x18\x04 \x03(\v2*.crabs.evening_detective_server.GameReviewR\areviews\"?\n" + "\x15ModerateGameReviewReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x16\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\"q\n" + "\x15ModerateGameReviewRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12B\n" + - "\x06review\x18\x02 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"\xe1\x01\n" + + "\x06review\x18\x02 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"\xe0\x01\n" + "\rUpdateGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x125\n" + - "\bstart_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1f\n" + - "\vscenario_id\x18\x05 \x01(\x05R\n" + - "scenarioId\x12\x16\n" + + "\bstart_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1e\n" + + "\n" + + "scenarioID\x18\x05 \x01(\x05R\n" + + "scenarioID\x12\x16\n" + "\x06format\x18\x06 \x01(\tR\x06format\x12\x1a\n" + "\blocation\x18\a \x01(\tR\blocation\"%\n" + "\rUpdateGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1e\n" + "\fStartGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"$\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"$\n" + "\fStartGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1e\n" + "\fPauseGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"$\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"$\n" + "\fPauseGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1d\n" + "\vPlayGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"#\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"#\n" + "\vPlayGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1f\n" + "\rFinishGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"%\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"%\n" + "\rFinishGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1e\n" + "\fResetGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"$\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"$\n" + "\fResetGameRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1f\n" + "\rDeleteGameReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\"%\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\"%\n" + "\rDeleteGameRsp\x12\x14\n" + - "\x05error\x18\x01 \x01(\tR\x05error\"^\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"]\n" + "\n" + - "AddTeamReq\x12\x17\n" + - "\agame_id\x18\x01 \x01(\x05R\x06gameId\x12\x12\n" + + "AddTeamReq\x12\x16\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12#\n" + "\rcaptain_email\x18\x03 \x01(\tR\fcaptainEmail\"N\n" + "\n" + "AddTeamRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12\x0e\n" + - "\x02id\x18\x02 \x01(\x05R\x02id\x12\x1a\n" + + "\x02ID\x18\x02 \x01(\x05R\x02ID\x12\x1a\n" + "\bpassword\x18\x03 \x01(\tR\bpassword\"3\n" + "\rUpdateTeamReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\"%\n" + "\rUpdateTeamRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"\x1f\n" + "\rDeleteTeamReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\"%\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\"%\n" + "\rDeleteTeamRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"=\n" + "\x17GiveTeamApplicationsReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\"/\n" + "\x17GiveTeamApplicationsRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"=\n" + "\x0fGetTeamStoryReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\x12\x1a\n" + "\bpassword\x18\x02 \x01(\tR\bpassword\"\xe4\x01\n" + "\x0fGetTeamStoryRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12;\n" + @@ -10502,50 +10509,50 @@ const file_main_proto_rawDesc = "" + "\x04code\x18\x01 \x01(\tR\x04code\x12\x10\n" + "\x03mcp\x18\x02 \x01(\bR\x03mcp\"R\n" + "\x10AddTeamActionReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\x12\x1a\n" + "\bpassword\x18\x02 \x01(\tR\bpassword\x12\x12\n" + "\x04code\x18\x03 \x01(\tR\x04code\"(\n" + "\x10AddTeamActionRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\")\n" + "\x17DeleteLastTeamActionReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\"/\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\"/\n" + "\x17DeleteLastTeamActionRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"?\n" + "\x11GetTeamAnswersReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\x12\x1a\n" + "\bpassword\x18\x02 \x01(\tR\bpassword\"k\n" + "\x11GetTeamAnswersRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12@\n" + "\aanswers\x18\x02 \x03(\v2&.crabs.evening_detective_server.AnswerR\aanswers\"\x84\x01\n" + "\x14SubmitTeamAnswersReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\x12\x1a\n" + "\bpassword\x18\x02 \x01(\tR\bpassword\x12@\n" + "\aanswers\x18\x03 \x03(\v2&.crabs.evening_detective_server.AnswerR\aanswers\",\n" + "\x14SubmitTeamAnswersRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"p\n" + "\x15SetTeamAnswerScoreReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\"\n" + + "\x02ID\x18\x01 \x01(\x03R\x02ID\x12\"\n" + "\fquestionCode\x18\x02 \x01(\tR\fquestionCode\x12\x19\n" + "\x05score\x18\x03 \x01(\x05H\x00R\x05score\x88\x01\x01B\b\n" + "\x06_score\"-\n" + "\x15SetTeamAnswerScoreRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"M\n" + "\x1bUpdateScenarioBackgroundReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x1e\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x1e\n" + "\n" + "background\x18\x02 \x01(\tR\n" + "background\"3\n" + "\x1bUpdateScenarioBackgroundRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\"C\n" + "\x13IssueGameTicketsReq\x12\x16\n" + - "\x06gameId\x18\x01 \x01(\x05R\x06gameId\x12\x14\n" + + "\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12\x14\n" + "\x05count\x18\x02 \x01(\x05R\x05count\"m\n" + "\x13IssueGameTicketsRsp\x12\x14\n" + "\x05error\x18\x01 \x01(\tR\x05error\x12@\n" + "\atickets\x18\x02 \x03(\v2&.crabs.evening_detective_server.TicketR\atickets\"*\n" + "\x06Ticket\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x10\n" + - "\x03url\x18\x02 \x01(\tR\x03url\"$\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x10\n" + + "\x03URL\x18\x02 \x01(\tR\x03URL\"$\n" + "\fGetTicketReq\x12\x14\n" + "\x05token\x18\x01 \x01(\tR\x05token\"h\n" + "\fGetTicketRsp\x12\x14\n" + @@ -10558,7 +10565,7 @@ const file_main_proto_rawDesc = "" + "\x06ticket\x18\x02 \x01(\v2*.crabs.evening_detective_server.TicketPageR\x06ticket\"\xa4\x02\n" + "\n" + "TicketPage\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x05R\x02id\x12\x1b\n" + + "\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x1b\n" + "\tgame_name\x18\x02 \x01(\tR\bgameName\x125\n" + "\bstart_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1a\n" + "\blocation\x18\x04 \x01(\tR\blocation\x12\x16\n" + @@ -10640,16 +10647,16 @@ const file_main_proto_rawDesc = "" + "\bGetUsers\x12+.crabs.evening_detective_server.GetUsersReq\x1a+.crabs.evening_detective_server.GetUsersRsp\"e\x92AP\n" + "\x18Пользователи\x124Получить всех пользователей\x82\xd3\xe4\x93\x02\f\x12\n" + "/api/users\x12\xd6\x01\n" + - "\vGetUserById\x12..crabs.evening_detective_server.GetUserByIdReq\x1a..crabs.evening_detective_server.GetUserByIdRsp\"g\x92AM\n" + - "\x18Пользователи\x121Получить пользователя по id\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/users/{id}\x12\xc2\x01\n" + + "\vGetUserByID\x12..crabs.evening_detective_server.GetUserByIDReq\x1a..crabs.evening_detective_server.GetUserByIDRsp\"g\x92AM\n" + + "\x18Пользователи\x121Получить пользователя по id\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/users/{ID}\x12\xc2\x01\n" + "\x05GetMe\x12(.crabs.evening_detective_server.GetMeReq\x1a(.crabs.evening_detective_server.GetMeRsp\"e\x92AM\n" + "\x18Пользователи\x121Получить информацию о себе\x82\xd3\xe4\x93\x02\x0f\x12\r/api/users/me\x12\xa8\x05\n" + "\x12ChangeUserPassword\x125.crabs.evening_detective_server.ChangeUserPasswordReq\x1a5.crabs.evening_detective_server.ChangeUserPasswordRsp\"\xa3\x04\x92A\xfc\x03\n" + - "\x18Пользователи\x12RИзменить чужой пароль (только администратор)\x1a\x8b\x03Пароль вводится вручную: минимум 12 символов, максимум 72 байта. Сеансы сохраняются. Ошибки: 401 — нет авторизации, 403 — нет прав, 400 — неверные данные или собственный ID, 404 — пользователь не найден, 500 — ошибка сохранения.\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/users/{id}/password\x12\xe3\x01\n" + + "\x18Пользователи\x12RИзменить чужой пароль (только администратор)\x1a\x8b\x03Пароль вводится вручную: минимум 12 символов, максимум 72 байта. Сеансы сохраняются. Ошибки: 401 — нет авторизации, 403 — нет прав, 400 — неверные данные или собственный ID, 404 — пользователь не найден, 500 — ошибка сохранения.\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/users/{ID}/password\x12\xe3\x01\n" + "\vAddUserRole\x12..crabs.evening_detective_server.AddUserRoleReq\x1a..crabs.evening_detective_server.AddUserRoleRsp\"t\x92AN\n" + - "\x18Пользователи\x122Добавить пользователю роль\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/users/{id}/role/add\x12\xf0\x01\n" + + "\x18Пользователи\x122Добавить пользователю роль\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/users/{ID}/role/add\x12\xf0\x01\n" + "\x0eDeleteUserRole\x121.crabs.evening_detective_server.DeleteUserRoleReq\x1a1.crabs.evening_detective_server.DeleteUserRoleRsp\"x\x92AO\n" + - "\x18Пользователи\x123Забрать у пользователя роль\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/users/{id}/role/delete\x12\x81\x02\n" + + "\x18Пользователи\x123Забрать у пользователя роль\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/users/{ID}/role/delete\x12\x81\x02\n" + "\x0eGetPermissions\x121.crabs.evening_detective_server.GetPermissionsReq\x1a1.crabs.evening_detective_server.GetPermissionsRsp\"\x88\x01\x92Aj\n" + "\x0eДоступы\x12XПолучить список доступных элементов интерфейса\x82\xd3\xe4\x93\x02\x15\x12\x13/api/ui/permissions\x12\xb4\x01\n" + "\n" + @@ -10666,37 +10673,37 @@ const file_main_proto_rawDesc = "" + "\x13GetScenariosCatalog\x126.crabs.evening_detective_server.GetScenariosCatalogReq\x1a6.crabs.evening_detective_server.GetScenariosCatalogRsp\"]\x92AF\n" + "\x10Сценарии\x122Получить каталог сценариев\x82\xd3\xe4\x93\x02\x0e\x12\f/api/catalog\x12\xf5\x01\n" + "\x0fGetFullScenario\x12..crabs.evening_detective_server.GetScenarioReq\x1a..crabs.evening_detective_server.GetScenarioRsp\"\x81\x01\x92A^\n" + - "\x10Сценарии\x12JПолучить сценарий со всеми деталями по id\x82\xd3\xe4\x93\x02\x1a\x12\x18/api/scenarios/{id}/full\x12\xca\x01\n" + + "\x10Сценарии\x12JПолучить сценарий со всеми деталями по id\x82\xd3\xe4\x93\x02\x1a\x12\x18/api/scenarios/{ID}/full\x12\xca\x01\n" + "\vGetScenario\x12..crabs.evening_detective_server.GetScenarioReq\x1a..crabs.evening_detective_server.GetScenarioRsp\"[\x92A=\n" + - "\x10Сценарии\x12)Получить сценарий по id\x82\xd3\xe4\x93\x02\x15\x12\x13/api/scenarios/{id}\x12\xd8\x01\n" + + "\x10Сценарии\x12)Получить сценарий по id\x82\xd3\xe4\x93\x02\x15\x12\x13/api/scenarios/{ID}\x12\xd8\x01\n" + "\x0eUpdateScenario\x121.crabs.evening_detective_server.UpdateScenarioReq\x1a1.crabs.evening_detective_server.UpdateScenarioRsp\"`\x92A?\n" + - "\x10Сценарии\x12+Редактировать сценарий\x82\xd3\xe4\x93\x02\x18:\x01*\x1a\x13/api/scenarios/{id}\x12\xdd\x01\n" + + "\x10Сценарии\x12+Редактировать сценарий\x82\xd3\xe4\x93\x02\x18:\x01*\x1a\x13/api/scenarios/{ID}\x12\xdd\x01\n" + "\x0ePublicScenario\x121.crabs.evening_detective_server.PublicScenarioReq\x1a1.crabs.evening_detective_server.PublicScenarioRsp\"e\x92A=\n" + - "\x10Сценарии\x12)Опубликовать сценарий\x82\xd3\xe4\x93\x02\x1f:\x01*\x1a\x1a/api/scenarios/{id}/public\x12\xe3\x01\n" + + "\x10Сценарии\x12)Опубликовать сценарий\x82\xd3\xe4\x93\x02\x1f:\x01*\x1a\x1a/api/scenarios/{ID}/public\x12\xe3\x01\n" + "\rDraftScenario\x120.crabs.evening_detective_server.DraftScenarioReq\x1a0.crabs.evening_detective_server.DraftScenarioRsp\"n\x92AG\n" + - "\x10Сценарии\x123Снять с публикации сценарий\x82\xd3\xe4\x93\x02\x1e:\x01*\x1a\x19/api/scenarios/{id}/draft\x12\xc9\x01\n" + + "\x10Сценарии\x123Снять с публикации сценарий\x82\xd3\xe4\x93\x02\x1e:\x01*\x1a\x19/api/scenarios/{ID}/draft\x12\xc9\x01\n" + "\x0eDeleteScenario\x121.crabs.evening_detective_server.DeleteScenarioReq\x1a1.crabs.evening_detective_server.DeleteScenarioRsp\"Q\x92A3\n" + - "\x10Сценарии\x12\x1fУдалить сценарий\x82\xd3\xe4\x93\x02\x15*\x13/api/scenarios/{id}\x12\xef\x01\n" + + "\x10Сценарии\x12\x1fУдалить сценарий\x82\xd3\xe4\x93\x02\x15*\x13/api/scenarios/{ID}\x12\xef\x01\n" + "\x10AddScenarioPlace\x123.crabs.evening_detective_server.AddScenarioPlaceReq\x1a3.crabs.evening_detective_server.AddScenarioPlaceRsp\"q\x92AI\n" + - "\x1bТочки сценария\x12*Создать точку сценария\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/scenarios/{id}/places\x12\x81\x02\n" + + "\x1bТочки сценария\x12*Создать точку сценария\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/scenarios/{ID}/places\x12\x81\x02\n" + "\x13UpdateScenarioPlace\x126.crabs.evening_detective_server.UpdateScenarioPlaceReq\x1a6.crabs.evening_detective_server.UpdateScenarioPlaceRsp\"z\x92AK\n" + - "\x1bТочки сценария\x12,Обновить точку сценария\x82\xd3\xe4\x93\x02&:\x01*\x1a!/api/scenarios/{id}/places/{code}\x12\xfc\x01\n" + + "\x1bТочки сценария\x12,Обновить точку сценария\x82\xd3\xe4\x93\x02&:\x01*\x1a!/api/scenarios/{ID}/places/{code}\x12\xfc\x01\n" + "\x13DeleteScenarioPlace\x126.crabs.evening_detective_server.DeleteScenarioPlaceReq\x1a6.crabs.evening_detective_server.DeleteScenarioPlaceRsp\"u\x92AI\n" + - "\x1bТочки сценария\x12*Удалить точку сценария\x82\xd3\xe4\x93\x02#*!/api/scenarios/{id}/places/{code}\x12\xf9\x01\n" + + "\x1bТочки сценария\x12*Удалить точку сценария\x82\xd3\xe4\x93\x02#*!/api/scenarios/{ID}/places/{code}\x12\xf9\x01\n" + "\x13AddScenarioQuestion\x126.crabs.evening_detective_server.AddScenarioQuestionReq\x1a6.crabs.evening_detective_server.AddScenarioQuestionRsp\"r\x92AG\n" + - "\x1fВопросы сценария\x12$Создать вопрос дела\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/scenarios/{id}/questions\x12\x8b\x02\n" + + "\x1fВопросы сценария\x12$Создать вопрос дела\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/scenarios/{ID}/questions\x12\x8b\x02\n" + "\x16UpdateScenarioQuestion\x129.crabs.evening_detective_server.UpdateScenarioQuestionReq\x1a9.crabs.evening_detective_server.UpdateScenarioQuestionRsp\"{\x92AI\n" + - "\x1fВопросы сценария\x12&Обновить вопрос дела\x82\xd3\xe4\x93\x02):\x01*\x1a$/api/scenarios/{id}/questions/{code}\x12\x86\x02\n" + + "\x1fВопросы сценария\x12&Обновить вопрос дела\x82\xd3\xe4\x93\x02):\x01*\x1a$/api/scenarios/{ID}/questions/{code}\x12\x86\x02\n" + "\x16DeleteScenarioQuestion\x129.crabs.evening_detective_server.DeleteScenarioQuestionReq\x1a9.crabs.evening_detective_server.DeleteScenarioQuestionRsp\"v\x92AG\n" + - "\x1fВопросы сценария\x12$Удалить вопрос дела\x82\xd3\xe4\x93\x02&*$/api/scenarios/{id}/questions/{code}\x12\x90\x02\n" + + "\x1fВопросы сценария\x12$Удалить вопрос дела\x82\xd3\xe4\x93\x02&*$/api/scenarios/{ID}/questions/{code}\x12\x90\x02\n" + "\x18UpdateScenarioBackground\x12;.crabs.evening_detective_server.UpdateScenarioBackgroundReq\x1a;.crabs.evening_detective_server.UpdateScenarioBackgroundRsp\"z\x92AN\n" + - "\x10Сценарии\x12:Установить или удалить фон дела\x82\xd3\xe4\x93\x02#:\x01*\x1a\x1e/api/scenarios/{id}/background\x12\xfb\x01\n" + + "\x10Сценарии\x12:Установить или удалить фон дела\x82\xd3\xe4\x93\x02#:\x01*\x1a\x1e/api/scenarios/{ID}/background\x12\xfb\x01\n" + "\x13UpdateScenarioIntro\x126.crabs.evening_detective_server.UpdateScenarioIntroReq\x1a6.crabs.evening_detective_server.UpdateScenarioIntroRsp\"t\x92AF\n" + - "\x10Сценарии\x122Обновить введение сценария\x82\xd3\xe4\x93\x02%:\x01*\x1a /api/scenarios/{id}/introduction\x12\xb8\x02\n" + + "\x10Сценарии\x122Обновить введение сценария\x82\xd3\xe4\x93\x02%:\x01*\x1a /api/scenarios/{ID}/introduction\x12\xb8\x02\n" + "\x18UpdateScenarioConclusion\x12;.crabs.evening_detective_server.UpdateScenarioConclusionReq\x1a;.crabs.evening_detective_server.UpdateScenarioConclusionRsp\"\xa1\x01\x92Au\n" + - "\x10Сценарии\x12aОбновить закрывашку сценария (игрокам не передаётся)\x82\xd3\xe4\x93\x02#:\x01*\x1a\x1e/api/scenarios/{id}/conclusion\x12\x98\x02\n" + + "\x10Сценарии\x12aОбновить закрывашку сценария (игрокам не передаётся)\x82\xd3\xe4\x93\x02#:\x01*\x1a\x1e/api/scenarios/{ID}/conclusion\x12\x98\x02\n" + "\x17DownloadScenarioArchive\x12:.crabs.evening_detective_server.DownloadScenarioArchiveReq\x1a\x14.google.api.HttpBody\"\xaa\x01\x92A\x83\x01\n" + - "\x10Сценарии\x12oСкачать сценарий архивом (со всеми материалами и картинками)\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/scenarios/{id}/archive\x12\xd2\x01\n" + + "\x10Сценарии\x12oСкачать сценарий архивом (со всеми материалами и картинками)\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/scenarios/{ID}/archive\x12\xd2\x01\n" + "\x15UploadScenarioArchive\x12\x14.google.api.HttpBody\x1a8.crabs.evening_detective_server.UploadScenarioArchiveRsp\"i\x92AE\n" + "\x10Сценарии\x121Создать сценарий из архива\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/scenarios/archive\x12\x9e\x01\n" + "\aAddGame\x12*.crabs.evening_detective_server.AddGameReq\x1a*.crabs.evening_detective_server.AddGameRsp\";\x92A#\n" + @@ -10706,11 +10713,11 @@ const file_main_proto_rawDesc = "" + "\bИгры\x12\x19Получить игры\x82\xd3\xe4\x93\x02\f\x12\n" + "/api/games\x12\xa2\x01\n" + "\aGetGame\x12*.crabs.evening_detective_server.GetGameReq\x1a*.crabs.evening_detective_server.GetGameRsp\"?\x92A%\n" + - "\bИгры\x12\x19Получить игру\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/games/{id}\x12\xec\x01\n" + + "\bИгры\x12\x19Получить игру\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/games/{ID}\x12\xec\x01\n" + "\x10IssueGameTickets\x123.crabs.evening_detective_server.IssueGameTicketsReq\x1a3.crabs.evening_detective_server.IssueGameTicketsRsp\"n\x92AE\n" + "\fБилеты\x12-Выпустить билеты на игруb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/games/{gameId}/tickets\x12\xca\x01\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/games/{gameID}/tickets\x12\xca\x01\n" + "\tGetTicket\x12,.crabs.evening_detective_server.GetTicketReq\x1a,.crabs.evening_detective_server.GetTicketRsp\"a\x92AB\n" + "\fБилеты\x12*Получить данные билетаb\x06\n" + "\x04\n" + @@ -10726,99 +10733,99 @@ const file_main_proto_rawDesc = "" + "\x04\n" + "\x00\x12\x00\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/screens/state\x12\xd4\x01\n" + "\x0eGetGameScreens\x121.crabs.evening_detective_server.GetGameScreensReq\x1a1.crabs.evening_detective_server.GetGameScreensRsp\"\\\x92A6\n" + - "\fЭкраны\x12&Получить экраны игры\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameId}/screens\x12\xcf\x01\n" + + "\fЭкраны\x12&Получить экраны игры\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameID}/screens\x12\xcf\x01\n" + "\n" + "BindScreen\x12-.crabs.evening_detective_server.BindScreenReq\x1a-.crabs.evening_detective_server.BindScreenRsp\"c\x92A9\n" + - "\fЭкраны\x12)Привязать экран к игре\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/screens/{screenId}/bind\x12\xd7\x01\n" + + "\fЭкраны\x12)Привязать экран к игре\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/screens/{screenID}/bind\x12\xd7\x01\n" + "\fUnbindScreen\x12/.crabs.evening_detective_server.UnbindScreenReq\x1a/.crabs.evening_detective_server.UnbindScreenRsp\"e\x92A9\n" + - "\fЭкраны\x12)Отвязать экран от игры\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/screens/{screenId}/unbind\x12\xe2\x01\n" + + "\fЭкраны\x12)Отвязать экран от игры\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/screens/{screenID}/unbind\x12\xe2\x01\n" + "\x0eSetScreenSound\x121.crabs.evening_detective_server.SetScreenSoundReq\x1a1.crabs.evening_detective_server.SetScreenSoundRsp\"j\x92A?\n" + - "\fЭкраны\x12/Назначить экран со звуком\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/screens/{screenId}/sound\x12\xc2\x01\n" + + "\fЭкраны\x12/Назначить экран со звуком\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/screens/{screenID}/sound\x12\xc2\x01\n" + "\n" + "GetGameMap\x12-.crabs.evening_detective_server.GetGameMapReq\x1a-.crabs.evening_detective_server.GetGameMapRsp\"V\x92A4\n" + - "\fЭкраны\x12$Получить карту игры\x82\xd3\xe4\x93\x02\x19\x12\x17/api/games/{gameId}/map\x12\xfd\x01\n" + + "\fЭкраны\x12$Получить карту игры\x82\xd3\xe4\x93\x02\x19\x12\x17/api/games/{gameID}/map\x12\xfd\x01\n" + "\x11UpdateGameMapItem\x124.crabs.evening_detective_server.UpdateGameMapItemReq\x1a4.crabs.evening_detective_server.UpdateGameMapItemRsp\"|\x92AA\n" + - "\fЭкраны\x121Изменить объект карты игры\x82\xd3\xe4\x93\x022:\x01*\"-/api/games/{gameId}/map/items/{kind}/{itemId}\x12\xea\x01\n" + + "\fЭкраны\x121Изменить объект карты игры\x82\xd3\xe4\x93\x022:\x01*\"-/api/games/{gameID}/map/items/{kind}/{itemID}\x12\xea\x01\n" + "\rSetScreenMode\x120.crabs.evening_detective_server.SetScreenModeReq\x1a0.crabs.evening_detective_server.SetScreenModeRsp\"u\x92AG\n" + - "\fЭкраны\x127Изменить режим показа экранов\x82\xd3\xe4\x93\x02%:\x01*\" /api/games/{gameId}/screens/mode\x12\xe5\x01\n" + + "\fЭкраны\x127Изменить режим показа экранов\x82\xd3\xe4\x93\x02%:\x01*\" /api/games/{gameID}/screens/mode\x12\xe5\x01\n" + "\x0eSetScreenTimer\x121.crabs.evening_detective_server.SetScreenTimerReq\x1a1.crabs.evening_detective_server.SetScreenTimerRsp\"m\x92A>\n" + - "\fЭкраны\x12.Настроить таймер экранов\x82\xd3\xe4\x93\x02&:\x01*\"!/api/games/{gameId}/screens/timer\x12\xf2\x01\n" + + "\fЭкраны\x12.Настроить таймер экранов\x82\xd3\xe4\x93\x02&:\x01*\"!/api/games/{gameID}/screens/timer\x12\xf2\x01\n" + "\x11SendScreenCommand\x124.crabs.evening_detective_server.SendScreenCommandReq\x1a4.crabs.evening_detective_server.SendScreenCommandRsp\"q\x92A@\n" + - "\fЭкраны\x120Отправить команду экранам\x82\xd3\xe4\x93\x02(:\x01*\"#/api/games/{gameId}/screens/command\x12\xe9\x01\n" + + "\fЭкраны\x120Отправить команду экранам\x82\xd3\xe4\x93\x02(:\x01*\"#/api/games/{gameID}/screens/command\x12\xe9\x01\n" + "\x10GetScreenResults\x123.crabs.evening_detective_server.GetScreenResultsReq\x1a3.crabs.evening_detective_server.GetScreenResultsRsp\"k\x92AI\n" + "\fЭкраны\x129Получить результаты для экрана\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/screens/results\x12\xcb\x01\n" + "\x0eDownloadTeamQR\x12*.crabs.evening_detective_server.GetGameReq\x1a\x14.google.api.HttpBody\"w\x92AP\n" + - "\bИгры\x12DСкачать PDF с QR-кодами всех команд игры\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/games/{id}/teams/qr.pdf\x12\xa4\x02\n" + + "\bИгры\x12DСкачать PDF с QR-кодами всех команд игры\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/games/{ID}/teams/qr.pdf\x12\xa4\x02\n" + "\x0eGetGameAnswers\x121.crabs.evening_detective_server.GetGameAnswersReq\x1a1.crabs.evening_detective_server.GetGameAnswersRsp\"\xab\x01\x92A\x84\x01\n" + - "\bИгры\x12xПолучить ответы команд на вопросы дела (для оценки организатором)\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameId}/answers\x12\x86\x02\n" + + "\bИгры\x12xПолучить ответы команд на вопросы дела (для оценки организатором)\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameID}/answers\x12\x86\x02\n" + "\x0eGetGameResults\x121.crabs.evening_detective_server.GetGameResultsReq\x1a1.crabs.evening_detective_server.GetGameResultsRsp\"\x8d\x01\x92Ag\n" + - "\bИгры\x12[Получить итоговую таблицу игры (после завершения)\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameId}/results\x12\xe8\x01\n" + + "\bИгры\x12[Получить итоговую таблицу игры (после завершения)\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameID}/results\x12\xe8\x01\n" + "\x10CreateGameReview\x123.crabs.evening_detective_server.CreateGameReviewReq\x1a3.crabs.evening_detective_server.CreateGameReviewRsp\"j\x92AA\n" + "\fОтзывы\x12)Оставить отзыв об игреb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/games/{gameId}/reviews\x12\xe1\x01\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/games/{gameID}/reviews\x12\xe1\x01\n" + "\x0eGetGameReviews\x121.crabs.evening_detective_server.GetGameReviewsReq\x1a1.crabs.evening_detective_server.GetGameReviewsRsp\"i\x92AC\n" + "\fОтзывы\x12+Получить отзывы об игреb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameId}/reviews\x12\xf4\x01\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/games/{gameID}/reviews\x12\xf4\x01\n" + "\x12GetScenarioReviews\x125.crabs.evening_detective_server.GetScenarioReviewsReq\x1a1.crabs.evening_detective_server.GetGameReviewsRsp\"t\x92AF\n" + "\fОтзывы\x12.Получить отзывы сценарияb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02%\x12#/api/scenarios/{scenarioId}/reviews\x12\x81\x02\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02%\x12#/api/scenarios/{scenarioID}/reviews\x12\x81\x02\n" + "\x1bGetGameReviewsForModeration\x121.crabs.evening_detective_server.GetGameReviewsReq\x1a1.crabs.evening_detective_server.GetGameReviewsRsp\"|\x92AP\n" + - "\fОтзывы\x12@Получить отзывы игры для модерации\x82\xd3\xe4\x93\x02#\x12!/api/admin/games/{gameId}/reviews\x12\xf5\x01\n" + + "\fОтзывы\x12@Получить отзывы игры для модерации\x82\xd3\xe4\x93\x02#\x12!/api/admin/games/{gameID}/reviews\x12\xf5\x01\n" + "\x17GetReviewsForModeration\x12:.crabs.evening_detective_server.GetReviewsForModerationReq\x1a1.crabs.evening_detective_server.GetGameReviewsRsp\"k\x92AI\n" + "\fОтзывы\x129Получить общую очередь отзывов\x82\xd3\xe4\x93\x02\x19\x12\x17/api/admin/game-reviews\x12\xe1\x01\n" + "\x12ModerateGameReview\x125.crabs.evening_detective_server.ModerateGameReviewReq\x1a5.crabs.evening_detective_server.ModerateGameReviewRsp\"]\x92A3\n" + - "\fОтзывы\x12#Модерировать отзыв\x82\xd3\xe4\x93\x02!:\x01*\x1a\x1c/api/admin/game-reviews/{id}\x12\xae\x01\n" + + "\fОтзывы\x12#Модерировать отзыв\x82\xd3\xe4\x93\x02!:\x01*\x1a\x1c/api/admin/game-reviews/{ID}\x12\xae\x01\n" + "\n" + "UpdateGame\x12-.crabs.evening_detective_server.UpdateGameReq\x1a-.crabs.evening_detective_server.UpdateGameRsp\"B\x92A%\n" + - "\bИгры\x12\x19Обновить игру\x82\xd3\xe4\x93\x02\x14:\x01*\x1a\x0f/api/games/{id}\x12\xad\x01\n" + + "\bИгры\x12\x19Обновить игру\x82\xd3\xe4\x93\x02\x14:\x01*\x1a\x0f/api/games/{ID}\x12\xad\x01\n" + "\tStartGame\x12,.crabs.evening_detective_server.StartGameReq\x1a,.crabs.evening_detective_server.StartGameRsp\"D\x92A!\n" + - "\bИгры\x12\x15Начать игру\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/games/{id}/start\x12\xb5\x01\n" + + "\bИгры\x12\x15Начать игру\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/games/{ID}/start\x12\xb5\x01\n" + "\tPauseGame\x12,.crabs.evening_detective_server.PauseGameReq\x1a,.crabs.evening_detective_server.PauseGameRsp\"L\x92A)\n" + - "\bИгры\x12\x1dОстановить игру\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/games/{id}/pause\x12\xb1\x01\n" + + "\bИгры\x12\x1dОстановить игру\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/games/{ID}/pause\x12\xb1\x01\n" + "\bPlayGame\x12+.crabs.evening_detective_server.PlayGameReq\x1a+.crabs.evening_detective_server.PlayGameRsp\"K\x92A)\n" + - "\bИгры\x12\x1dПродолжить игру\x82\xd3\xe4\x93\x02\x19:\x01*\x1a\x14/api/games/{id}/play\x12\xb7\x01\n" + + "\bИгры\x12\x1dПродолжить игру\x82\xd3\xe4\x93\x02\x19:\x01*\x1a\x14/api/games/{ID}/play\x12\xb7\x01\n" + "\n" + "FinishGame\x12-.crabs.evening_detective_server.FinishGameReq\x1a-.crabs.evening_detective_server.FinishGameRsp\"K\x92A'\n" + - "\bИгры\x12\x1bЗакончить игру\x82\xd3\xe4\x93\x02\x1b:\x01*\x1a\x16/api/games/{id}/finish\x12\xb1\x01\n" + + "\bИгры\x12\x1bЗакончить игру\x82\xd3\xe4\x93\x02\x1b:\x01*\x1a\x16/api/games/{ID}/finish\x12\xb1\x01\n" + "\tResetGame\x12,.crabs.evening_detective_server.ResetGameReq\x1a,.crabs.evening_detective_server.ResetGameRsp\"H\x92A%\n" + - "\bИгры\x12\x19Сбросить игру\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/games/{id}/reset\x12\xa9\x01\n" + + "\bИгры\x12\x19Сбросить игру\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/games/{ID}/reset\x12\xa9\x01\n" + "\n" + "DeleteGame\x12-.crabs.evening_detective_server.DeleteGameReq\x1a-.crabs.evening_detective_server.DeleteGameRsp\"=\x92A#\n" + - "\bИгры\x12\x17Удалить игру\x82\xd3\xe4\x93\x02\x11*\x0f/api/games/{id}\x12\xaa\x01\n" + + "\bИгры\x12\x17Удалить игру\x82\xd3\xe4\x93\x02\x11*\x0f/api/games/{ID}\x12\xaa\x01\n" + "\aAddTeam\x12*.crabs.evening_detective_server.AddTeamReq\x1a*.crabs.evening_detective_server.AddTeamRsp\"G\x92A/\n" + "\x0eКоманда\x12\x1dСоздать команду\x82\xd3\xe4\x93\x02\x0f:\x01*\"\n" + "/api/teams\x12\xba\x01\n" + "\n" + "UpdateTeam\x12-.crabs.evening_detective_server.UpdateTeamReq\x1a-.crabs.evening_detective_server.UpdateTeamRsp\"N\x92A1\n" + - "\x0eКоманда\x12\x1fОбновить команду\x82\xd3\xe4\x93\x02\x14:\x01*\x1a\x0f/api/teams/{id}\x12\xb5\x01\n" + + "\x0eКоманда\x12\x1fОбновить команду\x82\xd3\xe4\x93\x02\x14:\x01*\x1a\x0f/api/teams/{ID}\x12\xb5\x01\n" + "\n" + "DeleteTeam\x12-.crabs.evening_detective_server.DeleteTeamReq\x1a-.crabs.evening_detective_server.DeleteTeamRsp\"I\x92A/\n" + - "\x0eКоманда\x12\x1dУдалить команду\x82\xd3\xe4\x93\x02\x11*\x0f/api/teams/{id}\x12\xdd\x01\n" + + "\x0eКоманда\x12\x1dУдалить команду\x82\xd3\xe4\x93\x02\x11*\x0f/api/teams/{ID}\x12\xdd\x01\n" + "\x14GiveTeamApplications\x127.crabs.evening_detective_server.GiveTeamApplicationsReq\x1a7.crabs.evening_detective_server.GiveTeamApplicationsRsp\"S\x92A)\n" + - "\x0eКоманда\x12\x17Выдать улику\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/teams/{id}/applications\x12\xbf\x01\n" + + "\x0eКоманда\x12\x17Выдать улику\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/teams/{ID}/applications\x12\xbf\x01\n" + "\fGetTeamStory\x12/.crabs.evening_detective_server.GetTeamStoryReq\x1a/.crabs.evening_detective_server.GetTeamStoryRsp\"M\x92A-\n" + "\bХоды\x12\x19Получить ходыb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02\x17\x12\x15/api/teams/{id}/story\x12\xc3\x01\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02\x17\x12\x15/api/teams/{ID}/story\x12\xc3\x01\n" + "\rAddTeamAction\x120.crabs.evening_detective_server.AddTeamActionReq\x1a0.crabs.evening_detective_server.AddTeamActionRsp\"N\x92A)\n" + "\bХоды\x12\x15Сделать ходb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/teams/{id}/actions\x12\xe5\x01\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/teams/{ID}/actions\x12\xe5\x01\n" + "\x14DeleteLastTeamAction\x127.crabs.evening_detective_server.DeleteLastTeamActionReq\x1a7.crabs.evening_detective_server.DeleteLastTeamActionRsp\"[\x92A4\n" + - "\bХоды\x12(Удалить последний ход\x82\xd3\xe4\x93\x02\x1e*\x1c/api/teams/{id}/last-actions\x12\xf7\x01\n" + + "\bХоды\x12(Удалить последний ход\x82\xd3\xe4\x93\x02\x1e*\x1c/api/teams/{ID}/last-actions\x12\xf7\x01\n" + "\x0eGetTeamAnswers\x121.crabs.evening_detective_server.GetTeamAnswersReq\x1a1.crabs.evening_detective_server.GetTeamAnswersRsp\"\x7f\x92A]\n" + "\bХоды\x12IПолучить ответы команды на вопросы делаb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02\x19\x12\x17/api/teams/{id}/answers\x12\x86\x02\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02\x19\x12\x17/api/teams/{ID}/answers\x12\x86\x02\n" + "\x11SubmitTeamAnswers\x124.crabs.evening_detective_server.SubmitTeamAnswersReq\x1a4.crabs.evening_detective_server.SubmitTeamAnswersRsp\"\x84\x01\x92A_\n" + "\bХоды\x12KОтправить ответы команды на вопросы делаb\x06\n" + "\x04\n" + - "\x00\x12\x00\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/teams/{id}/answers\x12\xa0\x02\n" + + "\x00\x12\x00\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/teams/{ID}/answers\x12\xa0\x02\n" + "\x12SetTeamAnswerScore\x125.crabs.evening_detective_server.SetTeamAnswerScoreReq\x1a5.crabs.evening_detective_server.SetTeamAnswerScoreRsp\"\x9b\x01\x92Aa\n" + - "\bИгры\x12UВыставить балл команде за ответ на вопрос дела\x82\xd3\xe4\x93\x021:\x01*\x1a,/api/teams/{id}/answers/{questionCode}/scoreB\xd7\x01\x92A\xc8\x01\x12U\n" + + "\bИгры\x12UВыставить балл команде за ответ на вопрос дела\x82\xd3\xe4\x93\x021:\x01*\x1a,/api/teams/{ID}/answers/{questionCode}/scoreB\xd7\x01\x92A\xc8\x01\x12U\n" + "KДокументация сервиса \"Вечерний детектив\"2\x06v0.1.0Z]\n" + "[\n" + "\n" + @@ -10868,8 +10875,8 @@ var file_main_proto_goTypes = []any{ (*GetUsersReq)(nil), // 23: crabs.evening_detective_server.GetUsersReq (*GetUsersRsp)(nil), // 24: crabs.evening_detective_server.GetUsersRsp (*User)(nil), // 25: crabs.evening_detective_server.User - (*GetUserByIdReq)(nil), // 26: crabs.evening_detective_server.GetUserByIdReq - (*GetUserByIdRsp)(nil), // 27: crabs.evening_detective_server.GetUserByIdRsp + (*GetUserByIDReq)(nil), // 26: crabs.evening_detective_server.GetUserByIDReq + (*GetUserByIDRsp)(nil), // 27: crabs.evening_detective_server.GetUserByIDRsp (*GetMeReq)(nil), // 28: crabs.evening_detective_server.GetMeReq (*GetMeRsp)(nil), // 29: crabs.evening_detective_server.GetMeRsp (*ChangeUserPasswordReq)(nil), // 30: crabs.evening_detective_server.ChangeUserPasswordReq @@ -11032,7 +11039,7 @@ var file_main_proto_goTypes = []any{ var file_main_proto_depIdxs = []int32{ 25, // 0: crabs.evening_detective_server.GetUsersRsp.users:type_name -> crabs.evening_detective_server.User 184, // 1: crabs.evening_detective_server.User.created_at:type_name -> google.protobuf.Timestamp - 25, // 2: crabs.evening_detective_server.GetUserByIdRsp.user:type_name -> crabs.evening_detective_server.User + 25, // 2: crabs.evening_detective_server.GetUserByIDRsp.user:type_name -> crabs.evening_detective_server.User 25, // 3: crabs.evening_detective_server.GetMeRsp.user:type_name -> crabs.evening_detective_server.User 49, // 4: crabs.evening_detective_server.GetMyScenariosRsp.scenarios:type_name -> crabs.evening_detective_server.Scenario 49, // 5: crabs.evening_detective_server.GetScenariosCatalogRsp.scenarios:type_name -> crabs.evening_detective_server.Scenario @@ -11042,10 +11049,10 @@ var file_main_proto_depIdxs = []int32{ 184, // 9: crabs.evening_detective_server.Scenario.updated_at:type_name -> google.protobuf.Timestamp 184, // 10: crabs.evening_detective_server.Scenario.created_at:type_name -> google.protobuf.Timestamp 184, // 11: crabs.evening_detective_server.Scenario.published_at:type_name -> google.protobuf.Timestamp - 51, // 12: crabs.evening_detective_server.Story.conclusion:type_name -> crabs.evening_detective_server.Conclusion + 53, // 12: crabs.evening_detective_server.Story.places:type_name -> crabs.evening_detective_server.Place 52, // 13: crabs.evening_detective_server.Story.introduction:type_name -> crabs.evening_detective_server.Introduction - 53, // 14: crabs.evening_detective_server.Story.places:type_name -> crabs.evening_detective_server.Place - 57, // 15: crabs.evening_detective_server.Story.questions:type_name -> crabs.evening_detective_server.Question + 57, // 14: crabs.evening_detective_server.Story.questions:type_name -> crabs.evening_detective_server.Question + 51, // 15: crabs.evening_detective_server.Story.conclusion:type_name -> crabs.evening_detective_server.Conclusion 54, // 16: crabs.evening_detective_server.Place.applications:type_name -> crabs.evening_detective_server.Application 55, // 17: crabs.evening_detective_server.Place.doors:type_name -> crabs.evening_detective_server.Door 56, // 18: crabs.evening_detective_server.Place.keys:type_name -> crabs.evening_detective_server.Key @@ -11113,7 +11120,7 @@ var file_main_proto_depIdxs = []int32{ 19, // 80: crabs.evening_detective_server.EveningDetectiveServer.GetPrivacy:input_type -> crabs.evening_detective_server.GetPrivacyReq 21, // 81: crabs.evening_detective_server.EveningDetectiveServer.GetConsent:input_type -> crabs.evening_detective_server.GetConsentReq 23, // 82: crabs.evening_detective_server.EveningDetectiveServer.GetUsers:input_type -> crabs.evening_detective_server.GetUsersReq - 26, // 83: crabs.evening_detective_server.EveningDetectiveServer.GetUserById:input_type -> crabs.evening_detective_server.GetUserByIdReq + 26, // 83: crabs.evening_detective_server.EveningDetectiveServer.GetUserByID:input_type -> crabs.evening_detective_server.GetUserByIDReq 28, // 84: crabs.evening_detective_server.EveningDetectiveServer.GetMe:input_type -> crabs.evening_detective_server.GetMeReq 30, // 85: crabs.evening_detective_server.EveningDetectiveServer.ChangeUserPassword:input_type -> crabs.evening_detective_server.ChangeUserPasswordReq 32, // 86: crabs.evening_detective_server.EveningDetectiveServer.AddUserRole:input_type -> crabs.evening_detective_server.AddUserRoleReq @@ -11198,7 +11205,7 @@ var file_main_proto_depIdxs = []int32{ 20, // 165: crabs.evening_detective_server.EveningDetectiveServer.GetPrivacy:output_type -> crabs.evening_detective_server.GetPrivacyRsp 22, // 166: crabs.evening_detective_server.EveningDetectiveServer.GetConsent:output_type -> crabs.evening_detective_server.GetConsentRsp 24, // 167: crabs.evening_detective_server.EveningDetectiveServer.GetUsers:output_type -> crabs.evening_detective_server.GetUsersRsp - 27, // 168: crabs.evening_detective_server.EveningDetectiveServer.GetUserById:output_type -> crabs.evening_detective_server.GetUserByIdRsp + 27, // 168: crabs.evening_detective_server.EveningDetectiveServer.GetUserByID:output_type -> crabs.evening_detective_server.GetUserByIDRsp 29, // 169: crabs.evening_detective_server.EveningDetectiveServer.GetMe:output_type -> crabs.evening_detective_server.GetMeRsp 31, // 170: crabs.evening_detective_server.EveningDetectiveServer.ChangeUserPassword:output_type -> crabs.evening_detective_server.ChangeUserPasswordRsp 33, // 171: crabs.evening_detective_server.EveningDetectiveServer.AddUserRole:output_type -> crabs.evening_detective_server.AddUserRoleRsp diff --git a/proto/main.pb.gw.go b/proto/main.pb.gw.go index e00903f..cb88ccf 100644 --- a/proto/main.pb.gw.go +++ b/proto/main.pb.gw.go @@ -359,42 +359,42 @@ func local_request_EveningDetectiveServer_GetUsers_0(ctx context.Context, marsha return msg, metadata, err } -func request_EveningDetectiveServer_GetUserById_0(ctx context.Context, marshaler runtime.Marshaler, client EveningDetectiveServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func request_EveningDetectiveServer_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, client EveningDetectiveServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( - protoReq GetUserByIdReq + protoReq GetUserByIDReq metadata runtime.ServerMetadata err error ) if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - msg, err := client.GetUserById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetUserByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_EveningDetectiveServer_GetUserById_0(ctx context.Context, marshaler runtime.Marshaler, server EveningDetectiveServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func local_request_EveningDetectiveServer_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, server EveningDetectiveServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( - protoReq GetUserByIdReq + protoReq GetUserByIDReq metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - msg, err := server.GetUserById(ctx, &protoReq) + msg, err := server.GetUserByID(ctx, &protoReq) return msg, metadata, err } @@ -431,13 +431,13 @@ func request_EveningDetectiveServer_ChangeUserPassword_0(ctx context.Context, ma if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.ChangeUserPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -452,13 +452,13 @@ func local_request_EveningDetectiveServer_ChangeUserPassword_0(ctx context.Conte if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.ChangeUserPassword(ctx, &protoReq) return msg, metadata, err @@ -476,13 +476,13 @@ func request_EveningDetectiveServer_AddUserRole_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.AddUserRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -497,13 +497,13 @@ func local_request_EveningDetectiveServer_AddUserRole_0(ctx context.Context, mar if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.AddUserRole(ctx, &protoReq) return msg, metadata, err @@ -521,13 +521,13 @@ func request_EveningDetectiveServer_DeleteUserRole_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DeleteUserRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -542,13 +542,13 @@ func local_request_EveningDetectiveServer_DeleteUserRole_0(ctx context.Context, if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DeleteUserRole(ctx, &protoReq) return msg, metadata, err @@ -719,13 +719,13 @@ func request_EveningDetectiveServer_GetFullScenario_0(ctx context.Context, marsh if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.GetFullScenario(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -737,13 +737,13 @@ func local_request_EveningDetectiveServer_GetFullScenario_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.GetFullScenario(ctx, &protoReq) return msg, metadata, err @@ -758,13 +758,13 @@ func request_EveningDetectiveServer_GetScenario_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.GetScenario(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -776,13 +776,13 @@ func local_request_EveningDetectiveServer_GetScenario_0(ctx context.Context, mar metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.GetScenario(ctx, &protoReq) return msg, metadata, err @@ -800,13 +800,13 @@ func request_EveningDetectiveServer_UpdateScenario_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.UpdateScenario(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -821,13 +821,13 @@ func local_request_EveningDetectiveServer_UpdateScenario_0(ctx context.Context, if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.UpdateScenario(ctx, &protoReq) return msg, metadata, err @@ -845,13 +845,13 @@ func request_EveningDetectiveServer_PublicScenario_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.PublicScenario(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -866,13 +866,13 @@ func local_request_EveningDetectiveServer_PublicScenario_0(ctx context.Context, if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.PublicScenario(ctx, &protoReq) return msg, metadata, err @@ -890,13 +890,13 @@ func request_EveningDetectiveServer_DraftScenario_0(ctx context.Context, marshal if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DraftScenario(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -911,13 +911,13 @@ func local_request_EveningDetectiveServer_DraftScenario_0(ctx context.Context, m if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DraftScenario(ctx, &protoReq) return msg, metadata, err @@ -932,13 +932,13 @@ func request_EveningDetectiveServer_DeleteScenario_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DeleteScenario(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -950,13 +950,13 @@ func local_request_EveningDetectiveServer_DeleteScenario_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DeleteScenario(ctx, &protoReq) return msg, metadata, err @@ -974,13 +974,13 @@ func request_EveningDetectiveServer_AddScenarioPlace_0(ctx context.Context, mars if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.AddScenarioPlace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -995,13 +995,13 @@ func local_request_EveningDetectiveServer_AddScenarioPlace_0(ctx context.Context if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.AddScenarioPlace(ctx, &protoReq) return msg, metadata, err @@ -1019,13 +1019,13 @@ func request_EveningDetectiveServer_UpdateScenarioPlace_0(ctx context.Context, m if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1048,13 +1048,13 @@ func local_request_EveningDetectiveServer_UpdateScenarioPlace_0(ctx context.Cont if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1077,13 +1077,13 @@ func request_EveningDetectiveServer_DeleteScenarioPlace_0(ctx context.Context, m if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1103,13 +1103,13 @@ func local_request_EveningDetectiveServer_DeleteScenarioPlace_0(ctx context.Cont metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1135,13 +1135,13 @@ func request_EveningDetectiveServer_AddScenarioQuestion_0(ctx context.Context, m if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.AddScenarioQuestion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1156,13 +1156,13 @@ func local_request_EveningDetectiveServer_AddScenarioQuestion_0(ctx context.Cont if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.AddScenarioQuestion(ctx, &protoReq) return msg, metadata, err @@ -1180,13 +1180,13 @@ func request_EveningDetectiveServer_UpdateScenarioQuestion_0(ctx context.Context if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1209,13 +1209,13 @@ func local_request_EveningDetectiveServer_UpdateScenarioQuestion_0(ctx context.C if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1238,13 +1238,13 @@ func request_EveningDetectiveServer_DeleteScenarioQuestion_0(ctx context.Context if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1264,13 +1264,13 @@ func local_request_EveningDetectiveServer_DeleteScenarioQuestion_0(ctx context.C metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["code"] if !ok { @@ -1296,13 +1296,13 @@ func request_EveningDetectiveServer_UpdateScenarioBackground_0(ctx context.Conte if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.UpdateScenarioBackground(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1317,13 +1317,13 @@ func local_request_EveningDetectiveServer_UpdateScenarioBackground_0(ctx context if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.UpdateScenarioBackground(ctx, &protoReq) return msg, metadata, err @@ -1341,13 +1341,13 @@ func request_EveningDetectiveServer_UpdateScenarioIntro_0(ctx context.Context, m if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.UpdateScenarioIntro(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1362,13 +1362,13 @@ func local_request_EveningDetectiveServer_UpdateScenarioIntro_0(ctx context.Cont if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.UpdateScenarioIntro(ctx, &protoReq) return msg, metadata, err @@ -1386,13 +1386,13 @@ func request_EveningDetectiveServer_UpdateScenarioConclusion_0(ctx context.Conte if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.UpdateScenarioConclusion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1407,13 +1407,13 @@ func local_request_EveningDetectiveServer_UpdateScenarioConclusion_0(ctx context if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.UpdateScenarioConclusion(ctx, &protoReq) return msg, metadata, err @@ -1428,13 +1428,13 @@ func request_EveningDetectiveServer_DownloadScenarioArchive_0(ctx context.Contex if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DownloadScenarioArchive(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1446,13 +1446,13 @@ func local_request_EveningDetectiveServer_DownloadScenarioArchive_0(ctx context. metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DownloadScenarioArchive(ctx, &protoReq) return msg, metadata, err @@ -1542,13 +1542,13 @@ func request_EveningDetectiveServer_GetGame_0(ctx context.Context, marshaler run if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.GetGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1560,13 +1560,13 @@ func local_request_EveningDetectiveServer_GetGame_0(ctx context.Context, marshal metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.GetGame(ctx, &protoReq) return msg, metadata, err @@ -1584,13 +1584,13 @@ func request_EveningDetectiveServer_IssueGameTickets_0(ctx context.Context, mars if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.IssueGameTickets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1605,13 +1605,13 @@ func local_request_EveningDetectiveServer_IssueGameTickets_0(ctx context.Context if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.IssueGameTickets(ctx, &protoReq) return msg, metadata, err @@ -1764,13 +1764,13 @@ func request_EveningDetectiveServer_GetGameScreens_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.GetGameScreens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1782,13 +1782,13 @@ func local_request_EveningDetectiveServer_GetGameScreens_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.GetGameScreens(ctx, &protoReq) return msg, metadata, err @@ -1806,13 +1806,13 @@ func request_EveningDetectiveServer_BindScreen_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["screenId"] + val, ok := pathParams["screenID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenID") } - protoReq.ScreenId, err = runtime.String(val) + protoReq.ScreenID, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenID", err) } msg, err := client.BindScreen(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1827,13 +1827,13 @@ func local_request_EveningDetectiveServer_BindScreen_0(ctx context.Context, mars if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["screenId"] + val, ok := pathParams["screenID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenID") } - protoReq.ScreenId, err = runtime.String(val) + protoReq.ScreenID, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenID", err) } msg, err := server.BindScreen(ctx, &protoReq) return msg, metadata, err @@ -1851,13 +1851,13 @@ func request_EveningDetectiveServer_UnbindScreen_0(ctx context.Context, marshale if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["screenId"] + val, ok := pathParams["screenID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenID") } - protoReq.ScreenId, err = runtime.String(val) + protoReq.ScreenID, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenID", err) } msg, err := client.UnbindScreen(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1872,13 +1872,13 @@ func local_request_EveningDetectiveServer_UnbindScreen_0(ctx context.Context, ma if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["screenId"] + val, ok := pathParams["screenID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenID") } - protoReq.ScreenId, err = runtime.String(val) + protoReq.ScreenID, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenID", err) } msg, err := server.UnbindScreen(ctx, &protoReq) return msg, metadata, err @@ -1896,13 +1896,13 @@ func request_EveningDetectiveServer_SetScreenSound_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["screenId"] + val, ok := pathParams["screenID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenID") } - protoReq.ScreenId, err = runtime.String(val) + protoReq.ScreenID, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenID", err) } msg, err := client.SetScreenSound(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1917,13 +1917,13 @@ func local_request_EveningDetectiveServer_SetScreenSound_0(ctx context.Context, if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["screenId"] + val, ok := pathParams["screenID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "screenID") } - protoReq.ScreenId, err = runtime.String(val) + protoReq.ScreenID, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "screenID", err) } msg, err := server.SetScreenSound(ctx, &protoReq) return msg, metadata, err @@ -1938,13 +1938,13 @@ func request_EveningDetectiveServer_GetGameMap_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.GetGameMap(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1956,13 +1956,13 @@ func local_request_EveningDetectiveServer_GetGameMap_0(ctx context.Context, mars metadata runtime.ServerMetadata err error ) - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.GetGameMap(ctx, &protoReq) return msg, metadata, err @@ -1980,13 +1980,13 @@ func request_EveningDetectiveServer_UpdateGameMapItem_0(ctx context.Context, mar if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } val, ok = pathParams["kind"] if !ok { @@ -1996,13 +1996,13 @@ func request_EveningDetectiveServer_UpdateGameMapItem_0(ctx context.Context, mar if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "kind", err) } - val, ok = pathParams["itemId"] + val, ok = pathParams["itemID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "itemId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "itemID") } - protoReq.ItemId, err = runtime.Int32(val) + protoReq.ItemID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "itemId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "itemID", err) } msg, err := client.UpdateGameMapItem(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2017,13 +2017,13 @@ func local_request_EveningDetectiveServer_UpdateGameMapItem_0(ctx context.Contex if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } val, ok = pathParams["kind"] if !ok { @@ -2033,13 +2033,13 @@ func local_request_EveningDetectiveServer_UpdateGameMapItem_0(ctx context.Contex if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "kind", err) } - val, ok = pathParams["itemId"] + val, ok = pathParams["itemID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "itemId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "itemID") } - protoReq.ItemId, err = runtime.Int32(val) + protoReq.ItemID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "itemId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "itemID", err) } msg, err := server.UpdateGameMapItem(ctx, &protoReq) return msg, metadata, err @@ -2057,13 +2057,13 @@ func request_EveningDetectiveServer_SetScreenMode_0(ctx context.Context, marshal if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.SetScreenMode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2078,13 +2078,13 @@ func local_request_EveningDetectiveServer_SetScreenMode_0(ctx context.Context, m if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.SetScreenMode(ctx, &protoReq) return msg, metadata, err @@ -2102,13 +2102,13 @@ func request_EveningDetectiveServer_SetScreenTimer_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.SetScreenTimer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2123,13 +2123,13 @@ func local_request_EveningDetectiveServer_SetScreenTimer_0(ctx context.Context, if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.SetScreenTimer(ctx, &protoReq) return msg, metadata, err @@ -2147,13 +2147,13 @@ func request_EveningDetectiveServer_SendScreenCommand_0(ctx context.Context, mar if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.SendScreenCommand(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2168,13 +2168,13 @@ func local_request_EveningDetectiveServer_SendScreenCommand_0(ctx context.Contex if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.SendScreenCommand(ctx, &protoReq) return msg, metadata, err @@ -2216,13 +2216,13 @@ func request_EveningDetectiveServer_DownloadTeamQR_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DownloadTeamQR(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2234,13 +2234,13 @@ func local_request_EveningDetectiveServer_DownloadTeamQR_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DownloadTeamQR(ctx, &protoReq) return msg, metadata, err @@ -2255,13 +2255,13 @@ func request_EveningDetectiveServer_GetGameAnswers_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.GetGameAnswers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2273,13 +2273,13 @@ func local_request_EveningDetectiveServer_GetGameAnswers_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.GetGameAnswers(ctx, &protoReq) return msg, metadata, err @@ -2294,13 +2294,13 @@ func request_EveningDetectiveServer_GetGameResults_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.GetGameResults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2312,13 +2312,13 @@ func local_request_EveningDetectiveServer_GetGameResults_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.GetGameResults(ctx, &protoReq) return msg, metadata, err @@ -2336,13 +2336,13 @@ func request_EveningDetectiveServer_CreateGameReview_0(ctx context.Context, mars if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.CreateGameReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2357,13 +2357,13 @@ func local_request_EveningDetectiveServer_CreateGameReview_0(ctx context.Context if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.CreateGameReview(ctx, &protoReq) return msg, metadata, err @@ -2378,13 +2378,13 @@ func request_EveningDetectiveServer_GetGameReviews_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.GetGameReviews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2396,13 +2396,13 @@ func local_request_EveningDetectiveServer_GetGameReviews_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.GetGameReviews(ctx, &protoReq) return msg, metadata, err @@ -2417,13 +2417,13 @@ func request_EveningDetectiveServer_GetScenarioReviews_0(ctx context.Context, ma if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["scenarioId"] + val, ok := pathParams["scenarioID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "scenarioId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "scenarioID") } - protoReq.ScenarioId, err = runtime.Int32(val) + protoReq.ScenarioID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "scenarioId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "scenarioID", err) } msg, err := client.GetScenarioReviews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2435,13 +2435,13 @@ func local_request_EveningDetectiveServer_GetScenarioReviews_0(ctx context.Conte metadata runtime.ServerMetadata err error ) - val, ok := pathParams["scenarioId"] + val, ok := pathParams["scenarioID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "scenarioId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "scenarioID") } - protoReq.ScenarioId, err = runtime.Int32(val) + protoReq.ScenarioID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "scenarioId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "scenarioID", err) } msg, err := server.GetScenarioReviews(ctx, &protoReq) return msg, metadata, err @@ -2456,13 +2456,13 @@ func request_EveningDetectiveServer_GetGameReviewsForModeration_0(ctx context.Co if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := client.GetGameReviewsForModeration(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2474,13 +2474,13 @@ func local_request_EveningDetectiveServer_GetGameReviewsForModeration_0(ctx cont metadata runtime.ServerMetadata err error ) - val, ok := pathParams["gameId"] + val, ok := pathParams["gameID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "gameID") } - protoReq.GameId, err = runtime.Int32(val) + protoReq.GameID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "gameID", err) } msg, err := server.GetGameReviewsForModeration(ctx, &protoReq) return msg, metadata, err @@ -2519,13 +2519,13 @@ func request_EveningDetectiveServer_ModerateGameReview_0(ctx context.Context, ma if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.ModerateGameReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2540,13 +2540,13 @@ func local_request_EveningDetectiveServer_ModerateGameReview_0(ctx context.Conte if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.ModerateGameReview(ctx, &protoReq) return msg, metadata, err @@ -2564,13 +2564,13 @@ func request_EveningDetectiveServer_UpdateGame_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.UpdateGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2585,13 +2585,13 @@ func local_request_EveningDetectiveServer_UpdateGame_0(ctx context.Context, mars if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.UpdateGame(ctx, &protoReq) return msg, metadata, err @@ -2609,13 +2609,13 @@ func request_EveningDetectiveServer_StartGame_0(ctx context.Context, marshaler r if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.StartGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2630,13 +2630,13 @@ func local_request_EveningDetectiveServer_StartGame_0(ctx context.Context, marsh if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.StartGame(ctx, &protoReq) return msg, metadata, err @@ -2654,13 +2654,13 @@ func request_EveningDetectiveServer_PauseGame_0(ctx context.Context, marshaler r if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.PauseGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2675,13 +2675,13 @@ func local_request_EveningDetectiveServer_PauseGame_0(ctx context.Context, marsh if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.PauseGame(ctx, &protoReq) return msg, metadata, err @@ -2699,13 +2699,13 @@ func request_EveningDetectiveServer_PlayGame_0(ctx context.Context, marshaler ru if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.PlayGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2720,13 +2720,13 @@ func local_request_EveningDetectiveServer_PlayGame_0(ctx context.Context, marsha if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.PlayGame(ctx, &protoReq) return msg, metadata, err @@ -2744,13 +2744,13 @@ func request_EveningDetectiveServer_FinishGame_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.FinishGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2765,13 +2765,13 @@ func local_request_EveningDetectiveServer_FinishGame_0(ctx context.Context, mars if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.FinishGame(ctx, &protoReq) return msg, metadata, err @@ -2789,13 +2789,13 @@ func request_EveningDetectiveServer_ResetGame_0(ctx context.Context, marshaler r if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.ResetGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2810,13 +2810,13 @@ func local_request_EveningDetectiveServer_ResetGame_0(ctx context.Context, marsh if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.ResetGame(ctx, &protoReq) return msg, metadata, err @@ -2831,13 +2831,13 @@ func request_EveningDetectiveServer_DeleteGame_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DeleteGame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2849,13 +2849,13 @@ func local_request_EveningDetectiveServer_DeleteGame_0(ctx context.Context, mars metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DeleteGame(ctx, &protoReq) return msg, metadata, err @@ -2900,13 +2900,13 @@ func request_EveningDetectiveServer_UpdateTeam_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.UpdateTeam(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2921,13 +2921,13 @@ func local_request_EveningDetectiveServer_UpdateTeam_0(ctx context.Context, mars if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int32(val) + protoReq.ID, err = runtime.Int32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.UpdateTeam(ctx, &protoReq) return msg, metadata, err @@ -2942,13 +2942,13 @@ func request_EveningDetectiveServer_DeleteTeam_0(ctx context.Context, marshaler if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DeleteTeam(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -2960,13 +2960,13 @@ func local_request_EveningDetectiveServer_DeleteTeam_0(ctx context.Context, mars metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DeleteTeam(ctx, &protoReq) return msg, metadata, err @@ -2984,13 +2984,13 @@ func request_EveningDetectiveServer_GiveTeamApplications_0(ctx context.Context, if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.GiveTeamApplications(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -3005,19 +3005,19 @@ func local_request_EveningDetectiveServer_GiveTeamApplications_0(ctx context.Con if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.GiveTeamApplications(ctx, &protoReq) return msg, metadata, err } -var filter_EveningDetectiveServer_GetTeamStory_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +var filter_EveningDetectiveServer_GetTeamStory_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_EveningDetectiveServer_GetTeamStory_0(ctx context.Context, marshaler runtime.Marshaler, client EveningDetectiveServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( @@ -3028,13 +3028,13 @@ func request_EveningDetectiveServer_GetTeamStory_0(ctx context.Context, marshale if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) @@ -3052,13 +3052,13 @@ func local_request_EveningDetectiveServer_GetTeamStory_0(ctx context.Context, ma metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) @@ -3082,13 +3082,13 @@ func request_EveningDetectiveServer_AddTeamAction_0(ctx context.Context, marshal if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.AddTeamAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -3103,13 +3103,13 @@ func local_request_EveningDetectiveServer_AddTeamAction_0(ctx context.Context, m if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.AddTeamAction(ctx, &protoReq) return msg, metadata, err @@ -3124,13 +3124,13 @@ func request_EveningDetectiveServer_DeleteLastTeamAction_0(ctx context.Context, if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.DeleteLastTeamAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -3142,19 +3142,19 @@ func local_request_EveningDetectiveServer_DeleteLastTeamAction_0(ctx context.Con metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.DeleteLastTeamAction(ctx, &protoReq) return msg, metadata, err } -var filter_EveningDetectiveServer_GetTeamAnswers_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +var filter_EveningDetectiveServer_GetTeamAnswers_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_EveningDetectiveServer_GetTeamAnswers_0(ctx context.Context, marshaler runtime.Marshaler, client EveningDetectiveServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( @@ -3165,13 +3165,13 @@ func request_EveningDetectiveServer_GetTeamAnswers_0(ctx context.Context, marsha if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) @@ -3189,13 +3189,13 @@ func local_request_EveningDetectiveServer_GetTeamAnswers_0(ctx context.Context, metadata runtime.ServerMetadata err error ) - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) @@ -3219,13 +3219,13 @@ func request_EveningDetectiveServer_SubmitTeamAnswers_0(ctx context.Context, mar if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := client.SubmitTeamAnswers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -3240,13 +3240,13 @@ func local_request_EveningDetectiveServer_SubmitTeamAnswers_0(ctx context.Contex if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } msg, err := server.SubmitTeamAnswers(ctx, &protoReq) return msg, metadata, err @@ -3264,13 +3264,13 @@ func request_EveningDetectiveServer_SetTeamAnswerScore_0(ctx context.Context, ma if req.Body != nil { _, _ = io.Copy(io.Discard, req.Body) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["questionCode"] if !ok { @@ -3293,13 +3293,13 @@ func local_request_EveningDetectiveServer_SetTeamAnswerScore_0(ctx context.Conte if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - val, ok := pathParams["id"] + val, ok := pathParams["ID"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.Id, err = runtime.Int64(val) + protoReq.ID, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } val, ok = pathParams["questionCode"] if !ok { @@ -3579,25 +3579,25 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti } forward_EveningDetectiveServer_GetUsers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetUserById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetUserByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetUserById", runtime.WithHTTPPathPattern("/api/users/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetUserByID", runtime.WithHTTPPathPattern("/api/users/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EveningDetectiveServer_GetUserById_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EveningDetectiveServer_GetUserByID_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_EveningDetectiveServer_GetUserById_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_EveningDetectiveServer_GetUserByID_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetMe_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) @@ -3625,7 +3625,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ChangeUserPassword", runtime.WithHTTPPathPattern("/api/users/{id}/password")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ChangeUserPassword", runtime.WithHTTPPathPattern("/api/users/{ID}/password")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3645,7 +3645,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddUserRole", runtime.WithHTTPPathPattern("/api/users/{id}/role/add")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddUserRole", runtime.WithHTTPPathPattern("/api/users/{ID}/role/add")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3665,7 +3665,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteUserRole", runtime.WithHTTPPathPattern("/api/users/{id}/role/delete")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteUserRole", runtime.WithHTTPPathPattern("/api/users/{ID}/role/delete")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3805,7 +3805,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetFullScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}/full")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetFullScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/full")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3825,7 +3825,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3845,7 +3845,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3865,7 +3865,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PublicScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}/public")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PublicScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/public")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3885,7 +3885,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DraftScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}/draft")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DraftScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/draft")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3905,7 +3905,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3925,7 +3925,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{id}/places")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/places")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3945,7 +3945,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{id}/places/{code}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/places/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3965,7 +3965,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{id}/places/{code}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/places/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3985,7 +3985,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/questions")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/questions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4005,7 +4005,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/questions/{code}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/questions/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4025,7 +4025,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/questions/{code}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/questions/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4045,7 +4045,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioBackground", runtime.WithHTTPPathPattern("/api/scenarios/{id}/background")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioBackground", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/background")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4065,7 +4065,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioIntro", runtime.WithHTTPPathPattern("/api/scenarios/{id}/introduction")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioIntro", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/introduction")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4085,7 +4085,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioConclusion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/conclusion")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioConclusion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/conclusion")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4105,7 +4105,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadScenarioArchive", runtime.WithHTTPPathPattern("/api/scenarios/{id}/archive")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadScenarioArchive", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/archive")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4185,7 +4185,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGame", runtime.WithHTTPPathPattern("/api/games/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGame", runtime.WithHTTPPathPattern("/api/games/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4205,7 +4205,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/IssueGameTickets", runtime.WithHTTPPathPattern("/api/games/{gameId}/tickets")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/IssueGameTickets", runtime.WithHTTPPathPattern("/api/games/{gameID}/tickets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4305,7 +4305,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameScreens", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameScreens", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4325,7 +4325,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/BindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenId}/bind")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/BindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenID}/bind")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4345,7 +4345,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UnbindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenId}/unbind")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UnbindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenID}/unbind")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4365,7 +4365,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenSound", runtime.WithHTTPPathPattern("/api/screens/{screenId}/sound")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenSound", runtime.WithHTTPPathPattern("/api/screens/{screenID}/sound")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4385,7 +4385,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameMap", runtime.WithHTTPPathPattern("/api/games/{gameId}/map")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameMap", runtime.WithHTTPPathPattern("/api/games/{gameID}/map")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4405,7 +4405,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGameMapItem", runtime.WithHTTPPathPattern("/api/games/{gameId}/map/items/{kind}/{itemId}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGameMapItem", runtime.WithHTTPPathPattern("/api/games/{gameID}/map/items/{kind}/{itemID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4425,7 +4425,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenMode", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens/mode")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenMode", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens/mode")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4445,7 +4445,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenTimer", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens/timer")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenTimer", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens/timer")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4465,7 +4465,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SendScreenCommand", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens/command")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SendScreenCommand", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens/command")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4505,7 +4505,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadTeamQR", runtime.WithHTTPPathPattern("/api/games/{id}/teams/qr.pdf")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadTeamQR", runtime.WithHTTPPathPattern("/api/games/{ID}/teams/qr.pdf")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4525,7 +4525,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameAnswers", runtime.WithHTTPPathPattern("/api/games/{gameId}/answers")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameAnswers", runtime.WithHTTPPathPattern("/api/games/{gameID}/answers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4545,7 +4545,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameResults", runtime.WithHTTPPathPattern("/api/games/{gameId}/results")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameResults", runtime.WithHTTPPathPattern("/api/games/{gameID}/results")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4565,7 +4565,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/CreateGameReview", runtime.WithHTTPPathPattern("/api/games/{gameId}/reviews")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/CreateGameReview", runtime.WithHTTPPathPattern("/api/games/{gameID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4585,7 +4585,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviews", runtime.WithHTTPPathPattern("/api/games/{gameId}/reviews")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviews", runtime.WithHTTPPathPattern("/api/games/{gameID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4605,7 +4605,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenarioReviews", runtime.WithHTTPPathPattern("/api/scenarios/{scenarioId}/reviews")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenarioReviews", runtime.WithHTTPPathPattern("/api/scenarios/{scenarioID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4625,7 +4625,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviewsForModeration", runtime.WithHTTPPathPattern("/api/admin/games/{gameId}/reviews")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviewsForModeration", runtime.WithHTTPPathPattern("/api/admin/games/{gameID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4665,7 +4665,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ModerateGameReview", runtime.WithHTTPPathPattern("/api/admin/game-reviews/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ModerateGameReview", runtime.WithHTTPPathPattern("/api/admin/game-reviews/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4685,7 +4685,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGame", runtime.WithHTTPPathPattern("/api/games/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGame", runtime.WithHTTPPathPattern("/api/games/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4705,7 +4705,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/StartGame", runtime.WithHTTPPathPattern("/api/games/{id}/start")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/StartGame", runtime.WithHTTPPathPattern("/api/games/{ID}/start")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4725,7 +4725,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PauseGame", runtime.WithHTTPPathPattern("/api/games/{id}/pause")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PauseGame", runtime.WithHTTPPathPattern("/api/games/{ID}/pause")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4745,7 +4745,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PlayGame", runtime.WithHTTPPathPattern("/api/games/{id}/play")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PlayGame", runtime.WithHTTPPathPattern("/api/games/{ID}/play")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4765,7 +4765,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/FinishGame", runtime.WithHTTPPathPattern("/api/games/{id}/finish")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/FinishGame", runtime.WithHTTPPathPattern("/api/games/{ID}/finish")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4785,7 +4785,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ResetGame", runtime.WithHTTPPathPattern("/api/games/{id}/reset")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ResetGame", runtime.WithHTTPPathPattern("/api/games/{ID}/reset")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4805,7 +4805,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteGame", runtime.WithHTTPPathPattern("/api/games/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteGame", runtime.WithHTTPPathPattern("/api/games/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4845,7 +4845,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateTeam", runtime.WithHTTPPathPattern("/api/teams/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateTeam", runtime.WithHTTPPathPattern("/api/teams/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4865,7 +4865,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteTeam", runtime.WithHTTPPathPattern("/api/teams/{id}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteTeam", runtime.WithHTTPPathPattern("/api/teams/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4885,7 +4885,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GiveTeamApplications", runtime.WithHTTPPathPattern("/api/teams/{id}/applications")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GiveTeamApplications", runtime.WithHTTPPathPattern("/api/teams/{ID}/applications")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4905,7 +4905,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamStory", runtime.WithHTTPPathPattern("/api/teams/{id}/story")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamStory", runtime.WithHTTPPathPattern("/api/teams/{ID}/story")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4925,7 +4925,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddTeamAction", runtime.WithHTTPPathPattern("/api/teams/{id}/actions")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddTeamAction", runtime.WithHTTPPathPattern("/api/teams/{ID}/actions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4945,7 +4945,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteLastTeamAction", runtime.WithHTTPPathPattern("/api/teams/{id}/last-actions")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteLastTeamAction", runtime.WithHTTPPathPattern("/api/teams/{ID}/last-actions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4965,7 +4965,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{id}/answers")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{ID}/answers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4985,7 +4985,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SubmitTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{id}/answers")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SubmitTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{ID}/answers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5005,7 +5005,7 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetTeamAnswerScore", runtime.WithHTTPPathPattern("/api/teams/{id}/answers/{questionCode}/score")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetTeamAnswerScore", runtime.WithHTTPPathPattern("/api/teams/{ID}/answers/{questionCode}/score")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5280,22 +5280,22 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti } forward_EveningDetectiveServer_GetUsers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetUserById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetUserByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetUserById", runtime.WithHTTPPathPattern("/api/users/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetUserByID", runtime.WithHTTPPathPattern("/api/users/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EveningDetectiveServer_GetUserById_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_EveningDetectiveServer_GetUserByID_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_EveningDetectiveServer_GetUserById_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_EveningDetectiveServer_GetUserByID_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetMe_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) @@ -5318,7 +5318,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ChangeUserPassword", runtime.WithHTTPPathPattern("/api/users/{id}/password")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ChangeUserPassword", runtime.WithHTTPPathPattern("/api/users/{ID}/password")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5335,7 +5335,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddUserRole", runtime.WithHTTPPathPattern("/api/users/{id}/role/add")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddUserRole", runtime.WithHTTPPathPattern("/api/users/{ID}/role/add")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5352,7 +5352,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteUserRole", runtime.WithHTTPPathPattern("/api/users/{id}/role/delete")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteUserRole", runtime.WithHTTPPathPattern("/api/users/{ID}/role/delete")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5471,7 +5471,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetFullScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}/full")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetFullScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/full")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5488,7 +5488,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5505,7 +5505,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5522,7 +5522,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PublicScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}/public")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PublicScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/public")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5539,7 +5539,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DraftScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}/draft")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DraftScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/draft")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5556,7 +5556,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenario", runtime.WithHTTPPathPattern("/api/scenarios/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenario", runtime.WithHTTPPathPattern("/api/scenarios/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5573,7 +5573,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{id}/places")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/places")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5590,7 +5590,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{id}/places/{code}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/places/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5607,7 +5607,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{id}/places/{code}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioPlace", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/places/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5624,7 +5624,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/questions")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/questions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5641,7 +5641,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/questions/{code}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/questions/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5658,7 +5658,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/questions/{code}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioQuestion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/questions/{code}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5675,7 +5675,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioBackground", runtime.WithHTTPPathPattern("/api/scenarios/{id}/background")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioBackground", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/background")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5692,7 +5692,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioIntro", runtime.WithHTTPPathPattern("/api/scenarios/{id}/introduction")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioIntro", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/introduction")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5709,7 +5709,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioConclusion", runtime.WithHTTPPathPattern("/api/scenarios/{id}/conclusion")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioConclusion", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/conclusion")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5726,7 +5726,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadScenarioArchive", runtime.WithHTTPPathPattern("/api/scenarios/{id}/archive")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadScenarioArchive", runtime.WithHTTPPathPattern("/api/scenarios/{ID}/archive")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5794,7 +5794,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGame", runtime.WithHTTPPathPattern("/api/games/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGame", runtime.WithHTTPPathPattern("/api/games/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5811,7 +5811,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/IssueGameTickets", runtime.WithHTTPPathPattern("/api/games/{gameId}/tickets")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/IssueGameTickets", runtime.WithHTTPPathPattern("/api/games/{gameID}/tickets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5896,7 +5896,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameScreens", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameScreens", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5913,7 +5913,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/BindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenId}/bind")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/BindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenID}/bind")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5930,7 +5930,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UnbindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenId}/unbind")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UnbindScreen", runtime.WithHTTPPathPattern("/api/screens/{screenID}/unbind")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5947,7 +5947,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenSound", runtime.WithHTTPPathPattern("/api/screens/{screenId}/sound")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenSound", runtime.WithHTTPPathPattern("/api/screens/{screenID}/sound")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5964,7 +5964,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameMap", runtime.WithHTTPPathPattern("/api/games/{gameId}/map")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameMap", runtime.WithHTTPPathPattern("/api/games/{gameID}/map")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5981,7 +5981,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGameMapItem", runtime.WithHTTPPathPattern("/api/games/{gameId}/map/items/{kind}/{itemId}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGameMapItem", runtime.WithHTTPPathPattern("/api/games/{gameID}/map/items/{kind}/{itemID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5998,7 +5998,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenMode", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens/mode")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenMode", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens/mode")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6015,7 +6015,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenTimer", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens/timer")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenTimer", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens/timer")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6032,7 +6032,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SendScreenCommand", runtime.WithHTTPPathPattern("/api/games/{gameId}/screens/command")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SendScreenCommand", runtime.WithHTTPPathPattern("/api/games/{gameID}/screens/command")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6066,7 +6066,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadTeamQR", runtime.WithHTTPPathPattern("/api/games/{id}/teams/qr.pdf")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DownloadTeamQR", runtime.WithHTTPPathPattern("/api/games/{ID}/teams/qr.pdf")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6083,7 +6083,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameAnswers", runtime.WithHTTPPathPattern("/api/games/{gameId}/answers")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameAnswers", runtime.WithHTTPPathPattern("/api/games/{gameID}/answers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6100,7 +6100,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameResults", runtime.WithHTTPPathPattern("/api/games/{gameId}/results")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameResults", runtime.WithHTTPPathPattern("/api/games/{gameID}/results")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6117,7 +6117,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/CreateGameReview", runtime.WithHTTPPathPattern("/api/games/{gameId}/reviews")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/CreateGameReview", runtime.WithHTTPPathPattern("/api/games/{gameID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6134,7 +6134,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviews", runtime.WithHTTPPathPattern("/api/games/{gameId}/reviews")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviews", runtime.WithHTTPPathPattern("/api/games/{gameID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6151,7 +6151,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenarioReviews", runtime.WithHTTPPathPattern("/api/scenarios/{scenarioId}/reviews")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenarioReviews", runtime.WithHTTPPathPattern("/api/scenarios/{scenarioID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6168,7 +6168,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviewsForModeration", runtime.WithHTTPPathPattern("/api/admin/games/{gameId}/reviews")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetGameReviewsForModeration", runtime.WithHTTPPathPattern("/api/admin/games/{gameID}/reviews")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6202,7 +6202,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ModerateGameReview", runtime.WithHTTPPathPattern("/api/admin/game-reviews/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ModerateGameReview", runtime.WithHTTPPathPattern("/api/admin/game-reviews/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6219,7 +6219,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGame", runtime.WithHTTPPathPattern("/api/games/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGame", runtime.WithHTTPPathPattern("/api/games/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6236,7 +6236,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/StartGame", runtime.WithHTTPPathPattern("/api/games/{id}/start")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/StartGame", runtime.WithHTTPPathPattern("/api/games/{ID}/start")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6253,7 +6253,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PauseGame", runtime.WithHTTPPathPattern("/api/games/{id}/pause")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PauseGame", runtime.WithHTTPPathPattern("/api/games/{ID}/pause")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6270,7 +6270,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PlayGame", runtime.WithHTTPPathPattern("/api/games/{id}/play")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/PlayGame", runtime.WithHTTPPathPattern("/api/games/{ID}/play")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6287,7 +6287,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/FinishGame", runtime.WithHTTPPathPattern("/api/games/{id}/finish")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/FinishGame", runtime.WithHTTPPathPattern("/api/games/{ID}/finish")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6304,7 +6304,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ResetGame", runtime.WithHTTPPathPattern("/api/games/{id}/reset")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/ResetGame", runtime.WithHTTPPathPattern("/api/games/{ID}/reset")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6321,7 +6321,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteGame", runtime.WithHTTPPathPattern("/api/games/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteGame", runtime.WithHTTPPathPattern("/api/games/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6355,7 +6355,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateTeam", runtime.WithHTTPPathPattern("/api/teams/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/UpdateTeam", runtime.WithHTTPPathPattern("/api/teams/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6372,7 +6372,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteTeam", runtime.WithHTTPPathPattern("/api/teams/{id}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteTeam", runtime.WithHTTPPathPattern("/api/teams/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6389,7 +6389,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GiveTeamApplications", runtime.WithHTTPPathPattern("/api/teams/{id}/applications")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GiveTeamApplications", runtime.WithHTTPPathPattern("/api/teams/{ID}/applications")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6406,7 +6406,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamStory", runtime.WithHTTPPathPattern("/api/teams/{id}/story")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamStory", runtime.WithHTTPPathPattern("/api/teams/{ID}/story")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6423,7 +6423,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddTeamAction", runtime.WithHTTPPathPattern("/api/teams/{id}/actions")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/AddTeamAction", runtime.WithHTTPPathPattern("/api/teams/{ID}/actions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6440,7 +6440,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteLastTeamAction", runtime.WithHTTPPathPattern("/api/teams/{id}/last-actions")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/DeleteLastTeamAction", runtime.WithHTTPPathPattern("/api/teams/{ID}/last-actions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6457,7 +6457,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{id}/answers")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{ID}/answers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6474,7 +6474,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SubmitTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{id}/answers")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SubmitTeamAnswers", runtime.WithHTTPPathPattern("/api/teams/{ID}/answers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6491,7 +6491,7 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetTeamAnswerScore", runtime.WithHTTPPathPattern("/api/teams/{id}/answers/{questionCode}/score")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/SetTeamAnswerScore", runtime.WithHTTPPathPattern("/api/teams/{ID}/answers/{questionCode}/score")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6521,78 +6521,78 @@ var ( pattern_EveningDetectiveServer_GetPrivacy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "privacy"}, "")) pattern_EveningDetectiveServer_GetConsent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "consent"}, "")) pattern_EveningDetectiveServer_GetUsers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "users"}, "")) - pattern_EveningDetectiveServer_GetUserById_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "users", "id"}, "")) + pattern_EveningDetectiveServer_GetUserByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "users", "ID"}, "")) pattern_EveningDetectiveServer_GetMe_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "users", "me"}, "")) - pattern_EveningDetectiveServer_ChangeUserPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "users", "id", "password"}, "")) - pattern_EveningDetectiveServer_AddUserRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "users", "id", "role", "add"}, "")) - pattern_EveningDetectiveServer_DeleteUserRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "users", "id", "role", "delete"}, "")) + pattern_EveningDetectiveServer_ChangeUserPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "users", "ID", "password"}, "")) + pattern_EveningDetectiveServer_AddUserRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "users", "ID", "role", "add"}, "")) + pattern_EveningDetectiveServer_DeleteUserRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "users", "ID", "role", "delete"}, "")) pattern_EveningDetectiveServer_GetPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "ui", "permissions"}, "")) pattern_EveningDetectiveServer_UploadFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "files", "upload"}, "")) pattern_EveningDetectiveServer_DownloadFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "files", "filename"}, "")) pattern_EveningDetectiveServer_AddScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "scenario"}, "")) pattern_EveningDetectiveServer_GetMyScenarios_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "my-scenarios"}, "")) pattern_EveningDetectiveServer_GetScenariosCatalog_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "catalog"}, "")) - pattern_EveningDetectiveServer_GetFullScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "full"}, "")) - pattern_EveningDetectiveServer_GetScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "id"}, "")) - pattern_EveningDetectiveServer_UpdateScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "id"}, "")) - pattern_EveningDetectiveServer_PublicScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "public"}, "")) - pattern_EveningDetectiveServer_DraftScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "draft"}, "")) - pattern_EveningDetectiveServer_DeleteScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "id"}, "")) - pattern_EveningDetectiveServer_AddScenarioPlace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "places"}, "")) - pattern_EveningDetectiveServer_UpdateScenarioPlace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "id", "places", "code"}, "")) - pattern_EveningDetectiveServer_DeleteScenarioPlace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "id", "places", "code"}, "")) - pattern_EveningDetectiveServer_AddScenarioQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "questions"}, "")) - pattern_EveningDetectiveServer_UpdateScenarioQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "id", "questions", "code"}, "")) - pattern_EveningDetectiveServer_DeleteScenarioQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "id", "questions", "code"}, "")) - pattern_EveningDetectiveServer_UpdateScenarioBackground_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "background"}, "")) - pattern_EveningDetectiveServer_UpdateScenarioIntro_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "introduction"}, "")) - pattern_EveningDetectiveServer_UpdateScenarioConclusion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "conclusion"}, "")) - pattern_EveningDetectiveServer_DownloadScenarioArchive_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "archive"}, "")) + pattern_EveningDetectiveServer_GetFullScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "full"}, "")) + pattern_EveningDetectiveServer_GetScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "ID"}, "")) + pattern_EveningDetectiveServer_UpdateScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "ID"}, "")) + pattern_EveningDetectiveServer_PublicScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "public"}, "")) + pattern_EveningDetectiveServer_DraftScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "draft"}, "")) + pattern_EveningDetectiveServer_DeleteScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "ID"}, "")) + pattern_EveningDetectiveServer_AddScenarioPlace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "places"}, "")) + pattern_EveningDetectiveServer_UpdateScenarioPlace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "ID", "places", "code"}, "")) + pattern_EveningDetectiveServer_DeleteScenarioPlace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "ID", "places", "code"}, "")) + pattern_EveningDetectiveServer_AddScenarioQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "questions"}, "")) + pattern_EveningDetectiveServer_UpdateScenarioQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "ID", "questions", "code"}, "")) + pattern_EveningDetectiveServer_DeleteScenarioQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "scenarios", "ID", "questions", "code"}, "")) + pattern_EveningDetectiveServer_UpdateScenarioBackground_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "background"}, "")) + pattern_EveningDetectiveServer_UpdateScenarioIntro_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "introduction"}, "")) + pattern_EveningDetectiveServer_UpdateScenarioConclusion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "conclusion"}, "")) + pattern_EveningDetectiveServer_DownloadScenarioArchive_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "ID", "archive"}, "")) pattern_EveningDetectiveServer_UploadScenarioArchive_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "scenarios", "archive"}, "")) pattern_EveningDetectiveServer_AddGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "games"}, "")) pattern_EveningDetectiveServer_GetGames_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "games"}, "")) - pattern_EveningDetectiveServer_GetGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "games", "id"}, "")) - pattern_EveningDetectiveServer_IssueGameTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "tickets"}, "")) + pattern_EveningDetectiveServer_GetGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "games", "ID"}, "")) + pattern_EveningDetectiveServer_IssueGameTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "tickets"}, "")) pattern_EveningDetectiveServer_GetTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "tickets", "token"}, "")) pattern_EveningDetectiveServer_AcceptTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "tickets", "token", "accept"}, "")) pattern_EveningDetectiveServer_CreateScreenSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "screens"}, "")) pattern_EveningDetectiveServer_GetScreenState_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "screens", "state"}, "")) - pattern_EveningDetectiveServer_GetGameScreens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "screens"}, "")) - pattern_EveningDetectiveServer_BindScreen_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "screens", "screenId", "bind"}, "")) - pattern_EveningDetectiveServer_UnbindScreen_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "screens", "screenId", "unbind"}, "")) - pattern_EveningDetectiveServer_SetScreenSound_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "screens", "screenId", "sound"}, "")) - pattern_EveningDetectiveServer_GetGameMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "map"}, "")) - pattern_EveningDetectiveServer_UpdateGameMapItem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "games", "gameId", "map", "items", "kind", "itemId"}, "")) - pattern_EveningDetectiveServer_SetScreenMode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "gameId", "screens", "mode"}, "")) - pattern_EveningDetectiveServer_SetScreenTimer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "gameId", "screens", "timer"}, "")) - pattern_EveningDetectiveServer_SendScreenCommand_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "gameId", "screens", "command"}, "")) + pattern_EveningDetectiveServer_GetGameScreens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "screens"}, "")) + pattern_EveningDetectiveServer_BindScreen_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "screens", "screenID", "bind"}, "")) + pattern_EveningDetectiveServer_UnbindScreen_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "screens", "screenID", "unbind"}, "")) + pattern_EveningDetectiveServer_SetScreenSound_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "screens", "screenID", "sound"}, "")) + pattern_EveningDetectiveServer_GetGameMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "map"}, "")) + pattern_EveningDetectiveServer_UpdateGameMapItem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "games", "gameID", "map", "items", "kind", "itemID"}, "")) + pattern_EveningDetectiveServer_SetScreenMode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "gameID", "screens", "mode"}, "")) + pattern_EveningDetectiveServer_SetScreenTimer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "gameID", "screens", "timer"}, "")) + pattern_EveningDetectiveServer_SendScreenCommand_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "gameID", "screens", "command"}, "")) pattern_EveningDetectiveServer_GetScreenResults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "screens", "results"}, "")) - pattern_EveningDetectiveServer_DownloadTeamQR_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "id", "teams", "qr.pdf"}, "")) - pattern_EveningDetectiveServer_GetGameAnswers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "answers"}, "")) - pattern_EveningDetectiveServer_GetGameResults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "results"}, "")) - pattern_EveningDetectiveServer_CreateGameReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "reviews"}, "")) - pattern_EveningDetectiveServer_GetGameReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameId", "reviews"}, "")) - pattern_EveningDetectiveServer_GetScenarioReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "scenarioId", "reviews"}, "")) - pattern_EveningDetectiveServer_GetGameReviewsForModeration_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "admin", "games", "gameId", "reviews"}, "")) + pattern_EveningDetectiveServer_DownloadTeamQR_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"api", "games", "ID", "teams", "qr.pdf"}, "")) + pattern_EveningDetectiveServer_GetGameAnswers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "answers"}, "")) + pattern_EveningDetectiveServer_GetGameResults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "results"}, "")) + pattern_EveningDetectiveServer_CreateGameReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "reviews"}, "")) + pattern_EveningDetectiveServer_GetGameReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "gameID", "reviews"}, "")) + pattern_EveningDetectiveServer_GetScenarioReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "scenarioID", "reviews"}, "")) + pattern_EveningDetectiveServer_GetGameReviewsForModeration_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "admin", "games", "gameID", "reviews"}, "")) pattern_EveningDetectiveServer_GetReviewsForModeration_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "admin", "game-reviews"}, "")) - pattern_EveningDetectiveServer_ModerateGameReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "admin", "game-reviews", "id"}, "")) - pattern_EveningDetectiveServer_UpdateGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "games", "id"}, "")) - pattern_EveningDetectiveServer_StartGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "id", "start"}, "")) - pattern_EveningDetectiveServer_PauseGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "id", "pause"}, "")) - pattern_EveningDetectiveServer_PlayGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "id", "play"}, "")) - pattern_EveningDetectiveServer_FinishGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "id", "finish"}, "")) - pattern_EveningDetectiveServer_ResetGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "id", "reset"}, "")) - pattern_EveningDetectiveServer_DeleteGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "games", "id"}, "")) + pattern_EveningDetectiveServer_ModerateGameReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "admin", "game-reviews", "ID"}, "")) + pattern_EveningDetectiveServer_UpdateGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "games", "ID"}, "")) + pattern_EveningDetectiveServer_StartGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "ID", "start"}, "")) + pattern_EveningDetectiveServer_PauseGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "ID", "pause"}, "")) + pattern_EveningDetectiveServer_PlayGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "ID", "play"}, "")) + pattern_EveningDetectiveServer_FinishGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "ID", "finish"}, "")) + pattern_EveningDetectiveServer_ResetGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "games", "ID", "reset"}, "")) + pattern_EveningDetectiveServer_DeleteGame_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "games", "ID"}, "")) pattern_EveningDetectiveServer_AddTeam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "teams"}, "")) - pattern_EveningDetectiveServer_UpdateTeam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "teams", "id"}, "")) - pattern_EveningDetectiveServer_DeleteTeam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "teams", "id"}, "")) - pattern_EveningDetectiveServer_GiveTeamApplications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "id", "applications"}, "")) - pattern_EveningDetectiveServer_GetTeamStory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "id", "story"}, "")) - pattern_EveningDetectiveServer_AddTeamAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "id", "actions"}, "")) - pattern_EveningDetectiveServer_DeleteLastTeamAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "id", "last-actions"}, "")) - pattern_EveningDetectiveServer_GetTeamAnswers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "id", "answers"}, "")) - pattern_EveningDetectiveServer_SubmitTeamAnswers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "id", "answers"}, "")) - pattern_EveningDetectiveServer_SetTeamAnswerScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "teams", "id", "answers", "questionCode", "score"}, "")) + pattern_EveningDetectiveServer_UpdateTeam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "teams", "ID"}, "")) + pattern_EveningDetectiveServer_DeleteTeam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "teams", "ID"}, "")) + pattern_EveningDetectiveServer_GiveTeamApplications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "ID", "applications"}, "")) + pattern_EveningDetectiveServer_GetTeamStory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "ID", "story"}, "")) + pattern_EveningDetectiveServer_AddTeamAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "ID", "actions"}, "")) + pattern_EveningDetectiveServer_DeleteLastTeamAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "ID", "last-actions"}, "")) + pattern_EveningDetectiveServer_GetTeamAnswers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "ID", "answers"}, "")) + pattern_EveningDetectiveServer_SubmitTeamAnswers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "teams", "ID", "answers"}, "")) + pattern_EveningDetectiveServer_SetTeamAnswerScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "teams", "ID", "answers", "questionCode", "score"}, "")) ) var ( @@ -6609,7 +6609,7 @@ var ( forward_EveningDetectiveServer_GetPrivacy_0 = runtime.ForwardResponseMessage forward_EveningDetectiveServer_GetConsent_0 = runtime.ForwardResponseMessage forward_EveningDetectiveServer_GetUsers_0 = runtime.ForwardResponseMessage - forward_EveningDetectiveServer_GetUserById_0 = runtime.ForwardResponseMessage + forward_EveningDetectiveServer_GetUserByID_0 = runtime.ForwardResponseMessage forward_EveningDetectiveServer_GetMe_0 = runtime.ForwardResponseMessage forward_EveningDetectiveServer_ChangeUserPassword_0 = runtime.ForwardResponseMessage forward_EveningDetectiveServer_AddUserRole_0 = runtime.ForwardResponseMessage diff --git a/proto/main_grpc.pb.go b/proto/main_grpc.pb.go index 36224fb..d85cc39 100644 --- a/proto/main_grpc.pb.go +++ b/proto/main_grpc.pb.go @@ -4,6 +4,12 @@ // - protoc v7.36.0 // source: main.proto +// Contract rules: +// - fields inside each message are declared in ascending number order; +// - published field numbers are never renumbered or reused; +// - use ID, ID and URL for abbreviation fields so generated clients +// keep the same naming convention across Go and TypeScript. + package proto import ( @@ -33,7 +39,7 @@ const ( EveningDetectiveServer_GetPrivacy_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetPrivacy" EveningDetectiveServer_GetConsent_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetConsent" EveningDetectiveServer_GetUsers_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetUsers" - EveningDetectiveServer_GetUserById_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetUserById" + EveningDetectiveServer_GetUserByID_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetUserByID" EveningDetectiveServer_GetMe_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetMe" EveningDetectiveServer_ChangeUserPassword_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/ChangeUserPassword" EveningDetectiveServer_AddUserRole_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddUserRole" @@ -124,7 +130,7 @@ type EveningDetectiveServerClient interface { GetPrivacy(ctx context.Context, in *GetPrivacyReq, opts ...grpc.CallOption) (*GetPrivacyRsp, error) GetConsent(ctx context.Context, in *GetConsentReq, opts ...grpc.CallOption) (*GetConsentRsp, error) GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersRsp, error) - GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdRsp, error) + GetUserByID(ctx context.Context, in *GetUserByIDReq, opts ...grpc.CallOption) (*GetUserByIDRsp, error) GetMe(ctx context.Context, in *GetMeReq, opts ...grpc.CallOption) (*GetMeRsp, error) // Только администратор; сеансы пользователя сохраняются. // Ошибки: 401, 403, 400, 404, 500. @@ -346,10 +352,10 @@ func (c *eveningDetectiveServerClient) GetUsers(ctx context.Context, in *GetUser return out, nil } -func (c *eveningDetectiveServerClient) GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdRsp, error) { +func (c *eveningDetectiveServerClient) GetUserByID(ctx context.Context, in *GetUserByIDReq, opts ...grpc.CallOption) (*GetUserByIDRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUserByIdRsp) - err := c.cc.Invoke(ctx, EveningDetectiveServer_GetUserById_FullMethodName, in, out, cOpts...) + out := new(GetUserByIDRsp) + err := c.cc.Invoke(ctx, EveningDetectiveServer_GetUserByID_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1083,7 +1089,7 @@ type EveningDetectiveServerServer interface { GetPrivacy(context.Context, *GetPrivacyReq) (*GetPrivacyRsp, error) GetConsent(context.Context, *GetConsentReq) (*GetConsentRsp, error) GetUsers(context.Context, *GetUsersReq) (*GetUsersRsp, error) - GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRsp, error) + GetUserByID(context.Context, *GetUserByIDReq) (*GetUserByIDRsp, error) GetMe(context.Context, *GetMeReq) (*GetMeRsp, error) // Только администратор; сеансы пользователя сохраняются. // Ошибки: 401, 403, 400, 404, 500. @@ -1214,8 +1220,8 @@ func (UnimplementedEveningDetectiveServerServer) GetConsent(context.Context, *Ge func (UnimplementedEveningDetectiveServerServer) GetUsers(context.Context, *GetUsersReq) (*GetUsersRsp, error) { return nil, status.Error(codes.Unimplemented, "method GetUsers not implemented") } -func (UnimplementedEveningDetectiveServerServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRsp, error) { - return nil, status.Error(codes.Unimplemented, "method GetUserById not implemented") +func (UnimplementedEveningDetectiveServerServer) GetUserByID(context.Context, *GetUserByIDReq) (*GetUserByIDRsp, error) { + return nil, status.Error(codes.Unimplemented, "method GetUserByID not implemented") } func (UnimplementedEveningDetectiveServerServer) GetMe(context.Context, *GetMeReq) (*GetMeRsp, error) { return nil, status.Error(codes.Unimplemented, "method GetMe not implemented") @@ -1686,20 +1692,20 @@ func _EveningDetectiveServer_GetUsers_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _EveningDetectiveServer_GetUserById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserByIdReq) +func _EveningDetectiveServer_GetUserByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserByIDReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(EveningDetectiveServerServer).GetUserById(ctx, in) + return srv.(EveningDetectiveServerServer).GetUserByID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: EveningDetectiveServer_GetUserById_FullMethodName, + FullMethod: EveningDetectiveServer_GetUserByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EveningDetectiveServerServer).GetUserById(ctx, req.(*GetUserByIdReq)) + return srv.(EveningDetectiveServerServer).GetUserByID(ctx, req.(*GetUserByIDReq)) } return interceptor(ctx, in, info, handler) } @@ -3042,8 +3048,8 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{ Handler: _EveningDetectiveServer_GetUsers_Handler, }, { - MethodName: "GetUserById", - Handler: _EveningDetectiveServer_GetUserById_Handler, + MethodName: "GetUserByID", + Handler: _EveningDetectiveServer_GetUserByID_Handler, }, { MethodName: "GetMe",