This commit is contained in:
2026-08-04 01:36:52 +07:00
parent ff26c2e6bb
commit e424174e29
9 changed files with 478 additions and 149 deletions
+19
View File
@@ -388,6 +388,17 @@ service EveningDetectiveServer {
};
}
rpc PlayGame(PlayGameReq) returns (PlayGameRsp) {
option (google.api.http) = {
put : "/api/games/{id}/play"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags : "Игры";
summary: "Продолжить игру";
};
}
rpc FinishGame(FinishGameReq) returns (FinishGameRsp) {
option (google.api.http) = {
put : "/api/games/{id}/finish"
@@ -837,6 +848,14 @@ message PauseGameRsp {
string error = 1;
}
message PlayGameReq {
int32 id = 1;
}
message PlayGameRsp {
string error = 1;
}
message FinishGameReq {
int32 id = 1;
}