上传pb工具代码

This commit is contained in:
liwei1dao 2022-09-22 22:53:58 +08:00
parent 81931aed43
commit b70da778cf
9 changed files with 6662 additions and 112 deletions

View File

@ -887,6 +887,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
Value: { Value: {
type: "int32", type: "int32",
id: 5 id: 5
},
BaseValue: {
type: "int32",
id: 6
} }
} }
}, },
@ -906,30 +910,34 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}, },
heroId: { heroId: {
type: "string", type: "string",
id: 5 id: 4
}, },
lv: { lv: {
type: "sint32", type: "int32",
id: 6 id: 5
}, },
keepFailNum: { keepFailNum: {
type: "sint32", type: "int32",
id: 7 id: 6
}, },
mainEntry: { mainEntry: {
type: "EquipmentAttributeEntry", type: "EquipmentAttributeEntry",
id: 8 id: 7
}, },
adverbEntry: { adverbEntry: {
rule: "repeated", rule: "repeated",
type: "EquipmentAttributeEntry", type: "EquipmentAttributeEntry",
id: 9 id: 8
}, },
overlayNum: { overlayNum: {
type: "uint32", type: "uint32",
id: 10 id: 9
}, },
isInitialState: { isInitialState: {
type: "bool",
id: 10
},
islock: {
type: "bool", type: "bool",
id: 11 id: 11
} }
@ -999,6 +1007,51 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
EquipmentLockReq: {
fields: {
EquipmentId: {
type: "string",
id: 1
},
IsLock: {
type: "bool",
id: 2
}
}
},
EquipmentLockResp: {
fields: {
IsSucc: {
type: "bool",
id: 1
},
EquipmentId: {
type: "string",
id: 2
},
IsLock: {
type: "bool",
id: 3
}
}
},
EquipmentSellReq: {
fields: {
EquipIds: {
rule: "repeated",
type: "string",
id: 1
}
}
},
EquipmentSellResp: {
fields: {
IsSucc: {
type: "bool",
id: 1
}
}
},
CommentState: { CommentState: {
values: { values: {
Release: 0, Release: 0,
@ -2397,6 +2450,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
rule: "repeated", rule: "repeated",
type: "int32", type: "int32",
id: 6 id: 6
},
intensity: {
type: "int32",
id: 7
} }
} }
}, },
@ -2437,10 +2494,43 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
mainlineId: { mainlineId: {
type: "uint32", type: "uint32",
id: 2 id: 2
},
leadpos: {
type: "int32",
id: 3
},
teamids: {
rule: "repeated",
type: "string",
id: 4
} }
} }
}, },
MainlineChallengeResp: { MainlineChallengeResp: {
fields: {
info: {
type: "BattleInfo",
id: 1
}
}
},
MainlineChallengeOverReq: {
fields: {
chapterObj: {
type: "string",
id: 1
},
mainlineId: {
type: "uint32",
id: 2
},
report: {
type: "BattleReport",
id: 3
}
}
},
MainlineChallengeOverResp: {
fields: { fields: {
data: { data: {
type: "DBMainline", type: "DBMainline",
@ -2902,6 +2992,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
rule: "repeated", rule: "repeated",
type: "int32", type: "int32",
id: 3 id: 3
},
buy: {
keyType: "int32",
type: "int32",
id: 4
} }
} }
}, },
@ -2937,32 +3032,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
DBShopItem: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
goodsId: {
type: "int32",
id: 3
},
buyNum: {
keyType: "int32",
type: "int32",
id: 4
},
lastBuyTime: {
keyType: "int32",
type: "int64",
id: 5
}
}
},
ShopItem: { ShopItem: {
fields: { fields: {
GoodsId: { GoodsId: {
@ -3971,6 +4040,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
LineUp: {
fields: {
cid: {
type: "string",
id: 1
},
star: {
type: "int32",
id: 2
},
lv: {
type: "int32",
id: 3
}
}
},
DBVikingRank: { DBVikingRank: {
fields: { fields: {
id: { id: {
@ -4001,9 +4086,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int32", type: "int32",
id: 7 id: 7
}, },
costTime: { leadpos: {
type: "int32", type: "int32",
id: 8 id: 8
},
line: {
rule: "repeated",
type: "LineUp",
id: 9
},
costTime: {
type: "int32",
id: 10
} }
} }
}, },
@ -4027,10 +4121,43 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
difficulty: { difficulty: {
type: "int32", type: "int32",
id: 2 id: 2
},
leadpos: {
type: "int32",
id: 3
},
teamids: {
rule: "repeated",
type: "string",
id: 4
} }
} }
}, },
VikingChallengeResp: { VikingChallengeResp: {
fields: {
info: {
type: "BattleInfo",
id: 1
}
}
},
VikingChallengeOverReq: {
fields: {
bossType: {
type: "int32",
id: 1
},
difficulty: {
type: "int32",
id: 2
},
report: {
type: "BattleReport",
id: 3
}
}
},
VikingChallengeOverResp: {
fields: { fields: {
data: { data: {
type: "DBViking", type: "DBViking",
@ -4059,6 +4186,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
boosType: { boosType: {
type: "int32", type: "int32",
id: 1 id: 1
},
friend: {
type: "bool",
id: 2
} }
} }
}, },

View File

@ -8,6 +8,7 @@ message EquipmentAttributeEntry {
string AttrName = 3; // string AttrName = 3; //
int32 Lv = 4; // int32 Lv = 4; //
int32 Value = 5; // int32 Value = 5; //
int32 BaseValue = 6; //
} }
// //
@ -15,11 +16,14 @@ message DB_Equipment {
string Id = 1; //@go_tags(`bson:"_id"`) id string Id = 1; //@go_tags(`bson:"_id"`) id
string cId = 2; //@go_tags(`bson:"cId"`) Id string cId = 2; //@go_tags(`bson:"cId"`) Id
string uId = 3; //@go_tags(`bson:"uid"`) Id string uId = 3; //@go_tags(`bson:"uid"`) Id
string heroId = 5; //@go_tags(`bson:"heroId"`) id '' string heroId = 4; //@go_tags(`bson:"heroId"`) id ''
sint32 lv = 6; //@go_tags(`bson:"lv"`) int32 lv = 5; //@go_tags(`bson:"lv"`)
sint32 keepFailNum = 7; //@go_tags(`bson:"keepFailNum"`) int32 keepFailNum = 6; //@go_tags(`bson:"keepFailNum"`)
EquipmentAttributeEntry mainEntry = 8; //@go_tags(`bson:"mainEntry"`) EquipmentAttributeEntry mainEntry =
repeated EquipmentAttributeEntry adverbEntry = 9; //@go_tags(`bson:"adverbEntry"`) 7; //@go_tags(`bson:"mainEntry"`)
uint32 overlayNum = 10; //@go_tags(`bson:"overlayNum"`) repeated EquipmentAttributeEntry adverbEntry =
bool isInitialState = 11; //@go_tags(`bson:"isInitialState"`) 8; //@go_tags(`bson:"adverbEntry"`)
uint32 overlayNum = 9; //@go_tags(`bson:"overlayNum"`)
bool isInitialState = 10; //@go_tags(`bson:"isInitialState"`)
bool islock = 11; //@go_tags(`bson:"islock"`)
} }

View File

@ -3,9 +3,7 @@ option go_package = ".;pb";
import "equipment_db.proto"; import "equipment_db.proto";
// //
message EquipmentGetListReq { message EquipmentGetListReq {}
}
// //
message EquipmentGetListResp { message EquipmentGetListResp {
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
@ -32,8 +30,28 @@ message EquipmentUpgradeReq{
string EquipmentId = 1; //Id string EquipmentId = 1; //Id
} }
// //
//
message EquipmentUpgradeResp { message EquipmentUpgradeResp {
bool IsSucc = 1; bool IsSucc = 1;
repeated DB_Equipment Equipment = 2; // repeated DB_Equipment Equipment = 2;
} }
//sailitem
message EquipmentLockReq {
string EquipmentId = 1; //id
bool IsLock = 2; //
}
//
message EquipmentLockResp {
bool IsSucc = 1;
string EquipmentId = 2;
bool IsLock = 3;
}
//sailitem
message EquipmentSellReq { repeated string EquipIds = 1; }
//
message EquipmentSellResp { bool IsSucc = 1; }

View File

@ -8,4 +8,5 @@ message DBMainline {
int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID
int32 awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况) int32 awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`) repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
int32 intensity = 7; //
} }

View File

@ -1,15 +1,11 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "mainline_db.proto"; import "mainline_db.proto";
import "battle_msg.proto";
// //
message MainlineGetListReq { message MainlineGetListReq {}
}
// //
message MainlineGetListResp { message MainlineGetListResp { repeated DBMainline data = 1; }
repeated DBMainline data = 1;
}
// //
message MainlineGetRewardReq { message MainlineGetRewardReq {
@ -24,13 +20,22 @@ message MainlineGetRewardResp {
message MainlineChallengeReq { message MainlineChallengeReq {
string chapterObj = 1; // id string chapterObj = 1; // id
uint32 mainlineId = 2; // ID uint32 mainlineId = 2; // ID
int32 leadpos = 3; //
repeated string teamids = 4; //
} }
message MainlineChallengeResp { message MainlineChallengeResp { BattleInfo info = 1; }
//
message MainlineChallengeOverReq {
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
BattleReport report = 3; //
}
message MainlineChallengeOverResp {
DBMainline data = 1; // DBMainline data = 1; //
} }
// //
message MainlineNewChapterPush{ message MainlineNewChapterPush { DBMainline data = 1; }
DBMainline data = 1;
}

View File

@ -14,6 +14,7 @@ message UserShopData {
int64 LastRefreshTime = 1; // int64 LastRefreshTime = 1; //
int32 ManualRefreshNum = 2; // int32 ManualRefreshNum = 2; //
repeated int32 Items = 3; // repeated int32 Items = 3; //
map<int32, int32> buy = 4; //
} }
message DBShop { message DBShop {
@ -26,10 +27,11 @@ message DBShop {
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`) UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`)
} }
message DBShopItem { // message DBShopItem {
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 goodsId = 3; //@go_tags(`bson:"goodsId"`) Id // int32 goodsId = 3; //@go_tags(`bson:"goodsId"`) Id
map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`) // map<int32, int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`) // map<int32, int64> lastBuyTime =
} // 5; //@go_tags(`bson:"lastBuyTime"`)
// }

