add results for screen

This commit is contained in:
2026-09-10 14:21:45 +07:00
parent 399278d88c
commit 992d6fcfc1
50 changed files with 135 additions and 64 deletions
+19
View File
@@ -616,6 +616,14 @@ service EveningDetectiveServer {
};
}
rpc GetScreenResults(GetScreenResultsReq) returns (GetScreenResultsRsp) {
option (google.api.http) = { post: "/api/screens/results" body: "*" };
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags : "Экраны";
summary: "Получить результаты для экрана";
};
}
rpc DownloadTeamQR(GetGameReq) returns (google.api.HttpBody) {
option (google.api.http) = {
get: "/api/games/{id}/teams/qr.pdf"
@@ -1430,6 +1438,17 @@ message SendScreenCommandRsp {
string error = 1;
}
message GetScreenResultsReq {
string screenId = 1;
string accessToken = 2;
}
message GetScreenResultsRsp {
string error = 1;
repeated ResultsQuestion questions = 2;
repeated TeamResult teams = 3;
}
message Team {
int32 id = 1;
string name = 2;