39 lines
858 B
Protocol Buffer
39 lines
858 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pbClient;
|
|
|
|
option go_package = "/pbRank";
|
|
|
|
enum RankType {
|
|
Unknown = 0;
|
|
Damage = 1; // 伤害榜
|
|
DeDamage = 2; // 受伤榜
|
|
General = 3; // 名将榜
|
|
DeGeneral = 4; // 落马榜
|
|
KillUnit = 5; // 小兵击杀
|
|
DeKillUnit = 6; // 小兵被杀
|
|
KillPlayer = 7; // 击杀玩家
|
|
DeKillPlayer = 8; // 被杀榜
|
|
Win = 9; // 获胜榜
|
|
Lost = 10; // 战败榜
|
|
FirstBlood = 11; // 一血榜
|
|
DeFirstBlood = 12; // 被拿一血榜
|
|
}
|
|
|
|
// 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数据
|
|
} |