You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
import "google/protobuf/struct.proto";
package process.v1;
option go_package = "com.dingshudata/football-manager/pkg/grpc/process/v1;processv1";
message MatchMessage {
repeated string names = 1;
int64 homeTeamId = 2;
int64 visitingTeamID = 3;
google.protobuf.ListValue event = 4;
}
message TeamStatisticalResult {
google.protobuf.ListValue result = 1;
}
message PlayerStatisticalResult {
google.protobuf.ListValue result = 1;
}
message PassingMatrixResult {
google.protobuf.ListValue result = 1;
}
message PassGraphResult {
google.protobuf.ListValue result = 1;
}
message XmlMessage {
int64 matchId = 1;
}
message XmlResult {
string status = 1;
}
service Statistics {
rpc RunTeamStatistics (MatchMessage) returns (TeamStatisticalResult) {
};
rpc RunPlayerStatistics (MatchMessage) returns (PlayerStatisticalResult) {
};
rpc RunPassingMatrix (MatchMessage) returns (PassingMatrixResult) {
};
rpc RunPassGraph (MatchMessage) returns (PassGraphResult) {
};
rpc RunCreateXml (XmlMessage) returns (XmlResult) {};
}