上传pb协议文件代码

This commit is contained in:
liwei1dao 2022-09-05 19:37:12 +08:00
parent 7730929c47
commit 389fea4ef9
3 changed files with 14 additions and 7 deletions

View File

@ -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: {

View File

@ -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"`)
} }
// //

View File

@ -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类型