Add ranks.proto

This commit is contained in:
itzaname 2022-10-16 19:37:06 -04:00
parent 0b44dcc8a8
commit 1588ad147d

53
ranks.proto Normal file
View File

@ -0,0 +1,53 @@
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 {
}