上传pb协议文件代码
This commit is contained in:
parent
7730929c47
commit
389fea4ef9
@ -3739,7 +3739,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
type: "int32",
|
type: "int32",
|
||||||
id: 3
|
id: 3
|
||||||
},
|
},
|
||||||
boos: {
|
boss: {
|
||||||
keyType: "int32",
|
keyType: "int32",
|
||||||
type: "int32",
|
type: "int32",
|
||||||
id: 4
|
id: 4
|
||||||
@ -3752,8 +3752,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
type: "int64",
|
type: "int64",
|
||||||
id: 6
|
id: 6
|
||||||
},
|
},
|
||||||
challengeTime: {
|
bossTime: {
|
||||||
keyType: "int32",
|
keyType: "string",
|
||||||
type: "int32",
|
type: "int32",
|
||||||
id: 7
|
id: 7
|
||||||
}
|
}
|
||||||
@ -3843,7 +3843,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
VikingRankListReq: {
|
VikingRankListReq: {
|
||||||
fields: {}
|
fields: {
|
||||||
|
boosType: {
|
||||||
|
type: "int32",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
VikingRankListResp: {
|
VikingRankListResp: {
|
||||||
fields: {
|
fields: {
|
||||||
|
@ -6,10 +6,10 @@ message DBViking {
|
|||||||
string id = 1; //@go_tags(`bson:"_id"`) ID
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
||||||
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
||||||
int32 challengeCount = 3; //@go_tags(`bson:"challengeCount"`) 挑战次数
|
int32 challengeCount = 3; //@go_tags(`bson:"challengeCount"`) 挑战次数
|
||||||
map<int32,int32> boos = 4; // key boos 类型 value 难度
|
map<int32,int32> boss = 4; // key boos 类型 value 难度
|
||||||
int32 buyCount = 5;//@go_tags(`bson:"buyCount"`) 购买次数
|
int32 buyCount = 5;//@go_tags(`bson:"buyCount"`) 购买次数
|
||||||
int64 cTime = 6; //@go_tags(`bson:"cTime"`) 修改时间
|
int64 cTime = 6; //@go_tags(`bson:"cTime"`) 修改时间
|
||||||
map<int32,int32> challengeTime = 7; //@go_tags(`bson:"challengeTime"`) 每个难度通关时间
|
map<string,int32> bossTime = 7; //@go_tags(`bson:"bossTime"`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 维京远征排行榜
|
// 维京远征排行榜
|
||||||
|
@ -22,7 +22,9 @@ message VikingBuyReq {
|
|||||||
message VikingBuyResp { DBViking data = 1; }
|
message VikingBuyResp { DBViking data = 1; }
|
||||||
|
|
||||||
// 排行榜
|
// 排行榜
|
||||||
message VikingRankListReq {}
|
message VikingRankListReq {
|
||||||
|
int32 boosType = 1; // boss 类型
|
||||||
|
}
|
||||||
|
|
||||||
message VikingRankListResp {
|
message VikingRankListResp {
|
||||||
repeated DBVikingRank ranks = 1; // 排行数据 有序的 注意boss类型
|
repeated DBVikingRank ranks = 1; // 排行数据 有序的 注意boss类型
|
||||||
|
Loading…
Reference in New Issue
Block a user