add graph

This commit is contained in:
2025-09-23 03:04:20 +07:00
parent 9b7241031c
commit c144123cff
10 changed files with 1071 additions and 1486 deletions
+23
View File
@@ -77,6 +77,12 @@ service EveningDetective {
get: "/teams/pdf"
};
}
rpc GetGraph(GetGraphReq) returns (GetGraphRsp) {
option (google.api.http) = {
get: "/graph"
};
}
}
message PingReq {}
@@ -179,3 +185,20 @@ message DownloadTeamsQrCodesFileReq {}
message DownloadTeamsQrCodesFileRsp {
bytes result = 1;
}
message GetGraphReq {}
message GetGraphRsp {
repeated Node nodes = 1;
repeated Edge edges = 2;
message Node {
int32 id = 1;
string label = 2;
}
message Edge {
int32 from = 1;
int32 to = 2;
string arrows = 3;
}
}