generated from VLADIMIR/template
add play
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user