This commit is contained in:
2026-03-07 21:25:32 +07:00
parent 2e8afd3948
commit 05cab1df89
5 changed files with 287 additions and 159 deletions
+37 -29
View File
@@ -86,7 +86,7 @@ service EveningDetective {
rpc UpdateNode(UpdateNodeReq) returns (UpdateNodeRsp) {
option (google.api.http) = {
put: "/graph/nodes",
put : "/graph/nodes",
body: "*"
};
}
@@ -109,8 +109,8 @@ message AddTeamsRsp {
}
message TeamFull {
int64 id = 1;
string name = 2;
int64 id = 1;
string name = 2;
string password = 3;
}
@@ -127,24 +127,30 @@ message GetTeamsCSVRsp {
}
message TeamAdvanced {
int64 id = 1;
string name = 2;
string password = 3;
string url = 4;
int64 spendTime = 5;
int64 id = 1;
string name = 2;
string password = 3;
string url = 4;
int64 spendTime = 5;
repeated Application applications = 6;
}
message Application {
int64 id = 1;
string name = 2;
int64 id = 1;
string name = 2;
string state = 3;
}
message Door {
string code = 1;
string name = 2;
bool show = 3;
}
message GetTeamReq {}
message GetTeamRsp {
string name = 1;
string name = 1;
repeated Action actions = 2;
}
@@ -155,19 +161,21 @@ message AddActionReq {
message AddActionRsp {}
message Action {
int64 id = 1;
string place = 2;
string name = 3;
string text = 4;
int64 id = 1;
string place = 2;
string name = 3;
string text = 4;
repeated Application applications = 5;
bool hidden = 6;
repeated Door doors = 7;
}
message GetGameReq {}
message GetGameRsp {
string state = 1;
string state = 1;
string startAt = 2;
string endAt = 3;
string endAt = 3;
}
message GameStartReq {}
@@ -181,7 +189,7 @@ message GameStopReq {
message GameStopRsp {}
message GiveApplicationsReq {
int64 teamId = 1;
int64 teamId = 1;
repeated Application applications = 2;
}
@@ -196,30 +204,30 @@ message DownloadTeamsQrCodesFileRsp {
message GetGraphReq {}
message GetGraphRsp {
repeated GraphNode nodes = 1;
repeated Edge edges = 2;
int32 countNodes = 3;
int32 countEdges = 4;
repeated GraphNode nodes = 1;
repeated Edge edges = 2;
int32 countNodes = 3;
int32 countEdges = 4;
message Edge {
string from = 1;
string to = 2;
string from = 1;
string to = 2;
string arrows = 3;
string type = 4;
string type = 4;
}
}
message UpdateNodeReq {
string code = 1;
string code = 1;
GraphNode node = 2;
}
message UpdateNodeRsp {}
message GraphNode {
string code = 1;
string name = 2;
string text = 3;
string code = 1;
string name = 2;
string text = 3;
repeated GraphApplication applications = 4;
}