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.
31 lines
552 B
Protocol Buffer
31 lines
552 B
Protocol Buffer
3 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package pbClient;
|
||
|
|
||
|
option go_package = "/pbRank";
|
||
|
|
||
|
enum RankType {
|
||
|
Unknown = 0;
|
||
|
Damage = 1;
|
||
|
General = 2;
|
||
|
KillUnit = 3;
|
||
|
KillPlayer = 4;
|
||
|
}
|
||
|
|
||
|
// RankPvpReq 获取排行榜 request > rank.pvp
|
||
|
message RankPvpReq {
|
||
|
int32 type = 1; // rank类型
|
||
|
int32 topN = 2; // TopN
|
||
|
}
|
||
|
|
||
|
// RankPvpResp 排行榜数据 response > rank.pvp
|
||
|
message RankPvpResp {
|
||
|
message Item {
|
||
|
int64 uid = 1;
|
||
|
string uname = 2;
|
||
|
int64 score = 3;
|
||
|
string avatar = 4;
|
||
|
}
|
||
|
int32 type = 1; // rank类型
|
||
|
repeated Item items = 2; // rank数据
|
||
|
}
|