上传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: {
type: "int32",
id: 5
},
BaseValue: {
type: "int32",
id: 6
}
}
},
@ -906,30 +910,34 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
},
heroId: {
type: "string",
id: 5
id: 4
},
lv: {
type: "sint32",
id: 6
type: "int32",
id: 5
},
keepFailNum: {
type: "sint32",
id: 7
type: "int32",
id: 6
},
mainEntry: {
type: "EquipmentAttributeEntry",
id: 8
id: 7
},
adverbEntry: {
rule: "repeated",
type: "EquipmentAttributeEntry",
id: 9
id: 8
},
overlayNum: {
type: "uint32",
id: 10
id: 9
},
isInitialState: {
type: "bool",
id: 10
},
islock: {
type: "bool",
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: {
values: {
Release: 0,
@ -2397,6 +2450,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
rule: "repeated",
type: "int32",
id: 6
},
intensity: {
type: "int32",
id: 7
}
}
},
@ -2437,10 +2494,43 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
mainlineId: {
type: "uint32",
id: 2
},
leadpos: {
type: "int32",
id: 3
},
teamids: {
rule: "repeated",
type: "string",
id: 4
}
}
},
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: {
data: {
type: "DBMainline",
@ -2902,6 +2992,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
rule: "repeated",
type: "int32",
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: {
fields: {
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: {
fields: {
id: {
@ -4001,9 +4086,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int32",
id: 7
},
costTime: {
leadpos: {
type: "int32",
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: {
type: "int32",
id: 2
},
leadpos: {
type: "int32",
id: 3
},
teamids: {
rule: "repeated",
type: "string",
id: 4
}
}
},
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: {
data: {
type: "DBViking",
@ -4059,6 +4186,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
boosType: {
type: "int32",
id: 1
},
friend: {
type: "bool",
id: 2
}
}
},

View File

@ -3,23 +3,27 @@ option go_package = ".;pb";
//
message EquipmentAttributeEntry {
int32 Id = 1; //id
int32 libraryid = 2; //id
string AttrName = 3; //
int32 Lv = 4; //
int32 Value = 5; //
int32 Id = 1; //id
int32 libraryid = 2; //id
string AttrName = 3; //
int32 Lv = 4; //
int32 Value = 5; //
int32 BaseValue = 6; //
}
//
message DB_Equipment {
string Id = 1; //@go_tags(`bson:"_id"`) id
string cId = 2; //@go_tags(`bson:"cId"`) Id
string uId = 3; //@go_tags(`bson:"uid"`) Id
string heroId = 5; //@go_tags(`bson:"heroId"`) id ''
sint32 lv = 6; //@go_tags(`bson:"lv"`)
sint32 keepFailNum = 7; //@go_tags(`bson:"keepFailNum"`)
EquipmentAttributeEntry mainEntry = 8; //@go_tags(`bson:"mainEntry"`)
repeated EquipmentAttributeEntry adverbEntry = 9; //@go_tags(`bson:"adverbEntry"`)
uint32 overlayNum = 10; //@go_tags(`bson:"overlayNum"`)
bool isInitialState = 11; //@go_tags(`bson:"isInitialState"`)
string Id = 1; //@go_tags(`bson:"_id"`) id
string cId = 2; //@go_tags(`bson:"cId"`) Id
string uId = 3; //@go_tags(`bson:"uid"`) Id
string heroId = 4; //@go_tags(`bson:"heroId"`) id ''
int32 lv = 5; //@go_tags(`bson:"lv"`)
int32 keepFailNum = 6; //@go_tags(`bson:"keepFailNum"`)
EquipmentAttributeEntry mainEntry =
7; //@go_tags(`bson:"mainEntry"`)
repeated EquipmentAttributeEntry adverbEntry =
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,37 +3,55 @@ option go_package = ".;pb";
import "equipment_db.proto";
//
message EquipmentGetListReq {
}
message EquipmentGetListReq {}
//
message EquipmentGetListResp {
repeated DB_Equipment Equipments = 1; //
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentChangePush {
repeated DB_Equipment Equipments = 1; //
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentEquipReq{
string HeroCardId = 1; //Id
repeated string EquipmentId = 2; //Id 0-5
message EquipmentEquipReq {
string HeroCardId = 1; //Id
repeated string EquipmentId = 2; //Id 0-5
}
//
message EquipmentEquipResp{
repeated DB_Equipment Equipments = 1; //
message EquipmentEquipResp {
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentUpgradeReq{
string EquipmentId = 1; //Id
message EquipmentUpgradeReq {
string EquipmentId = 1; //Id
}
//
message EquipmentUpgradeResp{
bool IsSucc = 1;
repeated DB_Equipment Equipment = 2; //
}
//
//
message EquipmentUpgradeResp {
bool IsSucc = 1;
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 awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
int32 intensity = 7; //
}

View File

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

View File

@ -2,34 +2,36 @@ syntax = "proto3";
option go_package = ".;pb";
enum ShopType {
Null = 0;
GoldShop = 1;
DiamondShop = 2;
PVPShop = 3;
PVEShop = 4;
AllianceShop = 5;
Null = 0;
GoldShop = 1;
DiamondShop = 2;
PVPShop = 3;
PVEShop = 4;
AllianceShop = 5;
}
message UserShopData {
int64 LastRefreshTime = 1; //
int32 ManualRefreshNum = 2; //
repeated int32 Items = 3; //
int64 LastRefreshTime = 1; //
int32 ManualRefreshNum = 2; //
repeated int32 Items = 3; //
map<int32, int32> buy = 4; //
}
message DBShop {
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //@go_tags(`bson:"uid"`) id
UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`)
UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`)
UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`)
UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`)
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`)
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //@go_tags(`bson:"uid"`) id
UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`)
UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`)
UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`)
UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`)
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`)
}
message DBShopItem {
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //@go_tags(`bson:"uid"`) id
int32 goodsId = 3; //@go_tags(`bson:"goodsId"`) Id
map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`)
}
// message DBShopItem {
// string id = 1; //@go_tags(`bson:"_id"`) id
// string uid = 2; //@go_tags(`bson:"uid"`) id
// int32 goodsId = 3; //@go_tags(`bson:"goodsId"`) Id
// map<int32, int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
// 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"`)
}
//
message LineUp{
string cid = 1; // id
int32 star = 2; //
int32 lv = 3; //
}
//
message DBVikingRank {
string id = 1; //@go_tags(`bson:"_id"`) ID
@ -21,5 +28,7 @@ message DBVikingRank {
string nickname = 5;//
string icon = 6; //
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,18 +1,29 @@
syntax = "proto3";
option go_package = ".;pb";
import "viking_db.proto";
import "battle_msg.proto";
message VikingGetListReq {}
message VikingGetListResp { DBViking data = 1; }
//
message VikingChallengeReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
int32 bossType = 1; // boos
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 {
@ -24,8 +35,9 @@ message VikingBuyResp { DBViking data = 1; }
//
message VikingRankListReq {
int32 boosType = 1; // boss
bool friend = 2; //
}
message VikingRankListResp {
repeated DBVikingRank ranks = 1; // boss类型
}
}

6368
yarn.lock Normal file

File diff suppressed because it is too large Load Diff