protobufs/ranks.proto
2022-10-16 19:37:06 -04:00

53 lines
826 B
Protocol Buffer

syntax = "proto3";
import "users.proto";
option go_package = "git.itzana.me/strafesnet/go-grpc/ranks";
package ranks;
service RanksService {
rpc Get(GetRequest) returns (RankMessage);
rpc List(ListRequest) returns (RankList);
rpc Delete(IdMessage) returns (IdMessage);
}
message IdMessage {
int64 ID = 1;
}
message GetRequest {
int64 ID = 1;
}
message ListRequest {
int64 StyleID = 1;
int64 GameID = 2;
int64 ModeID = 3;
int64 Sort = 4;
Pagination Page = 5;
}
message RankList {
repeated RankMessage ranks = 1;
}
message RankMessage {
int64 ID = 1;
users.UserResponse User = 2;
int64 StyleID = 3;
int64 ModeID = 4;
int64 GameID = 5;
double Rank = 6;
double Skill = 7;
int64 UpdatedAt = 8;
}
message Pagination {
int32 Size = 1;
int32 Number = 2;
}
message NullResponse {
}