add results

This commit is contained in:
2026-09-10 14:19:57 +07:00
parent 0fe167954d
commit 7462b3ea9a
7 changed files with 714 additions and 369 deletions
+21 -2
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"
@@ -1320,8 +1328,8 @@ message ScreenState {
string cover_image = 10;
string intro_audio = 11;
string conclusion_video = 12;
ScreenCommand command = 13;
int32 volume = 14;
ScreenCommand command = 13;
int32 volume = 14;
}
message CreateScreenSessionReq {}
@@ -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;