View File

@ -12,6 +12,13 @@ message DBViking {
map<string,int32> bossTime = 7; //@go_tags(`bson:"bossTime"`) map<string,int32> bossTime = 7; //@go_tags(`bson:"bossTime"`)
} }
//
message LineUp{
string cid = 1; // id
int32 star = 2; //
int32 lv = 3; //
}
// //
message DBVikingRank { message DBVikingRank {
string id = 1; //@go_tags(`bson:"_id"`) ID string id = 1; //@go_tags(`bson:"_id"`) ID
@ -21,5 +28,7 @@ message DBVikingRank {
string nickname = 5;// string nickname = 5;//
string icon = 6; // string icon = 6; //
int32 lv = 7; // int32 lv = 7; //
int32 costTime = 8; //@go_tags(`bson:"costTime"`) s int32 leadpos = 8; //
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
} }

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "viking_db.proto"; import "viking_db.proto";
import "battle_msg.proto";
message VikingGetListReq {} message VikingGetListReq {}
message VikingGetListResp { DBViking data = 1; } message VikingGetListResp { DBViking data = 1; }
@ -10,9 +10,20 @@ message VikingGetListResp { DBViking data = 1; }
message VikingChallengeReq { message VikingChallengeReq {
int32 bossType = 1; // boos int32 bossType = 1; // boos
int32 difficulty = 2; // int32 difficulty = 2; //
int32 leadpos = 3; //
repeated string teamids = 4; //
} }
message VikingChallengeResp { DBViking data = 1; } message VikingChallengeResp { BattleInfo info = 1; }
message VikingChallengeOverReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
BattleReport report = 3; //
}
//
message VikingChallengeOverResp { DBViking data = 1; }
// //
message VikingBuyReq { message VikingBuyReq {
@ -24,6 +35,7 @@ message VikingBuyResp { DBViking data = 1; }
// //
message VikingRankListReq { message VikingRankListReq {
int32 boosType = 1; // boss int32 boosType = 1; // boss
bool friend = 2; //
} }
message VikingRankListResp { message VikingRankListResp {

6368
yarn.lock Normal file

File diff suppressed because it is too large Load Diff