上传代码

This commit is contained in:
liwei1dao 2022-10-13 13:48:48 +08:00
parent b70da778cf
commit ecc38d841e
39 changed files with 2310 additions and 582 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,9 +11,12 @@ enum BattleType {
//
enum PlayType {
mainline = 0; //线
pagoda = 1; //
moonfantasy = 2; //
moonfantasy = 0; //
mainline = 1; //线
pagoda = 2; //
viking = 3; //
rtask = 4; //
hunting = 5; //
}
//
@ -29,23 +32,38 @@ enum DBBattleComp {
bule = 2; //
}
message BattleRole {
int32 tid = 1; // id
string oid = 2; // id
int32 pos = 3; //
string heroID = 4; //@go_tags(`bson:"heroID"`) ID
int32 star = 5; //
int32 lv = 6; //
int32 captainSkill = 7; //@go_tags(`bson:"captainSkill"`)
int32 mainSuitSkill = 8; ///@go_tags(`bson:"mainSuitSkill"`)
int32 subSuitSkill = 9; ///@go_tags(`bson:"subSuitSkill"`)
repeated SkillData normalSkill = 10; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 11; //
}
//
message DBBattleFormt {
int32 leadpos = 1; //
repeated DBHero team = 2;
repeated BattleRole team = 2;
}
//
message DBBattleRecord {
string id = 1; //id
BattleType btype = 2; //
PlayType ptype = 3; //
string plevel = 4; //
BBattleState state = 5; //
string redCompId = 6; //id
repeated DBBattleFormt redflist = 7; //
string blueCompId = 8; //id
repeated DBBattleFormt buleflist = 9; //
repeated DBBattleComp roundresult = 10; //
DBBattleComp result = 11; //
string title = 2; //
BattleType btype = 3; //
PlayType ptype = 4; //
string plevel = 5; //
BBattleState state = 6; //
string redCompId = 7; //id
repeated DBBattleFormt redflist = 8; //
string blueCompId = 9; //id
repeated DBBattleFormt buleflist = 10; //
repeated DBBattleComp roundresult = 11; //
DBBattleComp result = 12; //
}

View File

@ -1,25 +1,35 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";
message LineUp {
string cid = 1; // id
int32 star = 2; //
int32 lv = 3; //
}
// pve ( 使 )
message BattlePVEReq {
PlayType ptype = 1; //
int32 leadpos = 2; //
repeated string teamids = 3; //
repeated int32 mformat = 4; //
string title = 2; //
int32 leadpos = 3; //
repeated string teamids = 4; //
repeated int32 mformat = 5; //
}
//
message BattleInfo {
string id = 1; //id
BattleType btype = 2; //
PlayType ptype = 3; //
string redCompId = 4; //id
repeated DBBattleFormt redflist = 5; //
string blueCompId = 6; //id
repeated DBBattleFormt buleflist = 7; //
string title = 2; //
BattleType btype = 3; //
PlayType ptype = 4; //
string redCompId = 5; //id
repeated DBBattleFormt redflist = 6; //
string blueCompId = 7; //id
repeated DBBattleFormt buleflist = 8; //
}
//
message BattleReport {}
message BattleReport {
BattleInfo info = 1;
int32 Costtime = 2; // ms
}

View File

@ -11,8 +11,12 @@ enum ChatChannel {
//
enum ChatType {
Text = 0; //
Moonfantasy = 1; //
Text = 0; //
Moonfantasy = 1; //
Share = 2; //
HeroShare = 3; //
EquipmentShare = 4; //
ItemShare = 5; //
}
message DBChat {
@ -32,4 +36,5 @@ message DBChat {
int64 appendInt = 14; //@go_tags(`bson:"appendInt"`)
string appendStr = 15; //@go_tags(`bson:"appendStr"`)
string appendBool = 16; //@go_tags(`bson:"appendBool"`)
bytes appendBytes = 17; //@go_tags(`bson:"appendInt"`)
}

View File

@ -3,51 +3,75 @@ option go_package = ".;pb";
import "chat_db.proto";
//
message ChatMessagePush{
DBChat chat = 1;
}
message ChatMessagePush { DBChat chat = 1; }
//
message ChatCrossChannelReq {
}
message ChatCrossChannelReq {}
//
message ChatCrossChannelResp {
int32 channelId = 1;
}
message ChatCrossChannelResp { int32 channelId = 1; }
//
message ChatChanageChannelReq {
int32 channelId = 1;
}
message ChatChanageChannelReq { int32 channelId = 1; }
//
message ChatChanageChannelResp {
int32 channelId = 1;
bool isSucc = 2;
int32 channelId = 1;
bool isSucc = 2;
}
//
message ChatGetListReq {
ChatChannel channel = 1; //
int32 channelId = 2; //id
ChatChannel channel = 1; //
int32 channelId = 2; //id
}
//
message ChatGetListResp {
repeated DBChat chats = 1;
message ChatGetListResp { repeated DBChat chats = 1; }
//
message ChatGetCrossListReq {
ChatChannel channel = 1; //
int32 channelId = 2; //id
}
//
message ChatGetCrossListResp { repeated DBChat chats = 1; }
//
message ChatSendReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
ChatChannel channel = 4; //
string targetId = 5; //id
string content = 6; //
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
ChatChannel channel = 4; //
string targetId = 5; //id
ChatType ctype = 6; //
string content = 7; //
int64 appendInt = 8; //@go_tags(`bson:"appendInt"`)
string appendStr = 9; //@go_tags(`bson:"appendStr"`)
string appendBool = 10; //@go_tags(`bson:"appendBool"`)
bytes appendBytes = 11; //@go_tags(`bson:"appendInt"`)
}
//
message ChatSendResp {
bool issucc = 1; //
bool issucc = 1; //
}
//
message ChatSendCrossReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
ChatChannel channel = 4; //
string targetId = 5; //id
ChatType ctype = 6; //
string content = 7; //
int64 appendInt = 8; //@go_tags(`bson:"appendInt"`)
string appendStr = 9; //@go_tags(`bson:"appendStr"`)
string appendBool = 10; //@go_tags(`bson:"appendBool"`)
bytes appendBytes = 11; //@go_tags(`bson:"appendInt"`)
}
//
message ChatSendCrossResp {
bool issucc = 1; //
}

View File

@ -65,6 +65,15 @@ message BroadCastMessageReq {
//
message AgentCloseeReq { string UserSessionId = 1; }
//
message NoticeUserLoginReq {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
}
//线
message NoticeUserCloseReq {
string Ip = 1;
@ -93,4 +102,10 @@ message UserAssets {
message TaskParam {
int32 first = 1; //
int32 second = 2; //
}
message RtaskParam {
int32 param1 = 1;
int32 param2 = 2;
int32 param3 = 3;
}

View File

@ -25,21 +25,24 @@ enum ErrorCode {
ResNoEnough = 102; //
ConfigurationException = 103; //
ConfigNoFound = 104; //
UserLogined = 105; //
// user
SecKeyInvalid = 1000; //
SecKey = 1001; //
BindUser = 1002; //
GoldNoEnough = 1003; //
DiamondNoEnough = 1004; //
RoleCreated = 1005; //
UserNickNameExist = 1006; //
VeriCodeNoValid = 1007; //
VeriCodeExpired = 1008; //
UserResetData = 1009; //
UserModiNameCount = 1010; //
UserNickNameEmpty = 1011; //
UserExpandNull = 1012; //
SecKeyInvalid = 1000; //
SecKey = 1001; //
BindUser = 1002; //
GoldNoEnough = 1003; //
DiamondNoEnough = 1004; //
RoleCreated = 1005; //
UserNickNameExist = 1006; //
VeriCodeNoValid = 1007; //
VeriCodeExpired = 1008; //
UserResetData = 1009; //
UserModiNameCount = 1010; //
UserNickNameEmpty = 1011; //
UserExpandNull = 1012; //
UserExpNoEnough = 1013; //
UserFriendNoEnough = 1014; //
// friend
FriendNotSelf = 1100; //
@ -58,6 +61,7 @@ enum ErrorCode {
FriendZanreceived = 1113; //
FriendZanSelf = 1114; //
FriendPointLimit = 1115; //线
FriendNoreceived = 1116; //
// item
ItemsNoEnough = 1200; //
@ -65,6 +69,7 @@ enum ErrorCode {
ItemsGridNumUpper = 1202; //
ItemsGirdAmountUpper = 1203; //
ItemsUseNotSupported = 1204; //使
ItemsUseNoCanSell = 1205; //
// hero
HeroNoExist = 1300; //
@ -97,6 +102,7 @@ enum ErrorCode {
EquipmentOnFoundEquipment = 1400; //
EquipmentLvlimitReached = 1401; //
EquipmentIsWorn = 1402; // 穿
EquipmentNoCanSell = 1403; //
// mainMainline
MainlineNotFindChapter = 1500; // 线
@ -134,14 +140,49 @@ enum ErrorCode {
MartialhallNotUnlocked = 2000; //
MartialhallInUse = 2001; //使
MartialhallUnlocked = 2002; //
MartialhallNoUnlocked = 2003; //
//
GourmetMoreOrderTime = 2101; //
GourmetSkillMaxLv = 2102; //
// rtask
RtaskFinished = 2201; //
RtaskUnFinished = 2202; //
RtaskNoRtask = 2203; //
RtaskRewarded = 2204; //
RtaskPreNoFinish = 2205; //
RtaskFinished = 2201; //
RtaskUnFinished = 2202; //
RtaskNoRtask = 2203; //
RtaskRewarded = 2204; //
RtaskPreNoFinish = 2205; //
RtaskCondiNoReach = 2206; //
RtaskNoLastOne = 2207; //
RtaskCondiNoFound = 2208; //
// viking
VikingLvErr = 2301; //
VikingBoosType = 2302; // BOSS
VikingBuyMaxCount = 2303; //
VikingMaxChallengeCount = 2304; //
// moonfantasy
MoonfantasyHasExpired = 2401; // boos
MoonfantasyJoinUp = 2402; // boos
MoonfantasyDareUp = 2403; // boos
MoonfantasyBattleNoEnd = 2404; // boos
MoonfantasyBattleNoWin = 2405; // boos
MoonfantasyNoJoin = 2406; // boos
MoonfantasyNotEnoughbattles = 2407; // boos
BattleNoFoundRecord = 2501; //
LinestoryTaskFinished = 2601; //
LinestorySubTaskFinished = 2602; //
LinestoryTaskDisabledEnter = 2603; //
LinestoryPreTaskNoFinished = 2604; //
// hunting
HuntingLvErr = 2701; //
HuntingBoosType = 2702; // BOSS
HuntingBuyMaxCount = 2703; //
HuntingMaxChallengeCount = 2704; //
// library
LibraryMaxLv = 2801; //
}

View File

@ -3,46 +3,53 @@ 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; //
string herocid = 1; //id
string cid = 2; //id
bool islike = 3; //
}
//
message ForumLikeResp {
string cid = 1; //id
bool islike = 2; //
bool issucc = 3; //
string cid = 1; //id
bool islike = 2; //
bool issucc = 3; //
}

View File

@ -9,4 +9,6 @@ message DBFriend {
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
int32 received = 8; //@go_tags(`bson:"received"`) 012
int64 updateTime = 9; //@go_tags(`bson:"updateTime"`)
}

View File

@ -7,20 +7,18 @@ message FriendBase {
int32 level = 3; //
string avatar = 4; //
int64 strength = 5; //
int32 serverId = 6; //
string serverId = 6; //
int64 offlineTime = 7; //线 0线
bool isApplied = 8; //
bool isZaned = 9; //
bool isGetZaned = 10; //
string heroObjId = 11; //ID
}
//
message FriendListReq {}
message FriendListResp {
repeated FriendBase list = 1;
string heroObjId = 2;
}
message FriendListResp { repeated FriendBase list = 1; }
// 线
message FriendRandlistReq {}
@ -117,4 +115,18 @@ message FriendZanreceiveResp { bool flag = 1; }
//
message FriendAssistheroReq { string heroObjId = 1; }
message FriendAssistheroResp { string heroObjId = 1; }
message FriendAssistheroResp {
string heroObjId = 1;
int32 received = 2; //012
}
//
message FriendAssistlistReq {}
message FriendAssistlistResp {
repeated FriendBase list = 1;
string heroObjId = 2;
}
//
message FriendGetrewardReq {}
message FriendGetrewardResp { int32 received = 1; }

View File

@ -6,6 +6,7 @@ import "comm.proto";
message Cooking{
int32 foodType = 1; //
int64 eTime = 2; //
int64 sTime = 3; //
}
//
@ -15,12 +16,12 @@ message OrderCook{
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
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
Cooking cookingFood = 3; //@go_tags(`bson:"cooking"`)
repeated OrderCook foods = 4; //@go_tags(`bson:"foods"`)
repeated UserAssets items = 5; //@go_tags(`bson:"items"`)
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

@ -6,10 +6,15 @@ message SkillData {
int32 skillLv = 2;
}
enum HeroType {
HeroTypeNil = 0;
HeroTypeKongFu = 1;
}
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,38 +22,39 @@ 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<string, int32> energy =
19; // @go_tags(`bson:"energy"`)[hppro:0,atkpro:0,defpro:20]
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> juexProperty = 25; //@go_tags(`bson:"juexProperty"`) //hp
map<string, int32> energyProperty = 24; //@go_tags(`bson:"energyProperty"`)
map<string, int32> juexProperty = 25; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 26; //@go_tags(`bson:"status"`) (1 )
int32 suite1Star = 27; //@go_tags(`bson:"suite1Star"`)
int32 suite2Star = 28; //@go_tags(`bson:"suite2Star"`)
int32 suite1Lv = 29; //@go_tags(`bson:"suite1Lv"`)
int32 suite2Lv = 30; //@go_tags(`bson:"suite2Lv"`)
}
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
int32 star4 = 3; // 4
int32 star5 = 4; // 5
int64 mtime = 5; //
int32 drawcount = 6; //
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

@ -111,10 +111,6 @@ message HeroAwakenResp {
DBHero hero = 1; //
}
//
message HeroChoukaReq { repeated string heroIds = 1; }
message HeroChoukaResp { repeated DBHero heroes = 1; }
//
message HeroPropertyPush {
@ -156,4 +152,13 @@ message HeroDrawCardResp {
//
message HeroChangePush{
repeated DBHero list = 1;
}
}
message HeroDrawCardFloorReq {
}
//
message HeroDrawCardFloorResp {
int32 star4 = 1;
int32 star5 = 2;
}

View File

@ -6,10 +6,10 @@ message DBHunting {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 challengeCount = 3; //@go_tags(`bson:"challengeCount"`)
map<int32,int32> boos = 4; // key boos value
map<int32,int32> boss = 4; // key boss value
int32 buyCount = 5;//@go_tags(`bson:"buyCount"`)
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

@ -1,29 +1,55 @@
syntax = "proto3";
option go_package = ".;pb";
import "hunting_db.proto";
import "battle_msg.proto";
message HuntingGetListReq {
message HuntingGetListReq {}
}
message HuntingGetListResp { DBHunting data = 1; }
message HuntingGetListResp {
DBHunting data = 1;
}
//
message HuntingChallengeReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
int32 bossType = 1; // boos
int32 difficulty = 2; //
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message HuntingChallengeResp { DBHunting data = 1; }
message HuntingChallengeResp {
BattleInfo info = 1;
int32 bossType = 2; // boos
int32 difficulty = 3; //
}
message HuntingChallengeOverReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
BattleReport report = 3; //
}
//
message HuntingChallengeOverResp {
DBHunting data = 1;
}
//
message HuntingBuyReq {
int32 count = 1; //
int32 count = 1;//
}
message HuntingBuyResp { DBHunting data = 1; }
message HuntingBuyResp {
DBHunting data = 1;
}
//
message HuntingRankListReq {}
message HuntingRankListReq{
int32 boosType = 1; // boss
bool friend = 2; //
}
message HuntingRankListResp {
repeated DBHuntingRank ranks = 1; // boss类型
message HuntingRankListResp{
repeated DBHuntingRank ranks = 1; // boss类型
}

View File

@ -0,0 +1,24 @@
syntax = "proto3";
option go_package = ".;pb";
message DBLibrary {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 fid = 3; // id id
map<string,int32> hero = 4; // key: hid value: favorlv
map<int32,int32> prize = 5; // key
int32 fetterlv = 6; //
int32 storyid = 7; // id
bool activation = 8; //
}
//
message DBHeroFetter{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
string heroid = 3; // id
repeated int32 history = 4; // ID
int32 favorlv = 5; //
int32 favorexp = 6; //
int32 stroyprize = 7; //
}

View File

@ -0,0 +1,49 @@
syntax = "proto3";
option go_package = ".;pb";
import "library_db.proto";
//
message LibraryGetListReq {
}
message LibraryGetListResp {
repeated DBLibrary data = 1;
}
//
message LibraryGetFetterListReq {
}
message LibraryGetFetterListResp {
repeated DBHeroFetter data = 1;
}
//
message LibraryGetRewardReq {
string objId = 1;
}
message LibraryGetRewardResp {
DBLibrary data = 1;
}
//
message LibraryGetStoryRewardReq {
string hid = 1; // ID
int32 history = 2; // id
int32 rightend = 3; // rightend
}
message LibraryGetStoryRewardResp {
DBLibrary data = 1;
}
//
message LibraryUseGiftReq{
string heroid = 1; // id
map<string,int32> items = 2; // key ID value
}
message LibraryUseGiftResp{
DBHeroFetter data = 1;
}

View File

@ -0,0 +1,15 @@
syntax = "proto3";
option go_package = ".;pb";
message TaskNode {
int32 status = 1; //@go_tags(`bson:"status"`) 0
// 1() 2 3
repeated int32 subtaskIds = 2; //@go_tags(`bson:"subtasks"`)
}
message DBLinestory {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 jqId = 3; //@go_tags(`bson:"jqId"`) ID
map<int32, TaskNode> tasks = 4; //@go_tags(`bson:"tasks"`)
}

View File

@ -0,0 +1,23 @@
syntax = "proto3";
option go_package = ".;pb";
//
message LinestoryStartReq {
int32 jqId = 1; //ID
}
message LinestoryStartResp {
int32 jqId = 1;
repeated int32 taskIds = 2; //ID
}
//
message LinestoryDotaskReq {
int32 taskId = 1; //ID
int32 subtaskId = 2; //ID
}
message LinestoryDotaskResp {
int32 taskId = 1; //ID
int32 subtaskId = 2; //ID
int32 resetTaskId = 3; //ID
}

View File

@ -1,12 +1,17 @@
syntax = "proto3";
option go_package = ".;pb";
enum AwaredType {
TypeNil = 0;
TypeAvailable = 1; //
TypeReceived = 2; //
}
message DBMainline {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 chapterId = 3; //@go_tags(`bson:"chapterId"`) ID
int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID
int32 awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
AwaredType awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
int32 intensity = 7; //
}

View File

@ -3,39 +3,49 @@ 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
int32 leadpos = 3; //
repeated string teamids = 4; //
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message MainlineChallengeResp { BattleInfo info = 1; }
message MainlineChallengeResp {
BattleInfo info = 1;
string chapterObj = 2; // id
uint32 mainlineId = 3; // ID
}
//
message MainlineChallengeOverReq {
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
BattleReport report = 3; //
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
BattleReport report = 3; //
}
message MainlineChallengeOverResp {
DBMainline data = 1; //
DBMainline data = 1; //
}
//
message MainlineNewChapterPush { DBMainline data = 1; }
message MainlineNewChapterPush{
DBMainline data = 1;
}

View File

@ -9,13 +9,14 @@ enum PillarState {
///
message DBPillar {
bool isunlock = 1; //
PillarState state = 2; //
string hero = 3; //
int64 start = 4; //
int64 end = 5; //
int64 lastbill = 6; //
int32 reward = 7; //
int32 index = 1; //
bool isunlock = 2; //
PillarState state = 3; //
string hero = 4; //
int64 start = 5; //
int64 end = 6; //
int64 lastbill = 7; //
int32 reward = 8; //
}
//

View File

@ -10,12 +10,12 @@ message MartialhallInfoResp { DBMartialhall info = 1; }
message MartialhallPracticeReq {
int32 pillar = 1; //
string hero = 2; //
int32 time = 3; //
}
///
message MartialhallPracticeResp {
int32 pillar = 1; //
string hero = 2; //
bool issucc = 3; //
bool issucc = 1; //
DBMartialhall info = 2;
}
///
@ -27,4 +27,17 @@ message MartialhallReceiveResp {}
message MartialhallUpgradeReq {}
///
message MartialhallUpgradeResp { DBMartialhall info = 1; }
message MartialhallUpgradeResp {
bool issucc = 1;
DBMartialhall info = 2;
}
///
message MartialhallUnLockReq {
int32 pillar = 1; //
}
///
message MartialhallUnLockResp {
bool issucc = 1;
DBMartialhall info = 2;
}

View File

@ -1,13 +1,31 @@
syntax = "proto3";
option go_package = ".;pb";
message DBMoonfantasy {
message UserInfo {
string uid = 1; //id
string name = 2; //
string avatar = 12; //
}
//
message DBMoonFantasy {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //id
string monster = 3; //id
string monster = 3; //id
int64 ctime = 4; //
int32 joinnum = 5; //
repeated UserInfo join = 5; //
int32 numup = 6; //
int32 unitmup = 7; //
map<string, int32> record = 8; //
}
//
message DBUserMFantasy {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //id
repeated string mfantasys = 3; //
int32 triggerNum = 4; //@go_tags(`bson:"triggerNum"`)
int32 battleNum = 5; //@go_tags(`bson:"battleNum"`)
int32 buyNum = 6; //@go_tags(`bson:"buyNum"`)
int64 lastTrigger = 7; //@go_tags(`bson:"lastTrigger"`)
}

View File

@ -1,54 +1,70 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "moonfantasy_db.proto";
import "battle_msg.proto";
///
message MoonfantasyTriggerReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
//
message MoonfantasyGetListReq {}
//
message MoonfantasyGetListResp {
int32 battleNum = 1;
repeated DBMoonFantasy dfantasys = 2; //
}
// ///
// message MoonfantasyTriggerReq {
// string avatar = 1; //
// string uname = 2; //
// int32 ulv = 3; //
// }
///
message MoonfantasyTriggerResp {
message MoonfantasyTriggerPush {
bool issucc = 1; //
string mid = 2; //id //
string monster = 3; //id
}
///
///
message MoonfantasyAskReq {
string uid = 1; //id
string mid = 2; //id
string mid = 1; //id
}
message MoonfantasyAskResp {
ErrorCode code = 1; //
ErrorCode code = 1; //
DBMoonFantasy info = 2; //
}
///
message MoonfantasyBattleReq {
string uid = 1; //id
string mid = 2; //id
int32 leadpos = 3; //
repeated string teamids = 4; //
string mid = 1; //id
int32 leadpos = 2; //
repeated string teamids = 3; //
}
message MoonfantasyBattleResp {
ErrorCode code = 1; //
string monster = 2; //id
string mid = 2; //id
BattleInfo info = 3;
}
///
message MoonfantasyReceiveReq {
string bid = 2; //id id来领取奖励
string monster = 3; //id
string mid = 3; //id
BattleReport report = 4; //
}
///
message MoonfantasyReceiveResp {
bool issucc = 1; //
}
///
message MoonfantasyBuyReq { int32 BuyNum = 1; }
///
message MoonfantasyBuyResp {
bool issucc = 1; //
int32 BattleNum = 2; //
}

View File

@ -1,9 +1,34 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_msg.proto";
//
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; //
int32 type = 5;
}
//
message DBSeasonPagoda {
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; //
int32 type = 5;
}
//
message DBPagodaRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`)
int32 type = 4; //
string nickname = 5;//
string icon = 6; //
int32 lv = 7; //
int32 leadpos = 8; //
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
}

View File

@ -1,22 +1,65 @@
syntax = "proto3";
option go_package = ".;pb";
import "pagoda_db.proto";
import "battle_msg.proto";
//
message PagodaGetListReq {}
message PagodaGetListReq {
}
//
message PagodaGetListResp { DBPagoda data = 1; }
message PagodaGetListResp {
DBPagoda data = 1;
}
//
message PagodaGetRewardReq {
int32 id = 1; // task_reward id
int32 id = 1; // task_reward id
}
message PagodaGetRewardResp { DBPagoda data = 1; }
message PagodaGetRewardResp {
DBPagoda data = 1;
}
//
message PagodaChallengeReq {
int32 levelID = 1; // ID
int32 levelID = 1; //
int32 PagodaType = 2; //
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message PagodaChallengeResp { DBPagoda data = 1; }
message PagodaChallengeResp {
BattleInfo info = 1;
int32 levelID = 2; //
int32 PagodaType = 3; //
}
//
message PagodaChallengeOverReq {
int32 levelID = 1; //
int32 PagodaType = 2; //
BattleReport report = 3; //
}
message PagodaChallengeOverResp {
DBPagoda data = 1;
}
//
message PagodaRankListReq{
int32 floorId = 1; // 0
bool friend = 2; // true
}
message PagodaRankListResp{
repeated DBPagodaRecord ranks = 1;
}
//
message PagodaQueryRecordReq{
}
message PagodaQueryRecordResp{
DBPagodaRecord data = 1;
}

Binary file not shown.

View File

@ -0,0 +1,26 @@
syntax = "proto3";
option go_package = ".;pb";
message frtaskIds { repeated int32 rtaskIds = 1; }
//
message DBRtask {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, frtaskIds> frtaskIds =
3; //@go_tags(`bson:"frtaskIds"`) Id
int32 nextRtaskId = 4; //@go_tags(`bson:"nextRtaskId"`) Id
bool isReward = 5; //@go_tags(`bson:"isReward"`)
}
message rtaskData {
map<int32, int32> data = 1; //@go_tags(`bson:"data"`)
int32 rtype = 2; //@go_tags(`bson:"rtype"`)
int64 timestamp = 3; //@go_tasg(`bson:"timestamp"`)
}
//
message DBRtaskRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, rtaskData> vals = 3; //@go_tags(`bson:"vals"`)
}

View File

@ -0,0 +1,96 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_msg.proto";
import "rtask_db.proto";
//
message RtaskApplyReq {
int32 rtaskId = 1; //ID
int32 rtaskSubId = 2; //线ID
}
message RtaskApplyResp { int32 rtaskId = 1; }
//
message RtasklistReq {
int32 groupId = 1; //ID
}
message RtasklistResp {
repeated int32 rtaskIds = 1;
int32 groupId = 2;
}
//
message RtaskChooseReq {
int32 rtaskId = 1; //ID
int32 chooseId = 2; //ID
int32 rtaskSubId = 3; //线ID
}
message RtaskChooseResp {
int32 rtaskId = 1; //ID
int32 chooseId = 2; //ID
int32 rtaskSubId = 3; //线ID
}
//
message RtaskFinishPush { int32 rtaskId = 1; }
//
message RtaskFinishIdsPush {
repeated int32 rtaskId = 1;
int32 groupId = 2;
}
//
message RtaskGetRewardReq {
int32 rtaskId = 1;
int32 rtaskSubId = 2; //线ID
}
message RtaskGetRewardResp {
int32 rtaskId = 1;
int32 rtaskSubId = 2; //线ID
}
//
message RtaskBattleStartReq {
int32 battleConfId = 1; //ID
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message RtaskBattleStartResp {
BattleInfo info = 1; //
}
//
message RtaskBattleFinishReq {
int32 rtaskId = 1; //ID
int32 rtaskSubId = 2; //线ID
int32 chooseId = 3; //ID
}
message RtaskBattleFinishResp {
int32 rtaskId = 1; //ID
int32 rtaskSubId = 2; //线ID
}
//
message RtaskGetrecordReq {}
message RtaskGetrecordResp { DBRtaskRecord record = 1; }
// 使
message RtaskTestReq {
int32 rtaskType = 1; //
repeated int32 params = 2; //
int32 condiId = 3; //ID
int32 groupId = 4; //
string rtaskIds = 5; //ids
}
message RtaskTestResp {
bool flag = 1;
repeated int32 rtaskIds = 2;
}

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "shop/shop_db.proto";
import "shop_db.proto";
import "comm.proto";

View File

@ -6,6 +6,8 @@ import "comm.proto";
message Clang{
int32 deskType = 1; //
int64 eTime = 2;
int64 sTime = 3; //
}
//
@ -24,6 +26,6 @@ message DBSmithy {
int32 stoveLv = 7; //@go_tags(`bson:"stoveLv"`)
int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`)
int64 ctime = 9; //
int32 deskFloor = 10;//@go_tags(`bson:"deskFloor"`)
map<int32,int32> deskFloor = 10;//@go_tags(`bson:"deskFloor"`)
int32 stoveFloor = 11;//@go_tags(`bson:"stoveFloor"`)
}

View File

@ -29,10 +29,27 @@ message SmithyGetRewardResp{
}
//
message SmithySkillLvReq{
int32 skillType = 1; // id
message SmithyDeskSkillLvReq{
int32 deskType = 1; //
}
message SmithySkillLvResp{
message SmithyDeskSkillLvResp{
DBSmithy data = 1;
}
//
message SmithyStoveSkillLvReq{
}
message SmithyStoveSkillLvResp{
DBSmithy data = 1;
}
message SmithyGetRandUserReq{
}
message SmithyGetRandUserResp{
repeated string user = 1;
}

View File

@ -0,0 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
message SysFuncListReq {}
message SysFuncListResp {
repeated string funcIds = 1; //ID
}

View File

@ -2,11 +2,12 @@ syntax = "proto3";
option go_package = ".;pb";
message CacheUser {
string uid = 1; //@go_tags(`json:"uid"`) id
string SessionId = 2; //@go_tags(`json:"sessionId"`) id
string ServiceTag = 3; //@go_tags(`json:"serviceTag"`) id
string GatewayServiceId = 4; //@go_tags(`json:"gatewayServiceId"`) id
string ip = 5; //@go_tags(`json:"ip"`) ip
string uid = 1; //@go_tags(`json:"uid"`) id
string SessionId = 2; //@go_tags(`json:"sessionId"`) id
string ServiceTag = 3; //@go_tags(`json:"serviceTag"`) id
string GatewayServiceId =
4; //@go_tags(`json:"gatewayServiceId"`) id
string ip = 5; //@go_tags(`json:"ip"`) ip
}
message DBUser {
@ -15,20 +16,22 @@ message DBUser {
string uuid = 3; //@go_tags(`bson:"uuid"`) uuid
string binduid = 4; //@go_tags(`bson:"binduid"`)
string name = 5; //@go_tags(`bson:"name"`)
string sid = 6; //@go_tags(`bson:"sid"`) id
string sid = 6; //@go_tags(`bson:"sid"`) id
string createip = 7; //@go_tags(`bson:"createip"`) ip
string lastloginip = 8; //@go_tags(`bson:"lastloginip"`) ip
int64 ctime = 9; //@go_tags(`bson:"ctime"`)
int64 logintime = 10; //@go_tags(`bson:"logintime"`)
int32 friendPoint = 11; //@go_tags(`bson:"friendPoint"`)
string avatar = 12; //@go_tags(`bson:"avatar"`)
int32 gold = 13; //@go_tags(`bson:"gold"`)
int32 exp = 14; //@go_tags(`bson:"exp"`)
bool created = 15; //@go_tags(`bson:"created"`)
int32 lv = 16; //@go_tags(`bson:"lv"`)
int32 vip = 17; //@go_tags(`bson:"vip"`) vip
int32 diamond = 18; //@go_tags(`bson:"diamond"`)
int32 title = 19; //@go_tags(`bson:"title"`)
string avatar = 12; //@go_tags(`bson:"avatar"`)
int64 gold = 13; //@go_tags(`bson:"gold"`)
int64 exp = 14; //@go_tags(`bson:"exp"`)
bool created = 15; //@go_tags(`bson:"created"`)
int32 lv = 16; //@go_tags(`bson:"lv"`)
int32 vip = 17; //@go_tags(`bson:"vip"`) vip
int64 diamond = 18; //@go_tags(`bson:"diamond"`)
int32 title = 19; //@go_tags(`bson:"title"`)
int64 offlinetime = 11; //@go_tags(`bson:"offlinetime"`) 线
int32 figure = 20; //@go_tags(`bson:"figure"`)
int32 bgp = 21; //@go_tags(`bson:"bgp"`)
}
message DBUserSetting {

View File

@ -2,8 +2,8 @@ syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "user_db.proto";
import "comm.proto";
import "userexpand.proto";
import "pagoda_db.proto";
//
message UserLoginReq {
@ -17,6 +17,14 @@ message UserLoginResp {
int64 timeNow = 3; //
}
//
message UserInfoReq {}
message UserInfoResp {
DBUser data = 1;
DBUserExpand ex = 2; //
}
//
message UserLogoutReq {}
@ -42,22 +50,12 @@ message UserCreateReq {
message UserCreateResp { bool IsSucc = 1; }
//
message UserAddResReq {
UserAssets res = 1; //
}
message UserAddResResp {
UserAssets res = 1; //
}
//
message UserResChangePush {
int32 gold = 1; //@go_tags(`bson:"gold"`)
int32 exp = 2; //@go_tags(`bson:"exp"`)
int32 lv = 3; //@go_tags(`bson:"lv"`)
int32 vip = 4; //@go_tags(`bson:"vip"`) vip
int32 diamond = 5; //@go_tags(`bson:"diamond"`)
message UserResChangedPush {
int64 gold = 1; //@go_tags(`bson:"gold"`)
int64 exp = 2; //@go_tags(`bson:"exp"`)
int64 diamond = 5; //@go_tags(`bson:"diamond"`)
int32 friend = 6; //@go_tags(`bson:"frined`)
}
//
@ -90,6 +88,35 @@ message UserModifynameReq {
message UserModifynameResp {
string uid = 1;
uint32 count = 2; //
string name = 3;
}
//
message UserModifyavatarReq {
string avatarId = 1; //ID
}
message UserModifyavatarResp {
string uid = 1;
string avatarId = 2;
}
//
message UserModifybgpReq {
int32 bgpId = 1; //ID
}
message UserModifybgpResp {
string uid = 1;
int32 bgpId = 2; //ID
}
//
message UserModifyfigureReq { int32 figureId = 1; }
message UserModifyfigureResp {
string uid = 1;
int32 figureId = 2;
}
//
@ -97,30 +124,21 @@ message UserGetTujianReq {}
message UserGetTujianResp { repeated string heroids = 1; }
//
message UserChangedPush {
message UserLvChangedPush {
string uid = 1;
int32 exp = 2;
int64 exp = 2;
int32 lv = 3;
}
//
message UserFigureReq {
int32 preinstall = 1; // 1-5
int32 action = 2; // 1-5 0
Hair hair = 3; // 1
Eyes eyes = 4; // 2
Mouth mouth = 5; // 3
Body body = 6; // 4
Complexion complexion = 7; // 5
}
message UserFigureResp {
string uid = 1;
int32 action = 2; //
Figure figure = 3;
}
//
message UserModifysignReq { string sign = 1; }
message UserModifysignResp { string uid = 1; }
message UserModifysignResp { string uid = 1; }
//
message UserBattlerecordReq {}
message UserBattlerecordResp {
string uid = 1;
DBPagodaRecord pagodaRecord = 2; //
}

View File

@ -1,56 +1,25 @@
syntax = "proto3";
option go_package = ".;pb";
//
message Hair {
int32 resId = 1; //ID
string color = 2; //
}
//
message Eyes {
int32 resId = 1; //ID
string color = 2; //
}
//
message Mouth {
string resId = 1; //ID
}
//
message Body {
int32 high = 1; //
int32 shape = 2; //
}
//
message Complexion {
string color = 1; //
}
//
message Figure {
Hair hair = 1;
Eyes eyes = 2;
Mouth mouth = 3;
Body body = 4;
Complexion complexion = 5;
}
//
message DBUserExpand {
string id = 1; //id
string uid = 2; //id
int64 lastreadnotiftime = 3; //
int64 lastInitdataTime = 4; //
uint32 initdataCount = 5; //
int32 chatchannel = 6; //
int32 modifynameCount = 7; //
map<string, bool> tujian = 8; //
int32 curFigure = 9; //
map<int32, Figure> preinstall = 10; //
int32 activeday = 11; //
int32 activeweek = 12; //
string sign = 13; //
string id = 1; //id
string uid = 2; //id
int64 lastreadnotiftime = 3; //
int64 lastInitdataTime = 4; //
uint32 initdataCount = 5; //
int32 chatchannel = 6; //
int32 modifynameCount = 7; //
map<string, int32> tujian = 8; //
int32 activeday = 11; //
int32 activeweek = 12; //
string sign = 13; //
int32 friendPoint = 14; //@go_tags(`bson:"friendPoint"`)
int32 friendPointID = 15; //@go_tags(`bson:"friendPointID"`)
int32 friendPointOD = 16; //@go_tags(`bson:"friendPointOD"`)
int32 loginAddCount = 19; //@go_tasgs(`bson:"loginAddCount"`)
int32 loginContinueCount =
20; //@go_tasgs(`bson:"loginContinueCount"`)
bool completePagoda = 21; //@go_tags(`bson:"completePagoda"`)
int32 rtaskId = 22; //@go_tags(`bson:"rtaskId"`) ID
}

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_msg.proto";
//
message DBViking {
string id = 1; //@go_tags(`bson:"_id"`) ID
@ -12,13 +12,6 @@ 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

View File

@ -14,7 +14,11 @@ message VikingChallengeReq {
repeated string teamids = 4; //
}
message VikingChallengeResp { BattleInfo info = 1; }
message VikingChallengeResp {
BattleInfo info = 1;
int32 bossType = 2; // boos
int32 difficulty = 3; //
}
message VikingChallengeOverReq {
int32 bossType = 1; // boos