上传代码

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",
id: 3
},
ruid: {
type: "string",
slv: {
type: "int32",
id: 4
},
groud: {
type: "int32",
ruid: {
type: "string",
id: 5
},
areaId: {
channelId: {
type: "int32",
id: 6
},
@ -47,21 +47,25 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 7
},
avatar: {
stag: {
type: "string",
id: 8
},
uname: {
avatar: {
type: "string",
id: 9
},
content: {
uname: {
type: "string",
id: 10
},
content: {
type: "string",
id: 11
},
ctime: {
type: "int64",
id: 11
id: 12
}
}
},
@ -105,23 +109,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
},
ChatGetListReq: {
fields: {
channel: {
type: "ChatChannel",
id: 1
}
}
},
ChatGetListResp: {
fields: {
chats: {
rule: "repeated",
type: "DBChat",
id: 1
}
}
},
ChatSpanGetListReq: {
fields: {
channel: {
type: "ChatChannel",
@ -133,7 +120,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
ChatSpanGetListResp: {
ChatGetListResp: {
fields: {
chats: {
rule: "repeated",
@ -152,46 +139,32 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 2
},
ulv: {
type: "int32",
id: 3
},
channel: {
type: "ChatChannel",
id: 3
id: 4
},
targetId: {
type: "string",
id: 4
id: 5
},
content: {
type: "string",
id: 5
id: 6
}
}
},
ChatSendResp: {
fields: {}
},
ChatSpanSendReq: {
fields: {
avatar: {
type: "string",
issucc: {
type: "bool",
id: 1
},
uname: {
type: "string",
id: 2
},
channel: {
type: "ChatChannel",
id: 3
},
content: {
type: "string",
id: 4
}
}
},
ChatSpanSendResp: {
fields: {}
},
UserMessage: {
fields: {
MainType: {
@ -462,6 +435,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
FriendApplyError: 1109,
FriendBlackMax: 1110,
FriendSearchNameEmpty: 1111,
FriendZaned: 1112,
FriendZanreceived: 1113,
FriendZanSelf: 1114,
FriendPointLimit: 1115,
ItemsNoEnough: 1200,
ItemsNoFoundGird: 1201,
ItemsGridNumUpper: 1202,
@ -514,7 +491,16 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
TaskNotFound: 1611,
ShopGoodsIsSoldOut: 1700,
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: {
@ -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: {
fields: {
skillID: {
@ -893,7 +911,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 18
},
energy: {
keyType: "int32",
keyType: "string",
type: "int32",
id: 19
},
@ -917,6 +935,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
keyType: "string",
type: "int32",
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",
id: 2
},
race0: {
type: "Floor",
star4: {
type: "int32",
id: 3
},
race1: {
type: "Floor",
star5: {
type: "int32",
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: {
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",
type: "string",
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
},
avatar: {
type: "int32",
type: "string",
id: 4
},
strength: {
@ -1028,6 +1049,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
offlineTime: {
type: "int64",
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: {}
},
FriendListResp: {
fields: {
list: {
rule: "repeated",
type: "FriendBase",
id: 1
},
heroObjId: {
type: "string",
id: 2
}
}
},
FriendRandlistReq: {
fields: {}
},
FriendRandlistResp: {
fields: {
list: {
rule: "repeated",
@ -1157,7 +1206,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
FriendBlackAddReq: {
FriendAddBlackReq: {
fields: {
friendId: {
type: "string",
@ -1165,7 +1214,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
FriendBlackAddResp: {
FriendAddBlackResp: {
fields: {
friendId: {
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: {
fields: {
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: {
fields: {
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: {
fields: {
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: {
fields: {
heroObjID: {
type: "string",
id: 1
},
useEnergy: {
type: "int32",
energy: {
rule: "repeated",
type: "EnergyData",
id: 2
},
useType: {
type: "int32",
id: 3
}
}
},
@ -1579,6 +1786,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
drawType: {
type: "int32",
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: {
fields: {
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: {
values: {
Null: 0,

View File

@ -2,24 +2,25 @@ syntax = "proto3";
option go_package = ".;pb";
enum ChatChannel {
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
}
message DBChat {
string id = 1; //id
ChatChannel channel = 2; //
string suid = 3; //id
int32 slv = 4; //
string ruid = 5; //id channel == Private
int32 channelId = 6; // Id
string unionId = 7; //id
string stag = 8; //id
string avatar = 9; //
string uname = 10; //
string content = 11; //
int64 ctime = 12; //
string id =1; //id
ChatChannel channel = 2; //
string suid =3; //id
int32 slv = 4; //
string ruid = 5; //id channel == Private
int32 channelId = 6; // Id
string unionId = 7; //id
string stag = 8; //id
string avatar = 9; //
string uname = 10; //
string content = 11; //
int64 ctime = 12; //
}

View File

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

View File

@ -2,23 +2,21 @@ syntax = "proto3";
option go_package = ".;pb";
enum CommentState {
Release = 0; //
Offline = 1; //
Release = 0; //
Offline = 1; //
}
//
message DBComment {
string id =1; //id
string heroid = 2; //id
string heroobjid = 3; //id
string uid =4; //id
string stage =5; //id
string avatar = 6; //
string uname = 7; //
CommentState state = 8; //
int64 ctime = 9; //
string content = 10; //
int32 starlist = 11; //
string id = 1; //@go_tags(`bson:"_id"`) ID
string heroid = 2; //id
string heroobjid = 3; //id
string uid = 4; //id
string stage = 5; //id
string avatar = 6; //
string uname = 7; //
CommentState state = 8; //
int64 ctime = 9; //
string content = 10; //
int32 starlist = 11; //
}

View File

@ -2,38 +2,47 @@ syntax = "proto3";
option go_package = ".;pb";
import "forum_db.proto";
import "hero_db.proto";
//
message ForumGetListReq {
string herocid = 1; //id
string herocid = 1; //id
}
//
message ForumGetListResp {
repeated DBComment comment = 1;
}
message ForumGetListResp { repeated DBComment comment = 1; }
//
message ForumReleaseCommentReq {
string avatar = 1; //
string uname = 2; //
string herocid = 3; //id
string herooid = 4; //id
string content = 5; //
string avatar = 1; //
string uname = 2; //
string herocid = 3; //id
string herooid = 4; //id
string content = 5; //
}
//
message ForumReleaseCommentResp {
DBComment comment = 1;
}
message ForumReleaseCommentResp { DBComment comment = 1; }
//
message ForumWatchHeroReq {
string uid = 1; //id
string stag = 2; //id
string herocId = 3; //cid
string herooId = 4; //id
string uid = 1; //id
string stag = 2; //id
string herocId = 3; //cid
string herooId = 4; //id
}
//
message ForumWatchHeroResp {
DBHero hero = 1;
message ForumWatchHeroResp { 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 applyIds = 3; //@go_tags(`bson:"applyIds"`) 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 NickName = 2; //
int32 level = 3; //
int32 avatar = 4; //
string avatar = 4; //
int64 strength = 5; //
int32 serverId = 6; //
int64 offlineTime = 7; //线 0线
bool isApplied = 8; //
bool isZaned = 9; //
bool isGetZaned = 10; //
}
//
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 {
@ -68,9 +78,9 @@ message FriendBlackListReq {}
message FriendBlackListResp { repeated FriendBase friends = 1; }
//
message FriendBlackAddReq { string friendId = 1; }
message FriendAddBlackReq { string friendId = 1; }
message FriendBlackAddResp {
message FriendAddBlackResp {
string friendId = 1;
string userId = 2;
}
@ -83,26 +93,28 @@ message FriendDelBlackResp {
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 FriendTotalResp {
string friendId = 1;
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

@ -9,7 +9,7 @@ message SkillData {
message DBHero {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2;
string heroID = 3; //@go_tags(`bson:"heroID"`) ID
string heroID = 3; //@go_tags(`bson:"heroID"`) ID
int32 star = 4; //
int32 lv = 5; //
int32 exp = 6; //
@ -17,37 +17,38 @@ message DBHero {
int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`)
repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 10; //
map<string, int32> addProperty = 11; //@go_tags(`bson:"addProperty"`)
int32 cardType = 12; //@go_tags(`bson:"cardType"`) ()
map<string, int32> addProperty =
11; //@go_tags(`bson:"addProperty"`)
int32 cardType =
12; //@go_tags(`bson:"cardType"`) ()
int32 curSkin = 13; //@go_tags(`bson:"curSkin"`) ID
repeated int32 skins = 14; // ID
bool block = 15; //
repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID
int32 resonateNum = 17; //@go_tags(`bson:"resonateNum"`)
int32 distributionResonate = 18; //@go_tags(`bson:"distributionResonate"`)
map<int32, int32> energy = 19; // @go_tags(`bson:"energy"`)[1,0]
int32 distributionResonate =
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 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id
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{ //
int32 h4 = 1; // 4
int32 h5 = 2; // 5
message Floor { //
int32 h4 = 1; // 4
int32 h5 = 2; // 5
}
//
message DBHeroRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID
Floor race0 = 3; //
Floor race1 = 4; // 1
Floor race2 = 5; // 2
Floor race3 = 6; // 3
Floor race4 = 7; // 4
int32 triggernum = 8; //
int32 activityid = 9; // id
int64 mtime = 10; //
string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 star4 = 3; // 4
int32 star5 = 4; // 5
int64 mtime = 5; //
int32 drawcount = 6; //
}

View File

@ -87,11 +87,14 @@ message HeroResonanceResetResp {
int32 energy = 2; //
}
message EnergyData{
int32 useEnergy = 1; // 使
string useType = 2; // 使
}
// 使
message HeroResonanceUseEnergyReq {
string heroObjID = 1; // ID
int32 useEnergy = 2; // 使
int32 useType = 3; // 使
repeated EnergyData energy = 2;
}
message HeroResonanceUseEnergyResp {
@ -142,7 +145,8 @@ message HeroGetSpecifiedResp {
//
message HeroDrawCardReq {
int32 drawType = 1; // drawCardCost表
int32 drawType = 1; // 0
int32 drawCount = 2;//
}
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: 'gm', subs: [] },
{ mainType: 'forum', subs: [] },
{ mainType: 'pagoda', subs: [] },
{ mainType: 'martialhall', subs: [] },
{ mainType: 'gourmet', subs: [] },
])
for (const v of Object.keys(proto)) {
for (const v1 of proto_models) {