This commit is contained in:
2026-10-13 13:50:34 +07:00
parent d77638308e
commit 0fa88bca22
7 changed files with 303 additions and 15 deletions
+38 -15
View File
@@ -915,11 +915,27 @@ service EveningDetectiveServer {
rpc DownloadGamePrintMaterials(GetGameReq) returns (google.api.HttpBody) {
option (google.api.http) = {get: "/api/games/{ID}/print-materials"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Игры";
tags : "Игры";
summary: "Скачать материалы игры для печати ZIP-архивом";
};
}
rpc PreviewTeamReceipt(TeamReceiptReq) returns (google.api.HttpBody) {
option (google.api.http) = {get: "/api/games/{gameID}/teams/{teamID}/receipt.png"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Игры";
summary: "Предпросмотр чека команды на локальной площадке";
};
}
rpc PrintTeamReceipt(TeamReceiptReq) returns (PrintTeamReceiptRsp) {
option (google.api.http) = {post: "/api/games/{gameID}/teams/{teamID}/receipt/print" body: "*"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Игры";
summary: "Напечатать один чек команды на MXW01 локальной площадки";
};
}
rpc DownloadTeamQR(GetGameReq) returns (google.api.HttpBody) {
option (google.api.http) = {
get: "/api/games/{ID}/teams/qr.pdf"
@@ -2409,13 +2425,13 @@ message GameResultsPackageRsp {
}
message DeviceHeartbeatReq {
string deviceID = 1;
string connectionID = 2;
optional int32 organizerGameID = 3;
string deviceID = 1;
string connectionID = 2;
optional int32 organizerGameID = 3;
optional string teamID = 4;
string password = 5;
string screenID = 6;
string accessToken = 7;
string password = 5;
string screenID = 6;
string accessToken = 7;
}
message DeviceHeartbeatRsp {
@@ -2428,7 +2444,7 @@ message GetDevicesReq { optional int32 gameID = 1; }
message GetDevicesRsp {
repeated VenueDevice devices = 1;
google.protobuf.Timestamp serverTime = 2;
VenueWiFi wifi = 3; // Entire venue, independent of the game filter.
VenueWiFi wifi = 3; // Entire venue, independent of the game filter.
}
message VenueDevice {
@@ -2453,16 +2469,23 @@ message DeviceConnection {
}
message VenueWiFi {
bool enabled = 1;
bool enabled = 1;
google.protobuf.Timestamp collectedAt = 2;
bool stale = 3;
bool hasError = 4;
repeated WiFiClient clients = 5;
bool stale = 3;
bool hasError = 4;
repeated WiFiClient clients = 5;
}
message WiFiClient {
string IP = 1;
string MAC = 2;
string band = 3;
string IP = 1;
string MAC = 2;
string band = 3;
optional int32 signal = 4; // dBm; absent when the router does not report it.
}
message TeamReceiptReq {
int32 gameID = 1;
string teamID = 2;
}
message PrintTeamReceiptRsp {}