上传代码

This commit is contained in:
liwei1dao 2022-08-18 20:36:05 +08:00
parent dc5848d136
commit 9815572c16
17 changed files with 834 additions and 219 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -31,15 +31,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string", type: "string",
id: 3 id: 3
}, },
ruid: { slv: {
type: "string", type: "int32",
id: 4 id: 4
}, },
groud: { ruid: {
type: "int32", type: "string",
id: 5 id: 5
}, },
areaId: { channelId: {
type: "int32", type: "int32",
id: 6 id: 6
}, },
@ -47,21 +47,25 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string", type: "string",
id: 7 id: 7
}, },
avatar: { stag: {
type: "string", type: "string",
id: 8 id: 8
}, },
uname: { avatar: {
type: "string", type: "string",
id: 9 id: 9
}, },
content: { uname: {
type: "string", type: "string",
id: 10 id: 10
}, },
content: {
type: "string",
id: 11
},
ctime: { ctime: {
type: "int64", type: "int64",
id: 11 id: 12
} }
} }
}, },
@ -105,23 +109,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
}, },
ChatGetListReq: { ChatGetListReq: {
fields: {
channel: {
type: "ChatChannel",
id: 1
}
}
},
ChatGetListResp: {
fields: {
chats: {
rule: "repeated",
type: "DBChat",
id: 1
}
}
},
ChatSpanGetListReq: {
fields: { fields: {
channel: { channel: {
type: "ChatChannel", type: "ChatChannel",
@ -133,7 +120,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
ChatSpanGetListResp: { ChatGetListResp: {
fields: { fields: {
chats: { chats: {
rule: "repeated", rule: "repeated",
@ -152,46 +139,32 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string", type: "string",
id: 2 id: 2
}, },
ulv: {
type: "int32",
id: 3
},
channel: { channel: {
type: "ChatChannel", type: "ChatChannel",
id: 3 id: 4
}, },
targetId: { targetId: {
type: "string", type: "string",
id: 4 id: 5
}, },
content: { content: {
type: "string", type: "string",
id: 5 id: 6
} }
} }
}, },
ChatSendResp: { ChatSendResp: {
fields: {}
},
ChatSpanSendReq: {
fields: { fields: {
avatar: { issucc: {
type: "string", type: "bool",
id: 1 id: 1
},
uname: {
type: "string",
id: 2
},
channel: {
type: "ChatChannel",
id: 3
},
content: {
type: "string",
id: 4
} }
} }
}, },
ChatSpanSendResp: {
fields: {}
},
UserMessage: { UserMessage: {
fields: { fields: {
MainType: { MainType: {
@ -462,6 +435,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
FriendApplyError: 1109, FriendApplyError: 1109,
FriendBlackMax: 1110, FriendBlackMax: 1110,
FriendSearchNameEmpty: 1111, FriendSearchNameEmpty: 1111,
FriendZaned: 1112,
FriendZanreceived: 1113,
FriendZanSelf: 1114,
FriendPointLimit: 1115,
ItemsNoEnough: 1200, ItemsNoEnough: 1200,
ItemsNoFoundGird: 1201, ItemsNoFoundGird: 1201,
ItemsGridNumUpper: 1202, ItemsGridNumUpper: 1202,
@ -514,7 +491,16 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
TaskNotFound: 1611, TaskNotFound: 1611,
ShopGoodsIsSoldOut: 1700, ShopGoodsIsSoldOut: 1700,
ShopNoSurplusRefreshNum: 1701, ShopNoSurplusRefreshNum: 1701,
MailErr: 1800 MailErr: 1800,
PagodaNotFound: 1900,
PagodaLevlErr: 1901,
PagodaGetRewardErr: 1902,
PagodaConditionErr: 1903,
MartialhallNotUnlocked: 2000,
MartialhallInUse: 2001,
MartialhallUnlocked: 2002,
GourmetMoreOrderTime: 2101,
GourmetSkillMaxLv: 2102
} }
}, },
google: { google: {
@ -801,6 +787,38 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
ForumLikeReq: {
fields: {
herocid: {
type: "string",
id: 1
},
cid: {
type: "string",
id: 2
},
islike: {
type: "bool",
id: 3
}
}
},
ForumLikeResp: {
fields: {
cid: {
type: "string",
id: 1
},
islike: {
type: "bool",
id: 2
},
issucc: {
type: "bool",
id: 3
}
}
},
SkillData: { SkillData: {
fields: { fields: {
skillID: { skillID: {
@ -893,7 +911,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 18 id: 18
}, },
energy: { energy: {
keyType: "int32", keyType: "string",
type: "int32", type: "int32",
id: 19 id: 19
}, },
@ -917,6 +935,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
keyType: "string", keyType: "string",
type: "int32", type: "int32",
id: 24 id: 24
},
juexProperty: {
keyType: "string",
type: "int32",
id: 25
} }
} }
}, },
@ -942,37 +965,21 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string", type: "string",
id: 2 id: 2
}, },
race0: { star4: {
type: "Floor", type: "int32",
id: 3 id: 3
}, },
race1: { star5: {
type: "Floor", type: "int32",
id: 4 id: 4
}, },
race2: {
type: "Floor",
id: 5
},
race3: {
type: "Floor",
id: 6
},
race4: {
type: "Floor",
id: 7
},
triggernum: {
type: "int32",
id: 8
},
activityid: {
type: "int32",
id: 9
},
mtime: { mtime: {
type: "int64", type: "int64",
id: 10 id: 5
},
drawcount: {
type: "int32",
id: 6
} }
} }
}, },
@ -996,6 +1003,20 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
rule: "repeated", rule: "repeated",
type: "string", type: "string",
id: 4 id: 4
},
zanIds: {
rule: "repeated",
type: "string",
id: 5
},
getZandIds: {
rule: "repeated",
type: "string",
id: 6
},
assistHeroId: {
type: "string",
id: 7
} }
} }
}, },
@ -1014,7 +1035,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 3 id: 3
}, },
avatar: { avatar: {
type: "int32", type: "string",
id: 4 id: 4
}, },
strength: { strength: {
@ -1028,6 +1049,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
offlineTime: { offlineTime: {
type: "int64", type: "int64",
id: 7 id: 7
},
isApplied: {
type: "bool",
id: 8
},
isZaned: {
type: "bool",
id: 9
},
isGetZaned: {
type: "bool",
id: 10
} }
} }
}, },
@ -1035,6 +1068,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
fields: {} fields: {}
}, },
FriendListResp: { FriendListResp: {
fields: {
list: {
rule: "repeated",
type: "FriendBase",
id: 1
},
heroObjId: {
type: "string",
id: 2
}
}
},
FriendRandlistReq: {
fields: {}
},
FriendRandlistResp: {
fields: { fields: {
list: { list: {
rule: "repeated", rule: "repeated",
@ -1157,7 +1206,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
FriendBlackAddReq: { FriendAddBlackReq: {
fields: { fields: {
friendId: { friendId: {
type: "string", type: "string",
@ -1165,7 +1214,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
FriendBlackAddResp: { FriendAddBlackResp: {
fields: { fields: {
friendId: { friendId: {
type: "string", type: "string",
@ -1197,46 +1246,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
FriendReceiveReq: {
fields: {
friendId: {
type: "string",
id: 1
}
}
},
FriendReceiveResp: {
fields: {
friendId: {
type: "string",
id: 1
},
userId: {
type: "string",
id: 2
}
}
},
FriendGiveReq: {
fields: {
friendId: {
type: "string",
id: 1
}
}
},
FriendGiveResp: {
fields: {
friendId: {
type: "string",
id: 1
},
userId: {
type: "string",
id: 2
}
}
},
FriendTotalReq: { FriendTotalReq: {
fields: { fields: {
friendId: { friendId: {
@ -1257,6 +1266,68 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
FriendZanlistReq: {
fields: {}
},
FriendZanlistResp: {
fields: {
list: {
rule: "repeated",
type: "FriendBase",
id: 1
}
}
},
FriendZanReq: {
fields: {
friendIds: {
rule: "repeated",
type: "string",
id: 1
}
}
},
FriendZanResp: {
fields: {
flag: {
type: "bool",
id: 1
}
}
},
FriendZanreceiveReq: {
fields: {
friendIds: {
rule: "repeated",
type: "string",
id: 1
}
}
},
FriendZanreceiveResp: {
fields: {
flag: {
type: "bool",
id: 1
}
}
},
FriendAssistheroReq: {
fields: {
heroObjId: {
type: "string",
id: 1
}
}
},
FriendAssistheroResp: {
fields: {
heroObjId: {
type: "string",
id: 1
}
}
},
GMCmdReq: { GMCmdReq: {
fields: { fields: {
Cmod: { Cmod: {
@ -1273,6 +1344,133 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
Cooking: {
fields: {
foodType: {
type: "int32",
id: 1
},
eTime: {
type: "int64",
id: 2
}
}
},
OrderCook: {
fields: {
foodType: {
type: "int32",
id: 1
},
foodCount: {
type: "int32",
id: 2
},
cookTime: {
type: "int32",
id: 3
}
}
},
DBGourmet: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
cookingFood: {
type: "Cooking",
id: 3
},
foods: {
rule: "repeated",
type: "OrderCook",
id: 4
},
items: {
rule: "repeated",
type: "UserAssets",
id: 5
},
skill: {
keyType: "int32",
type: "int32",
id: 6
},
specialSkill: {
keyType: "int32",
type: "int32",
id: 7
},
orderCostTime: {
type: "int32",
id: 8
},
ctime: {
type: "int64",
id: 9
}
}
},
GourmetGetListReq: {
fields: {}
},
GourmetGetListResp: {
fields: {
data: {
type: "DBGourmet",
id: 1
}
}
},
GourmetCreateOrderReq: {
fields: {
order: {
rule: "repeated",
type: "OrderCook",
id: 1
}
}
},
GourmetCreateOrderResp: {
fields: {
data: {
type: "DBGourmet",
id: 1
}
}
},
GourmetGetRewardReq: {
fields: {}
},
GourmetGetRewardResp: {
fields: {
data: {
type: "DBGourmet",
id: 1
}
}
},
GourmetSkillLvReq: {
fields: {
skillType: {
type: "int32",
id: 1
}
}
},
GourmetSkillLvResp: {
fields: {
data: {
type: "DBGourmet",
id: 1
}
}
},
HeroInfoReq: { HeroInfoReq: {
fields: { fields: {
heroId: { heroId: {
@ -1454,19 +1652,28 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
EnergyData: {
fields: {
useEnergy: {
type: "int32",
id: 1
},
useType: {
type: "string",
id: 2
}
}
},
HeroResonanceUseEnergyReq: { HeroResonanceUseEnergyReq: {
fields: { fields: {
heroObjID: { heroObjID: {
type: "string", type: "string",
id: 1 id: 1
}, },
useEnergy: { energy: {
type: "int32", rule: "repeated",
type: "EnergyData",
id: 2 id: 2
},
useType: {
type: "int32",
id: 3
} }
} }
}, },
@ -1579,6 +1786,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
drawType: { drawType: {
type: "int32", type: "int32",
id: 1 id: 1
},
drawCount: {
type: "int32",
id: 2
} }
} }
}, },
@ -1937,6 +2148,142 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
PillarState: {
values: {
NoUse: 0,
Useing: 1,
Receive: 2
}
},
DBPillar: {
fields: {
isunlock: {
type: "bool",
id: 1
},
state: {
type: "PillarState",
id: 2
},
hero: {
type: "string",
id: 3
},
start: {
type: "int64",
id: 4
},
end: {
type: "int64",
id: 5
},
lastbill: {
type: "int64",
id: 6
},
reward: {
type: "int32",
id: 7
}
}
},
DBMartialhall: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
lv: {
type: "int32",
id: 3
},
pillar1: {
type: "DBPillar",
id: 4
},
pillar2: {
type: "DBPillar",
id: 5
},
pillar3: {
type: "DBPillar",
id: 6
},
pillar4: {
type: "DBPillar",
id: 7
},
pillar5: {
type: "DBPillar",
id: 8
}
}
},
MartialhallInfoReq: {
fields: {}
},
MartialhallInfoResp: {
fields: {
info: {
type: "DBMartialhall",
id: 1
}
}
},
MartialhallPracticeReq: {
fields: {
pillar: {
type: "int32",
id: 1
},
hero: {
type: "string",
id: 2
}
}
},
MartialhallPracticeResp: {
fields: {
pillar: {
type: "int32",
id: 1
},
hero: {
type: "string",
id: 2
},
issucc: {
type: "bool",
id: 3
}
}
},
MartialhallReceiveReq: {
fields: {
pillar: {
type: "int32",
id: 1
}
}
},
MartialhallReceiveResp: {
fields: {}
},
MartialhallUpgradeReq: {
fields: {}
},
MartialhallUpgradeResp: {
fields: {
info: {
type: "DBMartialhall",
id: 1
}
}
},
DBSystemNotify: { DBSystemNotify: {
fields: { fields: {
id: { id: {
@ -2009,6 +2356,70 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
DBPagoda: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
pagodaId: {
type: "int32",
id: 3
},
reward: {
keyType: "int32",
type: "bool",
id: 4
}
}
},
PagodaGetListReq: {
fields: {}
},
PagodaGetListResp: {
fields: {
data: {
type: "DBPagoda",
id: 1
}
}
},
PagodaGetRewardReq: {
fields: {
id: {
type: "int32",
id: 1
}
}
},
PagodaGetRewardResp: {
fields: {
data: {
type: "DBPagoda",
id: 1
}
}
},
PagodaChallengeReq: {
fields: {
levelID: {
type: "int32",
id: 1
}
}
},
PagodaChallengeResp: {
fields: {
data: {
type: "DBPagoda",
id: 1
}
}
},
ShopType: { ShopType: {
values: { values: {
Null: 0, Null: 0,

View File

@ -9,6 +9,7 @@ enum ChatChannel {
System = 4; // System = 4; //
} }
message DBChat { message DBChat {
string id =1; //id string id =1; //id
ChatChannel channel = 2; // ChatChannel channel = 2; //

View File

@ -54,6 +54,10 @@ enum ErrorCode {
FriendApplyError = 1109; // FriendApplyError = 1109; //
FriendBlackMax = 1110; // FriendBlackMax = 1110; //
FriendSearchNameEmpty = 1111; // FriendSearchNameEmpty = 1111; //
FriendZaned = 1112; //
FriendZanreceived = 1113; //
FriendZanSelf = 1114; //
FriendPointLimit = 1115; //线
// item // item
ItemsNoEnough = 1200; // ItemsNoEnough = 1200; //
@ -120,4 +124,16 @@ enum ErrorCode {
ShopNoSurplusRefreshNum = 1701; // ShopNoSurplusRefreshNum = 1701; //
// mail // mail
MailErr = 1800; // MailErr = 1800; //
// pagoda
PagodaNotFound = 1900; //
PagodaLevlErr = 1901; //
PagodaGetRewardErr = 1902; //
PagodaConditionErr = 1903; //
// martialhall
MartialhallNotUnlocked = 2000; //
MartialhallInUse = 2001; //使
MartialhallUnlocked = 2002; //
//
GourmetMoreOrderTime = 2101;//
GourmetSkillMaxLv = 2102; //
} }

View File

@ -8,7 +8,7 @@ enum CommentState {
// //
message DBComment { message DBComment {
string id =1; //id string id = 1; //@go_tags(`bson:"_id"`) ID
string heroid = 2; //id string heroid = 2; //id
string heroobjid = 3; //id string heroobjid = 3; //id
string uid = 4; //id string uid = 4; //id
@ -20,5 +20,3 @@ message DBComment {
string content = 10; // string content = 10; //
int32 starlist = 11; // int32 starlist = 11; //
} }

View File

@ -2,15 +2,14 @@ syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "forum_db.proto"; import "forum_db.proto";
import "hero_db.proto"; import "hero_db.proto";
// //
message ForumGetListReq { message ForumGetListReq {
string herocid = 1; //id string herocid = 1; //id
} }
// //
message ForumGetListResp { message ForumGetListResp { repeated DBComment comment = 1; }
repeated DBComment comment = 1;
}
// //
message ForumReleaseCommentReq { message ForumReleaseCommentReq {
@ -22,9 +21,7 @@ message ForumReleaseCommentReq {
} }
// //
message ForumReleaseCommentResp { message ForumReleaseCommentResp { DBComment comment = 1; }
DBComment comment = 1;
}
// //
message ForumWatchHeroReq { message ForumWatchHeroReq {
@ -34,6 +31,18 @@ message ForumWatchHeroReq {
string herooId = 4; //id string herooId = 4; //id
} }
// //
message ForumWatchHeroResp { message ForumWatchHeroResp { DBHero hero = 1; }
DBHero hero = 1;
//
message ForumLikeReq {
string herocid = 1; //id
string cid = 2; //id
bool islike = 3; //
}
//
message ForumLikeResp {
string cid = 1; //id
bool islike = 2; //
bool issucc = 3; //
} }

View File

@ -6,4 +6,7 @@ message DBFriend {
repeated string friendIds = 2; //@go_tags(`bson:"friendIds"`) ID repeated string friendIds = 2; //@go_tags(`bson:"friendIds"`) ID
repeated string applyIds = 3; //@go_tags(`bson:"applyIds"`) ID repeated string applyIds = 3; //@go_tags(`bson:"applyIds"`) ID
repeated string blackIds = 4; //@go_tags(`bson:"blackIds"`) ID repeated string blackIds = 4; //@go_tags(`bson:"blackIds"`) ID
repeated string zanIds = 5; //@go_tags(`bson:"zanIds"`) ID
repeated string getZandIds = 6; //@go_tags(`bson:"getZandIds"`) ID
string assistHeroId = 7; //@go_tags(`bson:"assistHeroId"`) ID
} }

View File

@ -5,16 +5,26 @@ message FriendBase {
string userId = 1; // ID string userId = 1; // ID
string NickName = 2; // string NickName = 2; //
int32 level = 3; // int32 level = 3; //
int32 avatar = 4; // string avatar = 4; //
int64 strength = 5; // int64 strength = 5; //
int32 serverId = 6; // int32 serverId = 6; //
int64 offlineTime = 7; //线 0线 int64 offlineTime = 7; //线 0线
bool isApplied = 8; //
bool isZaned = 9; //
bool isGetZaned = 10; //
} }
// //
message FriendListReq {} message FriendListReq {}
message FriendListResp { repeated FriendBase list = 1; } message FriendListResp {
repeated FriendBase list = 1;
string heroObjId = 2;
}
// 线
message FriendRandlistReq {}
message FriendRandlistResp { repeated FriendBase list = 1; }
// //
message FriendApplyReq { message FriendApplyReq {
@ -68,9 +78,9 @@ message FriendBlackListReq {}
message FriendBlackListResp { repeated FriendBase friends = 1; } message FriendBlackListResp { repeated FriendBase friends = 1; }
// //
message FriendBlackAddReq { string friendId = 1; } message FriendAddBlackReq { string friendId = 1; }
message FriendBlackAddResp { message FriendAddBlackResp {
string friendId = 1; string friendId = 1;
string userId = 2; string userId = 2;
} }
@ -83,22 +93,6 @@ message FriendDelBlackResp {
string userId = 2; string userId = 2;
} }
//
message FriendReceiveReq { string friendId = 1; }
message FriendReceiveResp {
string friendId = 1;
string userId = 2;
}
//
message FriendGiveReq { string friendId = 1; }
message FriendGiveResp {
string friendId = 1;
string userId = 2;
}
// //
message FriendTotalReq { string friendId = 1; } message FriendTotalReq { string friendId = 1; }
@ -106,3 +100,21 @@ message FriendTotalResp {
string friendId = 1; string friendId = 1;
int32 total = 2; // int32 total = 2; //
} }
//
message FriendZanlistReq {}
message FriendZanlistResp { repeated FriendBase list = 1; }
//
message FriendZanReq { repeated string friendIds = 1; }
message FriendZanResp { bool flag = 1; }
//
message FriendZanreceiveReq { repeated string friendIds = 1; }
message FriendZanreceiveResp { bool flag = 1; }
//
message FriendAssistheroReq { string heroObjId = 1; }
message FriendAssistheroResp { string heroObjId = 1; }

View File

@ -0,0 +1,27 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
//
message Cooking{
int32 foodType = 1; //
int64 eTime = 2; //
}
//
message OrderCook{
int32 foodType = 1; //
int32 foodCount = 2; //
int32 cookTime = 3; //
}
message DBGourmet {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
Cooking cookingFood = 3;//@go_tags(`bson:"cookingFood"`)
repeated OrderCook foods = 4; //
repeated UserAssets items = 5; //
map<int32,int32> skill = 6;//@go_tags(`bson:"skill"`) ID
map<int32,int32> specialSkill = 7; //@go_tags(`bson:"specialSkill"`)
int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`)
int64 ctime = 9; //
}

View File

@ -0,0 +1,38 @@
syntax = "proto3";
option go_package = ".;pb";
import "gourmet_db.proto";
//
message GourmetGetListReq {
}
//
message GourmetGetListResp {
DBGourmet data = 1;
}
//
message GourmetCreateOrderReq {
repeated OrderCook order = 1;//
}
message GourmetCreateOrderResp {
DBGourmet data = 1;
}
//
message GourmetGetRewardReq{
}
message GourmetGetRewardResp{
DBGourmet data = 1;
}
//
message GourmetSkillLvReq{
int32 skillType = 1; // id
}
message GourmetSkillLvResp{
DBGourmet data = 1;
}

View File

@ -17,20 +17,25 @@ message DBHero {
int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`) int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`)
repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`) repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 10; // map<string, int32> property = 10; //
map<string, int32> addProperty = 11; //@go_tags(`bson:"addProperty"`) map<string, int32> addProperty =
int32 cardType = 12; //@go_tags(`bson:"cardType"`) () 11; //@go_tags(`bson:"addProperty"`)
int32 cardType =
12; //@go_tags(`bson:"cardType"`) ()
int32 curSkin = 13; //@go_tags(`bson:"curSkin"`) ID int32 curSkin = 13; //@go_tags(`bson:"curSkin"`) ID
repeated int32 skins = 14; // ID repeated int32 skins = 14; // ID
bool block = 15; // bool block = 15; //
repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID
int32 resonateNum = 17; //@go_tags(`bson:"resonateNum"`) int32 resonateNum = 17; //@go_tags(`bson:"resonateNum"`)
int32 distributionResonate = 18; //@go_tags(`bson:"distributionResonate"`) int32 distributionResonate =
map<int32, int32> energy = 19; // @go_tags(`bson:"energy"`)[1,0] 18; //@go_tags(`bson:"distributionResonate"`)
map<string, int32> energy =
19; // @go_tags(`bson:"energy"`)[hppro:0,atkpro:0,defpro:20]
int32 sameCount = 20; // @go_tags(`bson:"sameCount"`) int32 sameCount = 20; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id
bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) true bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) true
map<string, int32> energyProperty = 24; //@go_tags(`bson:"energyProperty"`) map<string, int32> energyProperty = 24; //@go_tags(`bson:"energyProperty"`)
map<string, int32> juexProperty = 25; //@go_tags(`bson:"juexProperty"`) //hp
} }
message Floor { // message Floor { //
@ -42,12 +47,8 @@ message Floor{ // 记录阵型保底数据
message DBHeroRecord { message DBHeroRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID id string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID string uid = 2; //@go_tags(`bson:"uid"`) ID
Floor race0 = 3; // int32 star4 = 3; // 4
Floor race1 = 4; // 1 int32 star5 = 4; // 5
Floor race2 = 5; // 2 int64 mtime = 5; //
Floor race3 = 6; // 3 int32 drawcount = 6; //
Floor race4 = 7; // 4
int32 triggernum = 8; //
int32 activityid = 9; // id
int64 mtime = 10; //
} }

View File

@ -87,11 +87,14 @@ message HeroResonanceResetResp {
int32 energy = 2; // int32 energy = 2; //
} }
message EnergyData{
int32 useEnergy = 1; // 使
string useType = 2; // 使
}
// 使 // 使
message HeroResonanceUseEnergyReq { message HeroResonanceUseEnergyReq {
string heroObjID = 1; // ID string heroObjID = 1; // ID
int32 useEnergy = 2; // 使 repeated EnergyData energy = 2;
int32 useType = 3; // 使
} }
message HeroResonanceUseEnergyResp { message HeroResonanceUseEnergyResp {
@ -142,7 +145,8 @@ message HeroGetSpecifiedResp {
// //
message HeroDrawCardReq { message HeroDrawCardReq {
int32 drawType = 1; // drawCardCost表 int32 drawType = 1; // 0
int32 drawCount = 2;//
} }
message HeroDrawCardResp { message HeroDrawCardResp {

View File

@ -0,0 +1,31 @@
syntax = "proto3";
option go_package = ".;pb";
enum PillarState {
NoUse = 0; //使
Useing = 1; //使
Receive = 2; //
}
///
message DBPillar {
bool isunlock = 1; //
PillarState state = 2; //
string hero = 3; //
int64 start = 4; //
int64 end = 5; //
int64 lastbill = 6; //
int32 reward = 7; //
}
//
message DBMartialhall {
string id = 1; //id
string uid = 2; //id
int32 lv = 3; //
DBPillar pillar1 = 4; //1
DBPillar pillar2 = 5; //2
DBPillar pillar3 = 6; //3
DBPillar pillar4 = 7; //4
DBPillar pillar5 = 8; //5
}

View File

@ -0,0 +1,30 @@
syntax = "proto3";
option go_package = ".;pb";
import "martialhall_db.proto";
///
message MartialhallInfoReq {}
///
message MartialhallInfoResp { DBMartialhall info = 1; }
///
message MartialhallPracticeReq {
int32 pillar = 1; //
string hero = 2; //
}
///
message MartialhallPracticeResp {
int32 pillar = 1; //
string hero = 2; //
bool issucc = 3; //
}
///
message MartialhallReceiveReq { int32 pillar = 1; }
///
message MartialhallReceiveResp {}
///
message MartialhallUpgradeReq {}
///
message MartialhallUpgradeResp { DBMartialhall info = 1; }

View File

@ -0,0 +1,9 @@
syntax = "proto3";
option go_package = ".;pb";
message DBPagoda {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`)
map<int32,bool> reward = 4; //
}

View File

@ -0,0 +1,22 @@
syntax = "proto3";
option go_package = ".;pb";
import "pagoda_db.proto";
//
message PagodaGetListReq {}
//
message PagodaGetListResp { DBPagoda data = 1; }
//
message PagodaGetRewardReq {
int32 id = 1; // task_reward id
}
message PagodaGetRewardResp { DBPagoda data = 1; }
//
message PagodaChallengeReq {
int32 levelID = 1; // ID
}
message PagodaChallengeResp { DBPagoda data = 1; }

View File

@ -216,6 +216,9 @@ export default defineComponent({
{ mainType: 'chat', subs: [] }, { mainType: 'chat', subs: [] },
{ mainType: 'gm', subs: [] }, { mainType: 'gm', subs: [] },
{ mainType: 'forum', subs: [] }, { mainType: 'forum', subs: [] },
{ mainType: 'pagoda', subs: [] },
{ mainType: 'martialhall', subs: [] },
{ mainType: 'gourmet', subs: [] },
]) ])
for (const v of Object.keys(proto)) { for (const v of Object.keys(proto)) {
for (const v1 of proto_models) { for (const v1 of proto_models) {