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.
41 lines
995 B
Protocol Buffer
41 lines
995 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb.game.zhg;
|
|
|
|
import "vars/vars.proto";
|
|
|
|
option go_package = "dcg/game/pb/game/zhg;pbGameZhg";
|
|
|
|
// RankPvpReq 获取排行榜 request > rank.pvp
|
|
message RankPvpReq {
|
|
pb.vars.RankType 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;
|
|
}
|
|
pb.vars.RankType type = 1; // rank类型
|
|
repeated Item items = 2; // rank数据
|
|
}
|
|
|
|
// RankRvpSubmitResult 排行榜结算结果通知 push -> rank.submit 命令(排行榜结算)
|
|
message RankRvpSubmitResult {
|
|
message Result {
|
|
int64 userId = 1;
|
|
string username = 2;
|
|
string avatar = 3;
|
|
int64 coin = 4; // 获取到的积分数
|
|
int64 title = 5; // 获取到的称号ID
|
|
}
|
|
message Item {
|
|
pb.vars.RankType rankType = 1; // 排行榜类型
|
|
repeated Result results = 2; // 上榜玩家?
|
|
}
|
|
repeated Item items = 1;
|
|
} |