generated from VLADIMIR/template
add game
This commit is contained in:
+12
-10
@@ -419,9 +419,9 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetTeamActions(GetTeamActionsReq) returns (GetTeamActionsRsp) {
|
||||
rpc GetTeamStory(GetTeamStoryReq) returns (GetTeamStoryRsp) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/teams/{id}/actions"
|
||||
get: "/api/teams/{id}/story"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
security: {
|
||||
@@ -749,10 +749,12 @@ message Game {
|
||||
}
|
||||
|
||||
message Team {
|
||||
int32 id = 1;
|
||||
string name = 2;
|
||||
string status = 3;
|
||||
string password = 4;
|
||||
int32 id = 1;
|
||||
string name = 2;
|
||||
string status = 3;
|
||||
string password = 4;
|
||||
int32 actions_count = 5;
|
||||
repeated Application applications = 6;
|
||||
}
|
||||
|
||||
message GetGameReq {
|
||||
@@ -819,14 +821,14 @@ message GiveTeamApplicationsRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message GetTeamActionsReq {
|
||||
message GetTeamStoryReq {
|
||||
int64 id = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message GetTeamActionsRsp {
|
||||
string error = 1;
|
||||
repeated Place places = 2;
|
||||
message GetTeamStoryRsp {
|
||||
string error = 1;
|
||||
Story story = 2;
|
||||
}
|
||||
|
||||
message AddTeamActionReq {
|
||||
|
||||
Reference in New Issue
Block a user