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数据 }