diff --git a/pb.bat b/pb.bat index cece5bb..c82ca6c 100644 --- a/pb.bat +++ b/pb.bat @@ -4,7 +4,7 @@ set PROJECT_ROOT=.\ set PROJECT_ROOT=. -set SRC=%PROJECT_ROOT%\src\pb\proto +set SRC=%PROJECT_ROOT%\src\pb\temop set TAR=%PROJECT_ROOT%\src\pb\js @REM protoc --proto_path=%SRC% --js_out=import_style=commonjs,binary:%TAR%\. %SRC%\*.proto diff --git a/src/pb/proto.js b/src/pb/proto.js index a1d2c6a..88f4bef 100644 --- a/src/pb/proto.js +++ b/src/pb/proto.js @@ -8,13 +8,563 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr go_package: ".;pb" }) .addJSON({ + DBAcademy: { + fields: { + uid: { + type: "string", + id: 1 + }, + level: { + keyType: "int32", + type: "bool", + id: 2 + }, + hero: { + keyType: "string", + type: "bool", + id: 3 + } + } + }, + AcademyInfoReq: { + fields: {} + }, + AcademyInfoResp: { + fields: { + info: { + type: "DBAcademy", + id: 1 + } + } + }, + AcademyChallengeReq: { + fields: { + level: { + type: "int32", + id: 1 + } + } + }, + AcademyChallengeResp: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + level: { + type: "int32", + id: 2 + }, + info: { + type: "BattleInfo", + id: 3 + } + } + }, + AcademyReceiveReq: { + fields: { + level: { + type: "int32", + id: 1 + }, + group: { + type: "int32", + id: 2 + }, + report: { + type: "BattleReport", + id: 3 + } + } + }, + AcademyReceiveResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + AcademyTeachingReq: { + fields: { + heroId: { + type: "string", + id: 1 + } + } + }, + AcademyTeachingResp: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + heroId: { + type: "string", + id: 2 + }, + info: { + type: "BattleInfo", + id: 3 + } + } + }, + AcademyTeachingReceiveReq: { + fields: { + heroId: { + type: "string", + id: 1 + }, + report: { + type: "BattleReport", + id: 2 + } + } + }, + AcademyTeachingReceiveResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + LineUp: { + fields: { + cid: { + type: "string", + id: 1 + }, + star: { + type: "int32", + id: 2 + }, + lv: { + type: "int32", + id: 3 + } + } + }, + BattleFormation: { + fields: { + leadpos: { + type: "int32", + id: 1 + }, + format: { + rule: "repeated", + type: "string", + id: 2 + }, + friendformat: { + rule: "repeated", + type: "string", + id: 3 + } + } + }, + BattleEVEReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + title: { + type: "string", + id: 2 + }, + format: { + type: "BattleFormation", + id: 3 + }, + sysformat: { + rule: "repeated", + type: "int32", + id: 4 + }, + backupformat: { + rule: "repeated", + type: "int32", + id: 5 + }, + buleformat: { + rule: "repeated", + type: "int32", + id: 6 + } + } + }, + BattlePVEReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + title: { + type: "string", + id: 2 + }, + format: { + type: "BattleFormation", + id: 4 + }, + mformat: { + rule: "repeated", + type: "int32", + id: 5 + } + } + }, + PVPFormation: { + fields: { + uid: { + type: "string", + id: 1 + }, + leadpos: { + type: "int32", + id: 2 + }, + format: { + rule: "repeated", + type: "DBHero", + id: 3 + } + } + }, + BattlePVPReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + title: { + type: "string", + id: 2 + }, + redformat: { + type: "PVPFormation", + id: 4 + }, + buleformat: { + type: "PVPFormation", + id: 5 + } + } + }, + BattleRTPVPReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + title: { + type: "string", + id: 2 + }, + redCompId: { + type: "string", + id: 6 + }, + redformat: { + rule: "repeated", + type: "BattleFormation", + id: 7 + }, + blueCompId: { + type: "string", + id: 8 + }, + bulefformat: { + rule: "repeated", + type: "BattleFormation", + id: 9 + } + } + }, + BattlePVBReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + title: { + type: "string", + id: 2 + }, + format: { + rule: "repeated", + type: "BattleFormation", + id: 4 + }, + mformat: { + rule: "repeated", + type: "int32", + id: 5 + } + } + }, + BattleInfo: { + fields: { + id: { + type: "string", + id: 1 + }, + title: { + type: "string", + id: 2 + }, + scene: { + type: "string", + id: 3 + }, + btype: { + type: "BattleType", + id: 4 + }, + ptype: { + type: "PlayType", + id: 5 + }, + redCompId: { + type: "string", + id: 6 + }, + redflist: { + rule: "repeated", + type: "DBBattleFormt", + id: 7 + }, + blueCompId: { + type: "string", + id: 8 + }, + buleflist: { + rule: "repeated", + type: "DBBattleFormt", + id: 9 + }, + tasks: { + rule: "repeated", + type: "int32", + id: 10 + } + } + }, + BattleCmd: { + fields: { + cmdtype: { + type: "string", + id: 1 + }, + index: { + type: "uint32", + id: 2 + }, + value: { + type: "bytes", + id: 3 + } + } + }, + BattleReport: { + fields: { + info: { + type: "BattleInfo", + id: 1 + }, + Costtime: { + type: "int32", + id: 2 + }, + incmd: { + rule: "repeated", + type: "BattleCmd", + id: 3 + }, + outcmd: { + rule: "repeated", + type: "BattleCmd", + id: 4 + }, + completetask: { + rule: "repeated", + type: "int32", + id: 5 + }, + death: { + type: "int32", + id: 6 + }, + round: { + type: "int32", + id: 7 + }, + harm: { + type: "int32", + id: 8 + } + } + }, + BattleRpcMessage: { + fields: { + rid: { + type: "uint64", + id: 1 + }, + method: { + type: "string", + id: 2 + }, + data: { + type: "google.protobuf.Any", + id: 3 + } + } + }, + BattleCheckResults: { + fields: { + ischeck: { + type: "bool", + id: 1 + } + } + }, + BattleGetInfoReq: { + fields: { + battleid: { + type: "string", + id: 1 + } + } + }, + BattleGetInfoResp: { + fields: { + battleid: { + type: "string", + id: 1 + }, + info: { + type: "BattleStateInfo", + id: 2 + } + } + }, + BattleCreateServerReq: { + fields: { + info: { + type: "BattleInfo", + id: 1 + } + } + }, + BattleCreateServerResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + BattleInCmdReq: { + fields: { + battleid: { + type: "string", + id: 1 + }, + side: { + type: "int32", + id: 2 + }, + "in": { + type: "BattleCmd", + id: 3 + } + } + }, + BattleInCmdResp: { + fields: { + battleid: { + type: "string", + id: 1 + }, + "in": { + type: "BattleCmd", + id: 2 + }, + issucc: { + type: "bool", + id: 3 + } + } + }, + BattleOutCmdPush: { + fields: { + battleid: { + type: "string", + id: 1 + }, + cmd: { + rule: "repeated", + type: "BattleCmd", + id: 2 + } + } + }, + BattleFinishPush: { + fields: { + battleid: { + type: "string", + id: 1 + } + } + }, + BattleConcedeReq: { + fields: { + battleid: { + type: "string", + id: 1 + }, + side: { + type: "int32", + id: 2 + } + } + }, + BattleConcedeResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + BattleStateInfo: { + fields: { + info: { + type: "BattleInfo", + id: 1 + }, + outCmds: { + rule: "repeated", + type: "BattleCmd", + id: 2 + }, + inputCmds: { + rule: "repeated", + type: "BattleCmd", + id: 3 + } + } + }, BattleType: { values: { nil: 0, pve: 1, pvp: 2, pvb: 3, - eve: 4 + eve: 4, + rtpvp: 5 } }, PlayType: { @@ -28,7 +578,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr moonfantasy: 6, arena: 7, academy: 8, - heroteaching: 9 + heroteaching: 9, + combat: 10, + enchant: 11, + sociaty: 12, + friendsmeet: 13 } }, BBattleState: { @@ -100,6 +654,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr ishelp: { type: "bool", id: 13 + }, + isboos: { + type: "int32", + id: 14 + }, + monsterid: { + type: "int32", + id: 15 } } }, @@ -113,6 +675,16 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr rule: "repeated", type: "BattleRole", id: 2 + }, + systeam: { + rule: "repeated", + type: "BattleRole", + id: 3 + }, + backupteam: { + rule: "repeated", + type: "BattleRole", + id: 4 } } }, @@ -168,6 +740,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr result: { type: "DBBattleComp", id: 12 + }, + tasks: { + rule: "repeated", + type: "int32", + id: 13 } } }, @@ -391,6 +968,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr Crit: 4 } }, + SkillData: { + fields: { + skillID: { + type: "int32", + id: 1 + }, + skillLv: { + type: "int32", + id: 2 + } + } + }, UserAssets: { fields: { A: { @@ -407,6 +996,26 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + UserAtno: { + fields: { + A: { + type: "string", + id: 1 + }, + T: { + type: "string", + id: 2 + }, + N: { + type: "int32", + id: 3 + }, + O: { + type: "string", + id: 4 + } + } + }, TaskParam: { fields: { first: { @@ -435,6 +1044,158 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + UIdReq: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + NameReq: { + fields: { + name: { + type: "string", + id: 1 + } + } + }, + EmptyReq: { + fields: {} + }, + EmptyResp: { + fields: {} + }, + RPCGeneralReqA1: { + fields: { + param1: { + type: "string", + id: 1 + } + } + }, + RPCGeneralReqA2: { + fields: { + param1: { + type: "string", + id: 1 + }, + param2: { + type: "string", + id: 2 + } + } + }, + RPCGeneralReqA3: { + fields: { + param1: { + type: "string", + id: 1 + }, + param2: { + type: "string", + id: 2 + }, + param3: { + type: "string", + id: 3 + } + } + }, + RPCGeneralReqA4: { + fields: { + param1: { + type: "string", + id: 1 + }, + param2: { + type: "string", + id: 2 + }, + param3: { + type: "string", + id: 3 + }, + param4: { + type: "string", + id: 4 + } + } + }, + RPCRTaskReq: { + fields: { + uid: { + type: "string", + id: 1 + }, + taskType: { + type: "int32", + id: 2 + }, + param: { + rule: "repeated", + type: "int32", + id: 3 + } + } + }, + ServiceDBInfo: { + fields: { + serverid: { + type: "string", + id: 1 + }, + serverName: { + type: "string", + id: 2 + }, + owner: { + type: "string", + id: 3 + }, + cross: { + type: "string", + id: 4 + }, + crossId: { + type: "string", + id: 5 + }, + singleserver: { + type: "string", + id: 6 + }, + opentime: { + type: "int64", + id: 7 + }, + redisIsCluster: { + type: "bool", + id: 8 + }, + redisAddr: { + rule: "repeated", + type: "string", + id: 9 + }, + redisPassword: { + type: "string", + id: 10 + }, + redisDb: { + type: "int32", + id: 11 + }, + MongodbUrl: { + type: "string", + id: 12 + }, + mongodbDatabase: { + type: "string", + id: 13 + } + } + }, ErrorCode: { values: { Success: 0, @@ -461,6 +1222,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr ConfigurationException: 103, ConfigNoFound: 104, UserLogined: 105, + NoOpened: 106, SecKeyInvalid: 1000, SecKey: 1001, BindUser: 1002, @@ -476,6 +1238,13 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr UserExpandNull: 1012, UserExpNoEnough: 1013, UserFriendNoEnough: 1014, + UserSociatyCoinNoEnough: 1015, + UserArenaCoinNoEnough: 1016, + UserVitNoEnough: 1017, + UserVitLimit: 1018, + UserMoongoldNoEnough: 1019, + UserOffline: 1020, + UserNofound: 1021, FriendNotSelf: 1100, FriendSelfMax: 1101, FriendTargetMax: 1102, @@ -493,12 +1262,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr FriendZanSelf: 1114, FriendPointLimit: 1115, FriendNoreceived: 1116, + FriendQiecuoTimeout: 1117, + FriendQiecuoRequested: 1118, + FriendQiecuoNoRequest: 1119, + FriendQiecuoing: 1120, + FriendQiecuoTargetPk: 1121, ItemsNoEnough: 1200, ItemsNoFoundGird: 1201, ItemsGridNumUpper: 1202, ItemsGirdAmountUpper: 1203, ItemsUseNotSupported: 1204, ItemsUseNoCanSell: 1205, + ItemsBuyPsUpperLimit: 1206, HeroNoExist: 1300, HeroNoEnough: 1301, HeroMaxLv: 1302, @@ -524,6 +1299,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr DrawCardTypeNotFound: 1322, HeroMaxSkillLv: 1323, HeroAlreadyKongFuStatus: 1324, + HeroLvNoEnough: 1325, EquipmentOnFoundEquipment: 1400, EquipmentLvlimitReached: 1401, EquipmentIsWorn: 1402, @@ -534,6 +1310,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr MainlinePreNotFound: 1503, MainlineRepeatReward: 1504, MainlineCompleteReward: 1505, + MainlineNoEnoughStar: 1506, TaskInit: 1600, TaskReset: 1601, TaskHandle: 1602, @@ -580,14 +1357,108 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr MoonfantasyNotEnoughbattles: 2407, BattleNoFoundRecord: 2501, LinestoryTaskFinished: 2601, - LinestorySubTaskFinished: 2602, + LinestoryNoReceive: 2602, LinestoryTaskDisabledEnter: 2603, - LinestoryPreTaskNoFinished: 2604, + LinestoryChapterNoOpen: 2604, + LinestoryPreNoComplete: 2605, HuntingLvErr: 2701, HuntingBoosType: 2702, HuntingBuyMaxCount: 2703, HuntingMaxChallengeCount: 2704, - LibraryMaxLv: 2801 + HuntingNoChallengeCount: 2705, + EnchantLvErr: 2711, + EnchantBoosType: 2712, + EnchantBuyMaxCount: 2713, + EnchantMaxChallengeCount: 2714, + EnchantNoChallengeCount: 2715, + LibraryMaxLv: 2801, + LibraryNoData: 2802, + LibraryActivation: 2803, + LibraryReward: 2804, + LibraryLvReward: 2805, + LibraryFetterTaskNoFound: 2806, + LibraryPreTaskNoFinished: 2807, + BattleValidationFailed: 2901, + BattleNoWin: 2902, + BattleCreateFailed: 2903, + BattleInCmdFailed: 2904, + BattleUserOff: 2905, + SociatyNoFound: 3000, + SociatyAdded: 3001, + SociatyDiamondNoEnough: 3002, + SociatyNoMember: 3003, + SociatyNoRight: 3004, + SociatyNoAdded: 3005, + SociatyDismiss: 3006, + SociatyQuit: 3007, + SociatyAgree: 3008, + SociatyRefuse: 3009, + SociatyLogParams: 30010, + SociatyMasterNoDiss: 30011, + SociatySettingJob: 30012, + SociatySetting: 30013, + SociatyNoAccuse: 30014, + SociatySign: 30015, + SociatySigned: 30016, + SociatyCDLimit: 30017, + SociatyApplyMax: 30018, + SociatySelfSetting: 30019, + SociatyMemberCountLimit: 30020, + SociatyRewardReceived: 30021, + SociatyRewardReceive: 30022, + SociatyResource: 30023, + SociatyBelongTo: 30025, + SociatyApplied: 30026, + SociatyAppyLvNoEnough: 30027, + SociatyTaskValidation: 30028, + SociatyActivityNoEnough: 30029, + SociatyAcitvityReceive: 30030, + SociatyDismissed: 30031, + SociatyNameExist: 30032, + SociatyQuitNoAllowed: 30033, + SociatyNoMaster: 30034, + SociatyNoFormation: 30035, + SociatyTicketsNoEnough: 30036, + SociatySportsNoinit: 30037, + SociatySportsEnd: 30038, + SociatyTeamUnlock: 30039, + SociatyTaskNoFound: 30040, + SociatyTaskNoFinished: 30041, + SociatyTaskReceived: 30042, + ArenaTicketBuyUp: 3101, + ArenaTicketNotEnough: 3102, + ArenaTicketNpcInCd: 3103, + TalentRepeatLearn: 3201, + TalentErrData: 3202, + TalentUnLockerBefore: 3203, + TalentResetState: 3204, + TrollBuyMax: 3301, + TrollSellMax: 3302, + TrollMaxSellCount: 3303, + TrollMaxItemCount: 3304, + TrollRepeatedReward: 3305, + HoroscopeNotTurnedOn: 3401, + HoroscopeRestCDNoEnd: 3402, + PrivilegeNotFound: 3501, + PrivilegeRenewTime: 3502, + VipLvError: 3503, + VipGiftError: 3504, + VipBuyRepeat: 3505, + GrowtaskReceive: 3601, + GrowtaskAdvReceive: 3602, + PayBuyNumNotEnough: 3701, + PayRenewTimeErr: 3702, + PayOrderCompleted: 3703, + WorldtaskFinish: 3801, + WorldtaskLvNotEnough: 3802, + WorldtaskNoAccept: 3803, + WorldtaskNoComplete: 3804, + WorldtaskFinihed: 3805, + WorldtaskLastUnFinished: 3806, + WorldtaskGroupIdNosame: 3807, + AcademyTaskNoCompleteTask: 3901, + AutoBattleNoData: 4001, + AutoBattleStatesErr: 4002 } }, google: { @@ -610,196 +1481,6 @@ 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 - } - } - }, - BattleFormation: { - fields: { - leadpos: { - type: "int32", - id: 1 - }, - format: { - rule: "repeated", - type: "string", - id: 2 - }, - friendformat: { - rule: "repeated", - type: "string", - id: 3 - } - } - }, - BattleEVEReq: { - fields: { - ptype: { - type: "PlayType", - id: 1 - }, - title: { - type: "string", - id: 2 - }, - redformat: { - rule: "repeated", - type: "int32", - id: 3 - }, - buleformat: { - rule: "repeated", - type: "int32", - id: 4 - } - } - }, - BattlePVEReq: { - fields: { - ptype: { - type: "PlayType", - id: 1 - }, - title: { - type: "string", - id: 2 - }, - format: { - type: "BattleFormation", - id: 4 - }, - mformat: { - rule: "repeated", - type: "int32", - id: 5 - } - } - }, - PVPFormation: { - fields: { - uid: { - type: "string", - id: 1 - }, - leadpos: { - type: "int32", - id: 2 - }, - format: { - rule: "repeated", - type: "DBHero", - id: 3 - } - } - }, - BattlePVPReq: { - fields: { - ptype: { - type: "PlayType", - id: 1 - }, - title: { - type: "string", - id: 2 - }, - redformat: { - type: "PVPFormation", - id: 4 - }, - buleformat: { - type: "PVPFormation", - id: 5 - } - } - }, - BattleInfo: { - fields: { - id: { - type: "string", - id: 1 - }, - title: { - type: "string", - id: 2 - }, - btype: { - type: "BattleType", - id: 3 - }, - ptype: { - type: "PlayType", - id: 4 - }, - redCompId: { - type: "string", - id: 5 - }, - redflist: { - rule: "repeated", - type: "DBBattleFormt", - id: 6 - }, - blueCompId: { - type: "string", - id: 7 - }, - buleflist: { - rule: "repeated", - type: "DBBattleFormt", - id: 8 - }, - tasks: { - rule: "repeated", - type: "int32", - id: 9 - } - } - }, - BattleReport: { - fields: { - info: { - type: "BattleInfo", - id: 1 - }, - Costtime: { - type: "int32", - id: 2 - }, - process: { - type: "bytes", - id: 3 - }, - completetask: { - rule: "repeated", - type: "int32", - id: 4 - } - } - }, - SkillData: { - fields: { - skillID: { - type: "int32", - id: 1 - }, - skillLv: { - type: "int32", - id: 2 - } - } - }, HeroType: { values: { HeroTypeNil: 0, @@ -877,19 +1558,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 16 }, - resonateNum: { - type: "int32", - id: 17 - }, - distributionResonate: { - type: "int32", - id: 18 - }, - energy: { - keyType: "string", - type: "int32", - id: 19 - }, sameCount: { type: "int32", id: 20 @@ -902,15 +1570,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 22 }, - isOverlying: { - type: "bool", - id: 23 - }, - energyProperty: { - keyType: "string", - type: "int32", - id: 24 - }, juexProperty: { keyType: "string", type: "int32", @@ -935,18 +1594,21 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr suite2Lv: { type: "int32", id: 30 - } - } - }, - Floor: { - fields: { - h4: { - type: "int32", - id: 1 }, - h5: { + talentProperty: { + keyType: "string", type: "int32", - id: 2 + id: 31 + }, + equipSkill: { + rule: "repeated", + type: "SkillData", + id: 32 + }, + horoscopeProperty: { + keyType: "string", + type: "int32", + id: 33 } } }, @@ -975,6 +1637,1092 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr drawcount: { type: "int32", id: 6 + }, + condition: { + keyType: "string", + type: "int32", + id: 7 + }, + star5Hero: { + keyType: "string", + type: "int32", + id: 8 + }, + totalcount: { + type: "int32", + id: 9 + }, + daycount: { + type: "int32", + id: 10 + }, + onebuy: { + type: "int32", + id: 11 + }, + tenbuy: { + type: "int32", + id: 12 + }, + inevitable: { + type: "int32", + id: 13 + }, + inevitable1: { + type: "int32", + id: 14 + } + } + }, + DBHeroTalent: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + heroId: { + type: "string", + id: 3 + }, + talent: { + keyType: "int32", + type: "int32", + id: 4 + } + } + }, + DBPlayerBattleFormt: { + fields: { + leadpos: { + type: "int32", + id: 1 + }, + formt: { + rule: "repeated", + type: "DBHero", + id: 2 + } + } + }, + ArenaPlayer: { + fields: { + uid: { + type: "string", + id: 1 + }, + name: { + type: "string", + id: 2 + }, + avatar: { + type: "string", + id: 3 + }, + lv: { + type: "int32", + id: 4 + }, + dan: { + type: "int32", + id: 5 + }, + integral: { + type: "int32", + id: 6 + }, + rank: { + type: "int32", + id: 7 + }, + defend: { + type: "DBPlayerBattleFormt", + id: 8 + }, + isai: { + type: "bool", + id: 9 + }, + mformatid: { + type: "int32", + id: 10 + }, + changeintegral: { + type: "int32", + id: 11 + } + } + }, + BattleRecordState: { + values: { + AttackWin: 0, + AttackLost: 1, + DefendkWin: 2, + DefendLost: 3, + WaitingRevenge: 4, + RevengeFailed: 5, + RevengeSucceeded: 6, + RevengeEnd: 7 + } + }, + DBHeroBase: { + fields: { + oid: { + type: "string", + id: 1 + }, + cid: { + type: "string", + id: 2 + }, + star: { + type: "int32", + id: 3 + }, + lv: { + type: "int32", + id: 4 + } + } + }, + DBArenaBattleRecord: { + fields: { + bid: { + type: "string", + id: 1 + }, + time: { + type: "int64", + id: 2 + }, + iswin: { + type: "bool", + id: 3 + }, + isdefend: { + type: "bool", + id: 4 + }, + rivalid: { + type: "string", + id: 5 + }, + rivalname: { + type: "string", + id: 6 + }, + leadpos: { + type: "int32", + id: 7 + }, + formt: { + rule: "repeated", + type: "DBHeroBase", + id: 8 + }, + addintegral: { + type: "int32", + id: 9 + }, + State: { + type: "BattleRecordState", + id: 10 + } + } + }, + DBArenaUser: { + fields: { + uid: { + type: "string", + id: 1 + }, + name: { + type: "string", + id: 2 + }, + avatar: { + type: "string", + id: 3 + }, + lv: { + type: "int32", + id: 4 + }, + integral: { + type: "int32", + id: 5 + }, + dan: { + type: "int32", + id: 7 + }, + attack: { + type: "DBPlayerBattleFormt", + id: 8 + }, + defend: { + type: "DBPlayerBattleFormt", + id: 9 + }, + streak: { + type: "int32", + id: 10 + }, + attackrate: { + type: "int32", + id: 11 + }, + defendrate: { + type: "int32", + id: 12 + }, + rank: { + type: "int32", + id: 13 + }, + buynum: { + type: "int32", + id: 14 + }, + record: { + rule: "repeated", + type: "DBArenaBattleRecord", + id: 15 + }, + lastrtickettime: { + type: "int64", + id: 16 + }, + attackwinuum: { + type: "int32", + id: 17 + }, + attacktotaluum: { + type: "int32", + id: 18 + }, + defendwinuum: { + type: "int32", + id: 19 + }, + defendtotaluum: { + type: "int32", + id: 20 + }, + loc: { + rule: "repeated", + type: "double", + id: 21 + }, + isdef: { + type: "bool", + id: 22 + }, + npc: { + keyType: "int32", + type: "DBNpc", + id: 23 + }, + prededuction: { + type: "int32", + id: 24 + } + } + }, + DBNpc: { + fields: { + id: { + type: "int32", + id: 1 + }, + cd: { + type: "int64", + id: 2 + }, + index: { + type: "int32", + id: 3 + } + } + }, + RPCModifyIntegralReq: { + fields: { + uid: { + type: "string", + id: 1 + }, + integral: { + type: "int32", + id: 2 + } + } + }, + ArenaInfoReq: { + fields: {} + }, + ArenaInfoResp: { + fields: { + info: { + type: "DBArenaUser", + id: 1 + } + } + }, + ArenaOtherInfoReq: { + fields: { + otherId: { + type: "string", + id: 1 + } + } + }, + ArenaOtherInfoResp: { + fields: { + info: { + type: "DBArenaUser", + id: 1 + } + } + }, + ArenaSetAttFormtReq: { + fields: { + leadpos: { + type: "int32", + id: 1 + }, + formt: { + rule: "repeated", + type: "string", + id: 2 + } + } + }, + ArenaSetAttFormtResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + ArenaSetDefFormtReq: { + fields: { + leadpos: { + type: "int32", + id: 1 + }, + formt: { + rule: "repeated", + type: "string", + id: 2 + } + } + }, + ArenaSetDefFormtResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + ArenaMatcheReq: { + fields: {} + }, + ArenaMatcheResp: { + fields: { + players: { + rule: "repeated", + type: "ArenaPlayer", + id: 1 + } + } + }, + ArenaChallengeReq: { + fields: { + playerid: { + type: "string", + id: 1 + }, + isai: { + type: "bool", + id: 2 + }, + mformatId: { + type: "int32", + id: 3 + }, + battle: { + type: "BattleFormation", + id: 4 + } + } + }, + ArenaChallengeResp: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + info: { + type: "BattleInfo", + id: 2 + } + } + }, + ArenaChallengeRewardReq: { + fields: { + iswin: { + type: "bool", + id: 1 + }, + isai: { + type: "bool", + id: 2 + }, + aiintegral: { + type: "int32", + id: 3 + }, + ainame: { + type: "string", + id: 4 + }, + report: { + type: "BattleReport", + id: 5 + }, + revengeid: { + type: "string", + id: 6 + } + } + }, + ArenaChallengeRewardResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + ArenaRankReq: { + fields: {} + }, + ArenaRankResp: { + fields: { + players: { + rule: "repeated", + type: "ArenaPlayer", + id: 1 + }, + info: { + type: "DBArenaUser", + id: 2 + } + } + }, + ArenaBuyReq: { + fields: { + buyNum: { + type: "int32", + id: 1 + } + } + }, + ArenaBuyResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + ticket: { + type: "int32", + id: 2 + } + } + }, + ArenaDelRewardReq: { + fields: { + bid: { + type: "string", + id: 1 + } + } + }, + ArenaDelRewardResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + bid: { + type: "string", + id: 2 + } + } + }, + ArenaPlotReq: { + fields: { + pid: { + type: "int32", + id: 1 + }, + battle: { + type: "BattleFormation", + id: 2 + } + } + }, + ArenaPlotResp: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + pid: { + type: "int32", + id: 2 + }, + info: { + type: "BattleInfo", + id: 3 + } + } + }, + ArenaPlotRewardReq: { + fields: { + pid: { + type: "int32", + id: 1 + }, + report: { + type: "BattleReport", + id: 2 + } + } + }, + ArenaPlotRewardResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + npc: { + keyType: "int32", + type: "DBNpc", + id: 2 + } + } + }, + DBAutoBattle: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + autoWin: { + type: "bool", + id: 3 + }, + maxExp: { + type: "bool", + id: 4 + }, + autoBuy: { + type: "bool", + id: 5 + }, + autoSell: { + type: "int32", + id: 6 + }, + ptype: { + type: "PlayType", + id: 7 + }, + bossId: { + type: "int32", + id: 8 + }, + difficulty: { + type: "int32", + id: 9 + }, + battle: { + type: "BattleFormation", + id: 10 + } + } + }, + AutoBattleChallengeReq: { + fields: { + bossId: { + type: "int32", + id: 1 + }, + difficulty: { + type: "int32", + id: 2 + }, + battle: { + type: "BattleFormation", + id: 3 + }, + autoWin: { + type: "bool", + id: 4 + }, + maxExp: { + type: "bool", + id: 5 + }, + autoBuy: { + type: "bool", + id: 6 + }, + autoSell: { + type: "int32", + id: 7 + }, + ptype: { + type: "PlayType", + id: 8 + } + } + }, + AutoBattleChallengeResp: { + fields: { + info: { + type: "BattleInfo", + id: 1 + } + } + }, + AutoBattleOverReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + report: { + type: "BattleReport", + id: 2 + } + } + }, + AutoBattleOverResp: { + fields: { + asset: { + rule: "repeated", + type: "UserAtno", + id: 1 + }, + info: { + type: "BattleInfo", + id: 2 + }, + over: { + type: "bool", + id: 3 + } + } + }, + AutoBattleStopReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + } + } + }, + AutoBattleStopResp: { + fields: { + ptype: { + type: "PlayType", + id: 1 + } + } + }, + ComModifyOperate: { + fields: { + to: { + type: "int32", + id: 1 + }, + nv: { + type: "float", + id: 2 + }, + reset: { + type: "bool", + id: 3 + } + } + }, + ComStartFight: { + fields: { + reserve: { + type: "int32", + id: 1 + } + } + }, + ComInitFight: { + fields: { + curWave: { + type: "int32", + id: 1 + }, + redEntryRid: { + type: "int32", + id: 2 + }, + buleEntryRid: { + type: "int32", + id: 3 + }, + playType: { + type: "int32", + id: 4 + }, + roles: { + rule: "repeated", + type: "BattleRole", + id: 5 + } + } + }, + ComDeleteRole: { + fields: { + to: { + type: "int32", + id: 1 + } + } + }, + ComEndFight: { + fields: { + fightId: { + type: "string", + id: 1 + }, + winSide: { + type: "int32", + id: 2 + }, + totalRound: { + type: "int32", + id: 3 + }, + RedDeath: { + type: "int32", + id: 4 + }, + buleDeath: { + type: "int32", + id: 5 + } + } + }, + ComSkillInfo: { + fields: { + skillId: { + type: "int32", + id: 1 + }, + lv: { + type: "int32", + id: 2 + }, + maxCd: { + type: "int32", + id: 3 + }, + cd: { + type: "int32", + id: 4 + }, + showEffect: { + type: "bool", + id: 5 + } + } + }, + ComStartAction: { + fields: { + from: { + type: "int32", + id: 1 + }, + target: { + type: "int32", + id: 2 + }, + curRound: { + type: "int32", + id: 3 + }, + skillInfo: { + rule: "repeated", + type: "ComSkillInfo", + id: 4 + } + } + }, + ComSkillCDAction: { + fields: { + from: { + type: "int32", + id: 1 + }, + skillInfo: { + rule: "repeated", + type: "ComSkillInfo", + id: 2 + } + } + }, + ComStopAction: { + fields: { + from: { + type: "int32", + id: 1 + } + } + }, + ComWaitInputSkill: { + fields: { + auto: { + type: "bool", + id: 1 + }, + side: { + type: "int32", + id: 2 + }, + skillId: { + type: "int32", + id: 3 + }, + target: { + type: "int32", + id: 4 + }, + curRound: { + type: "int32", + id: 5 + } + } + }, + ComSkillAtk: { + fields: { + from: { + type: "int32", + id: 1 + }, + skillid: { + type: "int32", + id: 2 + }, + lv: { + type: "int32", + id: 3 + }, + param: { + type: "int32", + id: 4 + }, + target: { + type: "int32", + id: 5 + }, + comList: { + rule: "repeated", + type: "ComSkillAfterAtk", + id: 6 + }, + aniName: { + type: "string", + id: 7 + } + } + }, + ComSkillAfterAtk: { + fields: { + skillid: { + type: "int32", + id: 1 + }, + from: { + type: "int32", + id: 2 + }, + target: { + rule: "repeated", + type: "int32", + id: 4 + }, + comList: { + rule: "repeated", + type: "BattleCmd", + id: 5 + } + } + }, + ComMondifyBuff: { + fields: { + to: { + type: "int32", + id: 1 + }, + gid: { + type: "int64", + id: 2 + }, + buffId: { + type: "int32", + id: 3 + }, + overlapNum: { + type: "int32", + id: 4 + }, + param: { + type: "float", + id: 5 + }, + operate: { + type: "int32", + id: 6 + } + } + }, + ComRebirth: { + fields: { + to: { + type: "int32", + id: 1 + } + } + }, + ComModifyHealth: { + fields: { + to: { + type: "int32", + id: 1 + }, + from: { + type: "int32", + id: 2 + }, + baoji: { + type: "bool", + id: 3 + }, + hideDmg: { + type: "bool", + id: 4 + }, + modifyType: { + type: "int32", + id: 5 + }, + num: { + type: "float", + id: 6 + }, + nhp: { + type: "int32", + id: 7 + }, + mhp: { + type: "int32", + id: 8 + } + } + }, + ComTeachTask: { + fields: { + id: { + type: "int32", + id: 1 + }, + count: { + type: "int32", + id: 2 + } + } + }, + ComStory: { + fields: { + id: { + type: "int32", + id: 1 + }, + storyId: { + type: "int32", + id: 2 + } + } + }, + ComGuide: { + fields: { + id: { + type: "int32", + id: 1 + }, + guideId: { + type: "int32", + id: 2 + } + } + }, + ComCreateRoles: { + fields: { + side: { + type: "int32", + id: 1 + }, + entryRid: { + type: "int32", + id: 2 + }, + playType: { + type: "int32", + id: 3 + }, + roles: { + rule: "repeated", + type: "BattleRole", + id: 4 + } + } + }, + ComPlayEffect: { + fields: { + effectName: { + type: "string", + id: 1 + }, + side: { + type: "int32", + id: 2 + } + } + }, + ComEmitCountdown: { + fields: { + reserve: { + type: "int32", + id: 1 } } }, @@ -1066,6 +2814,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr appendBytes: { type: "bytes", id: 17 + }, + display: { + type: "bool", + id: 18 + }, + appendStrs: { + rule: "repeated", + type: "string", + id: 19 } } }, @@ -1117,6 +2874,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr channelId: { type: "int32", id: 2 + }, + unionId: { + type: "string", + id: 3 } } }, @@ -1129,27 +2890,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - ChatGetCrossListReq: { - fields: { - channel: { - type: "ChatChannel", - id: 1 - }, - channelId: { - type: "int32", - id: 2 - } - } - }, - ChatGetCrossListResp: { - fields: { - chats: { - rule: "repeated", - type: "DBChat", - id: 1 - } - } - }, ChatSendReq: { fields: { avatar: { @@ -1206,70 +2946,28 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - ChatSendCrossReq: { - fields: { - avatar: { - type: "string", - id: 1 - }, - uname: { - type: "string", - id: 2 - }, - ulv: { - type: "int32", - id: 3 - }, - channel: { - type: "ChatChannel", - id: 4 - }, - targetId: { - type: "string", - id: 5 - }, - ctype: { - type: "ChatType", - id: 6 - }, - content: { - type: "string", - id: 7 - }, - appendInt: { - type: "int64", - id: 8 - }, - appendStr: { - type: "string", - id: 9 - }, - appendBool: { - type: "string", - id: 10 - }, - appendBytes: { - type: "bytes", - id: 11 - } - } - }, - ChatSendCrossResp: { - fields: { - issucc: { - type: "bool", - id: 1 - } - } - }, DBCombatUser: { fields: { uid: { type: "string", id: 1 }, - currlevel: { + level: { + keyType: "int32", + type: "DBCombatLevel", + id: 2 + } + } + }, + DBCombatLevel: { + fields: { + id: { type: "int32", + id: 1 + }, + data: { + keyType: "string", + type: "string", id: 2 }, passmanster: { @@ -1281,6 +2979,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr rule: "repeated", type: "int32", id: 4 + }, + pass: { + type: "bool", + id: 5 + }, + progress: { + type: "int32", + id: 6 } } }, @@ -1294,37 +3000,50 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr }, CombatInResp: { fields: { - id: { - type: "int32", - id: 1 + level: { + type: "DBCombatLevel", + id: 2 } } }, - CombatOutReq: { + CombatUpdateLevelReq: { fields: { - id: { + level: { type: "int32", id: 1 + }, + data: { + keyType: "string", + type: "string", + id: 2 } } }, - CombatOutResp: { + CombatUpdateLevelResp: { fields: { - id: { - type: "int32", + succ: { + type: "bool", id: 1 + }, + level: { + type: "int32", + id: 2 } } }, CombatChallengeReq: { fields: { - manster: { + level: { type: "int32", id: 1 }, + manster: { + type: "int32", + id: 2 + }, battle: { type: "BattleFormation", - id: 2 + id: 3 } } }, @@ -1334,25 +3053,33 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "ErrorCode", id: 1 }, - manster: { + level: { type: "int32", id: 2 }, + manster: { + type: "int32", + id: 3 + }, info: { type: "BattleInfo", - id: 3 + id: 4 } } }, CombatChallengeReceiveReq: { fields: { - manster: { + level: { type: "int32", id: 1 }, + manster: { + type: "int32", + id: 2 + }, report: { type: "BattleReport", - id: 2 + id: 3 } } }, @@ -1361,14 +3088,26 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr issucc: { type: "bool", id: 1 + }, + level: { + type: "int32", + id: 2 + }, + pass: { + type: "bool", + id: 3 } } }, CombatDropReq: { fields: { - drop: { + level: { type: "int32", id: 1 + }, + drop: { + type: "int32", + id: 2 } } }, @@ -1382,6 +3121,185 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr rule: "repeated", type: "UserAssets", id: 2 + }, + level: { + type: "int32", + id: 3 + }, + pass: { + type: "bool", + id: 4 + } + } + }, + DBEnchant: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + boss: { + keyType: "int32", + type: "int64", + id: 3 + }, + buyCount: { + type: "int32", + id: 4 + }, + cTime: { + type: "int64", + id: 5 + }, + bossTime: { + keyType: "int32", + type: "int32", + id: 6 + }, + recoveryTime: { + type: "int64", + id: 7 + } + } + }, + DBEnchantRank: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + bosstype: { + type: "int32", + id: 3 + }, + nickname: { + type: "string", + id: 4 + }, + lv: { + type: "int32", + id: 5 + }, + leadpos: { + type: "int32", + id: 6 + }, + line: { + rule: "repeated", + type: "LineUp", + id: 7 + }, + costTime: { + type: "int32", + id: 8 + }, + score: { + type: "int64", + id: 9 + } + } + }, + EnchantGetListReq: { + fields: {} + }, + EnchantGetListResp: { + fields: { + data: { + type: "DBEnchant", + id: 1 + } + } + }, + EnchantChallengeReq: { + fields: { + bossType: { + type: "int32", + id: 1 + }, + battle: { + type: "BattleFormation", + id: 2 + } + } + }, + EnchantChallengeResp: { + fields: { + info: { + type: "BattleInfo", + id: 1 + }, + bossType: { + type: "int32", + id: 2 + } + } + }, + EnchantChallengeOverReq: { + fields: { + bossType: { + type: "int32", + id: 1 + }, + report: { + type: "BattleReport", + id: 2 + }, + score: { + type: "int64", + id: 3 + } + } + }, + EnchantChallengeOverResp: { + fields: { + data: { + type: "DBEnchant", + id: 1 + } + } + }, + EnchantBuyReq: { + fields: { + count: { + type: "int32", + id: 1 + } + } + }, + EnchantBuyResp: { + fields: { + data: { + type: "DBEnchant", + id: 1 + } + } + }, + EnchantRankListReq: { + fields: { + boosType: { + type: "int32", + id: 1 + }, + friend: { + type: "bool", + id: 2 + } + } + }, + EnchantRankListResp: { + fields: { + ranks: { + rule: "repeated", + type: "DBEnchantRank", + id: 1 } } }, @@ -1410,6 +3328,34 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr BaseValue: { type: "int32", id: 6 + }, + EnchValue: { + type: "int32", + id: 7 + } + } + }, + EquipmentSkillEntry: { + fields: { + Id: { + type: "int32", + id: 1 + }, + libraryid: { + type: "int32", + id: 2 + }, + AttrName: { + type: "string", + id: 3 + }, + SkillId: { + type: "int32", + id: 4 + }, + Lv: { + type: "int32", + id: 5 } } }, @@ -1459,6 +3405,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr islock: { type: "bool", id: 11 + }, + adverbskill: { + rule: "repeated", + type: "EquipmentSkillEntry", + id: 12 } } }, @@ -1571,6 +3522,101 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + EquipmentForgReq: { + fields: { + forgid: { + type: "int32", + id: 1 + }, + num: { + type: "int32", + id: 2 + } + } + }, + EquipmentForgResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + reward: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, + EquipmentWashReq: { + fields: { + eid: { + type: "string", + id: 1 + } + } + }, + EquipmentWashResp: { + fields: { + eid: { + type: "string", + id: 1 + }, + adverbEntry: { + rule: "repeated", + type: "EquipmentAttributeEntry", + id: 2 + } + } + }, + EquipmentWashConfirmReq: { + fields: { + eid: { + type: "string", + id: 1 + }, + pids: { + rule: "repeated", + type: "int32", + id: 2 + } + } + }, + EquipmentWashConfirmResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + EquipmentEnchReq: { + fields: { + eid: { + type: "string", + id: 1 + }, + itemid: { + type: "string", + id: 2 + }, + index: { + type: "int32", + id: 3 + } + } + }, + EquipmentEnchResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + Equipment: { + type: "DB_Equipment", + id: 2 + } + } + }, CommentState: { values: { Release: 0, @@ -1607,21 +3653,25 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 7 }, + ulv: { + type: "int32", + id: 8 + }, state: { type: "CommentState", - id: 8 + id: 9 }, ctime: { type: "int64", - id: 9 + id: 10 }, content: { type: "string", - id: 10 + id: 11 }, starlist: { type: "int32", - id: 11 + id: 12 } } }, @@ -1652,17 +3702,21 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - herocid: { - type: "string", + ulv: { + type: "int32", id: 3 }, - herooid: { + herocid: { type: "string", id: 4 }, - content: { + herooid: { type: "string", id: 5 + }, + content: { + type: "string", + id: 6 } } }, @@ -1699,6 +3753,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr hero: { type: "DBHero", id: 1 + }, + equipID: { + rule: "repeated", + type: "DB_Equipment", + id: 2 } } }, @@ -1776,6 +3835,59 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr updateTime: { type: "int64", id: 9 + }, + hero: { + type: "DBHero", + id: 10 + }, + assistScore: { + type: "int32", + id: 11 + }, + record: { + rule: "repeated", + type: "AssistRecord", + id: 12 + } + } + }, + AssistRecord: { + fields: { + uid: { + type: "string", + id: 1 + }, + assistTime: { + type: "int64", + id: 2 + }, + assistHeroId: { + type: "string", + id: 3 + } + } + }, + QiecuoRecord: { + fields: { + uid: { + type: "string", + id: 1 + }, + targetId: { + type: "string", + id: 2 + }, + status: { + type: "int32", + id: 3 + }, + matchId: { + type: "string", + id: 4 + }, + timestamp: { + type: "int64", + id: 5 } } }, @@ -1824,6 +3936,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr heroObjId: { type: "string", id: 11 + }, + score: { + type: "int32", + id: 12 + }, + updateTime: { + type: "int64", + id: 13 } } }, @@ -1947,7 +4067,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr }, FriendSearchResp: { fields: { - friend: { + friends: { + rule: "repeated", type: "FriendBase", id: 1 } @@ -2104,6 +4225,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr heroObjId: { type: "string", id: 2 + }, + record: { + rule: "repeated", + type: "AssistRecord", + id: 3 } } }, @@ -2118,6 +4244,121 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + FriendAssistHeroUpdatePush: { + fields: { + friend: { + type: "FriendBase", + id: 1 + } + } + }, + FriendAssistHeroListReq: { + fields: {} + }, + FriendAssistHeroListResp: { + fields: { + friends: { + rule: "repeated", + type: "FriendBase", + id: 1 + } + } + }, + FriendGetRelationReq: { + fields: { + targetUid: { + type: "string", + id: 1 + } + } + }, + FriendGetRelationResp: { + fields: { + targetUid: { + type: "string", + id: 1 + }, + status: { + type: "bool", + id: 2 + } + } + }, + FriendQiecuoReq: { + fields: { + targetUid: { + type: "string", + id: 1 + } + } + }, + FriendQiecuoResp: { + fields: { + targetUid: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + } + } + }, + FriendAcceptReq: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + FriendAcceptResp: { + fields: { + isSucc: { + type: "bool", + id: 1 + } + } + }, + FriendStopReq: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + FriendStopResp: { + fields: { + isSucc: { + type: "bool", + id: 1 + } + } + }, + FriendQiecuonotifyPush: { + fields: { + uid: { + type: "string", + id: 1 + }, + notifyType: { + type: "int32", + id: 2 + } + } + }, + GatewayHeartbeatReq: { + fields: {} + }, + GatewayHeartbeatResp: { + fields: { + timestamp: { + type: "int64", + id: 1 + } + } + }, GMCmdReq: { fields: { Cmod: { @@ -2207,6 +4448,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr ctime: { type: "int64", id: 9 + }, + totalTime: { + type: "int32", + id: 10 } } }, @@ -2265,19 +4510,394 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - HeroInfoReq: { + GourmetGetRandUserReq: { fields: { - heroId: { + people: { + type: "int32", + id: 1 + } + } + }, + GourmetGetRandUserResp: { + fields: { + user: { + rule: "repeated", + type: "DBUser", + id: 1 + } + } + }, + CacheUser: { + fields: { + uid: { type: "string", id: 1 + }, + SessionId: { + type: "string", + id: 2 + }, + ServiceTag: { + type: "string", + id: 3 + }, + GatewayServiceId: { + type: "string", + id: 4 + }, + ip: { + type: "string", + id: 5 + } + } + }, + DBUser: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + uuid: { + type: "string", + id: 3 + }, + binduid: { + type: "string", + id: 4 + }, + name: { + type: "string", + id: 5 + }, + sid: { + type: "string", + id: 6 + }, + createip: { + type: "string", + id: 7 + }, + lastloginip: { + type: "string", + id: 8 + }, + ctime: { + type: "int64", + id: 9 + }, + logintime: { + type: "int64", + id: 10 + }, + gender: { + type: "int32", + id: 11 + }, + avatar: { + type: "string", + id: 12 + }, + gold: { + type: "int64", + id: 13 + }, + exp: { + type: "int64", + id: 14 + }, + vipexp: { + type: "int64", + id: 15 + }, + starcoin: { + type: "int64", + id: 16 + }, + created: { + type: "bool", + id: 17 + }, + lv: { + type: "int32", + id: 18 + }, + vip: { + type: "int32", + id: 19 + }, + diamond: { + type: "int64", + id: 20 + }, + title: { + type: "int32", + id: 21 + }, + offlinetime: { + type: "int64", + id: 22 + }, + figure: { + type: "int32", + id: 23 + }, + bgp: { + type: "string", + id: 24 + }, + ps: { + type: "int32", + id: 25 + }, + lastRecoverPsSec: { + type: "int64", + id: 26 + }, + moongold: { + type: "int32", + id: 27 + } + } + }, + DBUserSetting: { + fields: { + uid: { + type: "string", + id: 2 + }, + huazhi: { + type: "uint32", + id: 3 + }, + kangjuchi: { + type: "uint32", + id: 4 + }, + gaoguang: { + type: "bool", + id: 5 + }, + wuli: { + type: "bool", + id: 6 + }, + music: { + type: "bool", + id: 7 + }, + effect: { + type: "bool", + id: 8 + }, + guaji: { + type: "bool", + id: 9 + }, + fuben: { + type: "bool", + id: 10 + }, + tansuo: { + type: "bool", + id: 11 + }, + huodong: { + type: "bool", + id: 12 + }, + xuanshang: { + type: "bool", + id: 13 + }, + saiji: { + type: "bool", + id: 14 + } + } + }, + DBSign: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + signTime: { + type: "int64", + id: 3 + }, + signCount: { + type: "int32", + id: 4 + }, + group: { + type: "int32", + id: 5 + }, + cid: { + type: "int32", + id: 6 + }, + rTime: { + type: "int64", + id: 7 + } + } + }, + DBGrowtask: { + fields: { + uid: { + type: "string", + id: 1 + }, + initTaskList: { + rule: "repeated", + type: "Growtask", + id: 2 + }, + midTaskList: { + rule: "repeated", + type: "Growtask", + id: 3 + }, + highTaskList: { + rule: "repeated", + type: "Growtask", + id: 4 + }, + curTaskType: { + type: "int32", + id: 5 + }, + advReceive: { + type: "int32", + id: 6 + } + } + }, + GrowtaskStatus: { + values: { + Lock: 0, + Ongoing: 1, + Wait: 2, + Finish: 3 + } + }, + Growtask: { + fields: { + id: { + type: "int32", + id: 1 + }, + taskType: { + type: "int32", + id: 2 + }, + status: { + type: "GrowtaskStatus", + id: 3 + }, + fstask: { + type: "int32", + id: 4 + }, + preTask: { + type: "int32", + id: 5 + } + } + }, + GrowtaskListReq: { + fields: { + taskType: { + type: "int32", + id: 1 + } + } + }, + GrowtaskListResp: { + fields: { + taskList: { + rule: "repeated", + type: "Growtask", + id: 1 + }, + curTaskType: { + type: "int32", + id: 2 + }, + advReceive: { + type: "int32", + id: 3 + }, + curTaskId: { + type: "int32", + id: 4 + } + } + }, + GrowtaskReceiveReq: { + fields: { + taskId: { + type: "int32", + id: 1 + } + } + }, + GrowtaskReceiveResp: { + fields: { + taskId: { + type: "int32", + id: 1 + } + } + }, + GrowtaskAdvReceiveReq: { + fields: { + taskType: { + type: "int32", + id: 1 + } + } + }, + GrowtaskAdvReceiveResp: { + fields: { + taskType: { + type: "int32", + id: 1 + } + } + }, + HeroInfoReq: { + fields: { + uid: { + type: "string", + id: 1 + }, + heroId: { + rule: "repeated", + type: "string", + id: 2 } } }, HeroInfoResp: { fields: { - base: { - type: "DBHero", + uid: { + type: "string", id: 1 + }, + base: { + rule: "repeated", + type: "DBHero", + id: 2 } } }, @@ -2293,18 +4913,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - ItemData: { - fields: { - itemId: { - type: "int32", - id: 2 - }, - amount: { - type: "int32", - id: 3 - } - } - }, MapStringInt32: { fields: { Key: { @@ -2323,9 +4931,9 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 1 }, - expCards: { - rule: "repeated", - type: "MapStringInt32", + item: { + keyType: "string", + type: "int32", id: 2 } } @@ -2338,33 +4946,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - CostCardData: { - fields: { - costCardObj: { - type: "string", - id: 1 - }, - amount: { - type: "int32", - id: 2 - } - } - }, HeroStrengthenUpStarReq: { fields: { heroObjID: { type: "string", id: 1 - }, - hero: { - rule: "repeated", - type: "CostCardData", - id: 2 - }, - heroRace: { - rule: "repeated", - type: "CostCardData", - id: 3 } } }, @@ -2382,7 +4968,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 1 }, - costCardObj: { + item: { rule: "repeated", type: "string", id: 2 @@ -2397,88 +4983,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - HeroResonanceReq: { - fields: { - heroObjID: { - type: "string", - id: 1 - }, - costObjID: { - rule: "repeated", - type: "string", - id: 2 - } - } - }, - HeroResonanceResp: { - fields: { - hero: { - type: "DBHero", - id: 1 - }, - energy: { - type: "int32", - id: 2 - }, - upStarCard: { - type: "DBHero", - id: 3 - } - } - }, - HeroResonanceResetReq: { - fields: { - heroObjID: { - type: "string", - id: 1 - } - } - }, - HeroResonanceResetResp: { - fields: { - hero: { - type: "DBHero", - id: 1 - }, - energy: { - type: "int32", - id: 2 - } - } - }, - EnergyData: { - fields: { - useEnergy: { - type: "int32", - id: 1 - }, - useType: { - type: "string", - id: 2 - } - } - }, - HeroResonanceUseEnergyReq: { - fields: { - heroObjID: { - type: "string", - id: 1 - }, - energy: { - rule: "repeated", - type: "EnergyData", - id: 2 - } - } - }, - HeroResonanceUseEnergyResp: { - fields: { - hero: { - type: "DBHero", - id: 1 - } - } - }, HeroAwakenReq: { fields: { heroObjID: { @@ -2569,11 +5073,20 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + AtnoData: { + fields: { + atno: { + rule: "repeated", + type: "UserAtno", + id: 1 + } + } + }, HeroDrawCardResp: { fields: { - heroes: { + data: { rule: "repeated", - type: "string", + type: "AtnoData", id: 1 } } @@ -2599,6 +5112,128 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr star5: { type: "int32", id: 2 + }, + onebuy: { + type: "int32", + id: 3 + }, + tenbuy: { + type: "int32", + id: 4 + } + } + }, + HeroFusionReq: { + fields: { + heroId: { + type: "string", + id: 1 + }, + heros: { + keyType: "string", + type: "int32", + id: 2 + } + } + }, + HeroFusionResp: { + fields: { + heroid: { + type: "string", + id: 1 + } + } + }, + HeroTalentListReq: { + fields: {} + }, + HeroTalentListResp: { + fields: { + telnet: { + rule: "repeated", + type: "DBHeroTalent", + id: 1 + } + } + }, + HeroTalentLearnReq: { + fields: { + talentID: { + type: "int32", + id: 1 + }, + objId: { + type: "string", + id: 2 + }, + heroid: { + type: "string", + id: 3 + } + } + }, + HeroTalentLearnResp: { + fields: { + telnet: { + type: "DBHeroTalent", + id: 1 + }, + talentID: { + type: "int32", + id: 2 + } + } + }, + HeroTalentResetReq: { + fields: { + objId: { + type: "string", + id: 1 + } + } + }, + HeroTalentResetResp: { + fields: { + telnet: { + type: "DBHeroTalent", + id: 1 + } + } + }, + HeroBuyReq: { + fields: { + buyType: { + type: "int32", + id: 1 + }, + buyCount: { + type: "int32", + id: 2 + } + } + }, + HeroBuyResp: { + fields: { + IsSucc: { + type: "bool", + id: 1 + }, + onebuy: { + type: "int32", + id: 3 + }, + tenbuy: { + type: "int32", + id: 4 + } + } + }, + HeroFirstGetPush: { + fields: { + heroId: { + rule: "repeated", + type: "string", + id: 1 } } }, @@ -2658,6 +5293,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr issucc: { type: "bool", id: 1 + }, + info: { + type: "DBHoroscope", + id: 2 } } }, @@ -2671,26 +5310,26 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - challengeCount: { - type: "int32", - id: 3 - }, boss: { keyType: "int32", type: "int32", - id: 4 + id: 3 }, buyCount: { type: "int32", - id: 5 + id: 4 }, cTime: { type: "int64", - id: 6 + id: 5 }, bossTime: { keyType: "string", type: "int32", + id: 6 + }, + recoveryTime: { + type: "int64", id: 7 } } @@ -2725,9 +5364,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 } } }, @@ -2752,14 +5400,9 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 2 }, - leadpos: { - type: "int32", + battle: { + type: "BattleFormation", id: 3 - }, - teamids: { - rule: "repeated", - type: "string", - id: 4 } } }, @@ -2966,6 +5609,126 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + ItemsDecomposeReq: { + fields: { + GridId: { + type: "string", + id: 1 + }, + ItemId: { + type: "string", + id: 2 + }, + Amount: { + type: "uint32", + id: 3 + } + } + }, + ItemsDecomposeResp: { + fields: { + GridId: { + type: "string", + id: 1 + }, + Amount: { + type: "uint32", + id: 2 + }, + issucc: { + type: "bool", + id: 3 + } + } + }, + ItemsBuyPhysicalReq: { + fields: { + Amount: { + type: "uint32", + id: 2 + } + } + }, + ItemsBuyPhysicalResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + PhysicalBuyNum: { + type: "int32", + id: 2 + }, + asets: { + rule: "repeated", + type: "UserAssets", + id: 3 + } + } + }, + ItemsSellinbulkReq: { + fields: { + grids: { + rule: "repeated", + type: "string", + id: 1 + }, + amount: { + rule: "repeated", + type: "uint32", + id: 2 + } + } + }, + ItemsSellinbulkResp: { + fields: { + grids: { + rule: "repeated", + type: "string", + id: 1 + }, + amount: { + rule: "repeated", + type: "uint32", + id: 2 + }, + issucc: { + rule: "repeated", + type: "bool", + id: 3 + } + } + }, + ItemsBuyUnifiedTicketReq: { + fields: { + BuyNum: { + type: "int32", + id: 1 + } + } + }, + ItemsBuyUnifiedTicketResp: { + fields: { + issucc: { + type: "bool", + id: 1 + }, + buyunifiedticket: { + type: "int32", + id: 2 + }, + recovertimeunifiedticket: { + type: "int64", + id: 3 + } + } + }, + ItemsRefreshUnifiedTicketReq: { + fields: {} + }, + ItemsRefreshUnifiedTicketResp: { + fields: {} + }, DBLibrary: { fields: { id: { @@ -3032,8 +5795,52 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr id: 6 }, stroyprize: { + rule: "repeated", type: "int32", id: 7 + }, + lvprize: { + rule: "repeated", + type: "int32", + id: 8 + } + } + }, + DBFetterstory: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + feeterTask: { + keyType: "int32", + type: "FetterTasks", + id: 3 + } + } + }, + FetterTasks: { + fields: { + tasks: { + rule: "repeated", + type: "int32", + id: 1 + } + } + }, + FetterTask: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + status: { + type: "int32", + id: 2 } } }, @@ -3066,6 +5873,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr objId: { type: "string", id: 1 + }, + fetterlv: { + type: "int32", + id: 2 } } }, @@ -3096,7 +5907,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr LibraryGetStoryRewardResp: { fields: { data: { - type: "DBLibrary", + type: "DBHeroFetter", id: 1 } } @@ -3122,19 +5933,73 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - TaskNode: { + LibraryActivationFetterReq: { fields: { - status: { - type: "int32", + oid: { + type: "string", + id: 1 + } + } + }, + LibraryActivationFetterResp: { + fields: { + data: { + type: "DBLibrary", + id: 1 + } + } + }, + LibraryChangePush: { + fields: { + data: { + rule: "repeated", + type: "DBLibrary", id: 1 }, - subtaskIds: { + fetter: { rule: "repeated", + type: "DBHeroFetter", + id: 2 + } + } + }, + LibraryLvRewardReq: { + fields: { + oid: { + type: "string", + id: 1 + }, + lv: { type: "int32", id: 2 } } }, + LibraryLvRewardResp: { + fields: { + data: { + type: "DBHeroFetter", + id: 1 + } + } + }, + LibraryFetterstoryTaskReq: { + fields: { + fetterId: { + type: "int32", + id: 1 + } + } + }, + LibraryFetterstoryTaskResp: { + fields: { + list: { + rule: "repeated", + type: "FetterTask", + id: 1 + } + } + }, DBLinestory: { fields: { id: { @@ -3145,66 +6010,92 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - jqId: { - type: "int32", - id: 3 - }, - tasks: { + taskChapter: { keyType: "int32", - type: "TaskNode", - id: 4 + type: "TaskChapter", + id: 3 } } }, - LinestoryStartReq: { + TaskChapter: { fields: { - jqId: { + receive: { type: "int32", id: 1 - } - } - }, - LinestoryStartResp: { - fields: { - jqId: { + }, + status: { type: "int32", - id: 1 + id: 2 }, taskIds: { rule: "repeated", - type: "int32", - id: 2 - } - } - }, - LinestoryDotaskReq: { - fields: { - taskId: { - type: "int32", - id: 1 - }, - subtaskId: { - type: "int32", - id: 2 - } - } - }, - LinestoryDotaskResp: { - fields: { - taskId: { - type: "int32", - id: 1 - }, - subtaskId: { - type: "int32", - id: 2 - }, - resetTaskId: { type: "int32", id: 3 } } }, + TaskMain: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + status: { + type: "int32", + id: 2 + } + } + }, + LinestoryChapterReq: { + fields: {} + }, + LinestoryChapterResp: { + fields: { + taskChapter: { + keyType: "int32", + type: "TaskChapter", + id: 1 + } + } + }, + LinestoryMaintaskReq: { + fields: { + chapterId: { + type: "int32", + id: 1 + } + } + }, + LinestoryMaintaskResp: { + fields: { + list: { + rule: "repeated", + type: "TaskMain", + id: 1 + } + } + }, + LinestoryReceiveReq: { + fields: { + chapterId: { + type: "int32", + id: 1 + } + } + }, + LinestoryReceiveResp: { + fields: { + chapterId: { + type: "int32", + id: 1 + }, + userAssets: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, DBMailData: { fields: { ObjId: { @@ -3340,6 +6231,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + MailDelAllMailReq: { + fields: {} + }, + MailDelAllMailResp: { + fields: { + Mails: { + rule: "repeated", + type: "DBMailData", + id: 1 + } + } + }, AwaredType: { values: { TypeNil: 0, @@ -3377,6 +6280,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr intensity: { type: "int32", id: 7 + }, + ps: { + type: "int32", + id: 8 } } }, @@ -3466,6 +6373,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr data: { type: "DBMainline", id: 1 + }, + newheros: { + rule: "repeated", + type: "string", + id: 2 + }, + olv: { + type: "int32", + id: 3 } } }, @@ -3604,7 +6520,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } }, MartialhallReceiveResp: { - fields: {} + fields: { + pillar: { + type: "int32", + id: 1 + } + } }, MartialhallUpgradeReq: { fields: {} @@ -3641,6 +6562,157 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + DBMline: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + cType: { + type: "int32", + id: 3 + }, + chapterId: { + type: "int32", + id: 4 + }, + stageId: { + type: "int32", + id: 5 + }, + star: { + keyType: "int32", + type: "int32", + id: 6 + }, + award: { + keyType: "int32", + type: "bool", + id: 7 + }, + ps: { + keyType: "int32", + type: "int32", + id: 8 + } + } + }, + MlineGetListReq: { + fields: { + cType: { + type: "int32", + id: 1 + } + } + }, + MlineGetListResp: { + fields: { + data: { + rule: "repeated", + type: "DBMline", + id: 1 + } + } + }, + MlineGetRewardReq: { + fields: { + cId: { + type: "int32", + id: 1 + }, + star: { + type: "int32", + id: 2 + } + } + }, + MlineGetRewardResp: { + fields: { + data: { + type: "DBMline", + id: 1 + }, + reward: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, + MlineChallengeReq: { + fields: { + stageId: { + type: "int32", + id: 1 + }, + battle: { + type: "BattleFormation", + id: 2 + } + } + }, + MlineChallengeResp: { + fields: { + info: { + type: "BattleInfo", + id: 1 + }, + stageId: { + type: "int32", + id: 2 + } + } + }, + MlineChallengeOverReq: { + fields: { + stageId: { + type: "int32", + id: 1 + }, + report: { + type: "BattleReport", + id: 3 + } + } + }, + MlineChallengeOverResp: { + fields: { + data: { + type: "DBMline", + id: 1 + }, + reward: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, + MlineCleanStageReq: { + fields: { + stageId: { + type: "int32", + id: 1 + } + } + }, + MlineCleanStageResp: { + fields: { + stageId: { + type: "int32", + id: 1 + }, + reward: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, UserInfo: { fields: { uid: { @@ -3692,10 +6764,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 7 }, + expir: { + type: "int64", + id: 8 + }, record: { keyType: "string", type: "int32", - id: 8 + id: 9 } } }, @@ -3709,29 +6785,36 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - mfantasys: { - rule: "repeated", - type: "string", - id: 3 - }, triggerNum: { type: "int32", - id: 4 - }, - battleNum: { - type: "int32", - id: 5 + id: 3 }, buyNum: { type: "int32", - id: 6 + id: 5 }, lastTrigger: { + type: "int64", + id: 6 + }, + lastrtickettime: { type: "int64", id: 7 } } }, + RPCTargetMFReq: { + fields: { + uid: { + type: "string", + id: 1 + }, + boosid: { + type: "string", + id: 2 + } + } + }, MoonfantasyGetListReq: { fields: {} }, @@ -3794,14 +6877,9 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 1 }, - leadpos: { - type: "int32", + battle: { + type: "BattleFormation", id: 2 - }, - teamids: { - rule: "repeated", - type: "string", - id: 3 } } }, @@ -3959,31 +7037,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: { type: "int32", id: 5 - } - } - }, - DBSeasonPagoda: { - fields: { - id: { - type: "string", - id: 1 }, - uid: { - type: "string", - id: 2 - }, - pagodaId: { - type: "int32", - id: 3 - }, - reward: { - keyType: "int32", + complete: { type: "bool", - id: 4 + id: 6 }, - type: { + passCheckID: { type: "int32", - id: 5 + id: 7 + }, + vipPassCheckID: { + type: "int32", + id: 8 } } }, @@ -4069,14 +7134,9 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 2 }, - leadpos: { - type: "int32", + battle: { + type: "BattleFormation", id: 3 - }, - teamids: { - rule: "repeated", - type: "string", - id: 4 } } }, @@ -4152,6 +7212,33 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + PagodaActivateReq: { + fields: {} + }, + PagodaActivateResp: { + fields: { + data: { + type: "DBPagoda", + id: 1 + } + } + }, + PagodaWarOrderReq: { + fields: {} + }, + PagodaWarOrderResp: { + fields: { + data: { + type: "DBPagoda", + id: 1 + }, + itmes: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, DBPayOrder: { fields: { orderid: { @@ -4214,6 +7301,17 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + PayRecordReq: { + fields: {} + }, + PayRecordResp: { + fields: { + info: { + type: "DBUserPay", + id: 1 + } + } + }, PayInfoReq: { fields: {} }, @@ -4238,6 +7336,32 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr isucc: { type: "bool", id: 1 + }, + items: { + rule: "repeated", + type: "UserAssets", + id: 2 + } + } + }, + PayShippedPush: { + fields: { + pid: { + type: "string", + id: 1 + }, + orderid: { + type: "string", + id: 2 + }, + items: { + rule: "repeated", + type: "UserAssets", + id: 3 + }, + info: { + type: "DBUserPay", + id: 4 } } }, @@ -4254,6 +7378,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr productid: { type: "string", id: 3 + }, + price: { + type: "int32", + id: 4 + }, + amount: { + type: "int32", + id: 5 } } }, @@ -4266,6 +7398,340 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr msg: { type: "string", id: 2 + }, + data: { + type: "string", + id: 3 + } + } + }, + DBPrivilege: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + cId: { + type: "string", + id: 3 + }, + cTime: { + type: "int64", + id: 4 + }, + eTime: { + type: "int64", + id: 5 + }, + rewardTime: { + type: "int64", + id: 6 + } + } + }, + PrivilegeList: { + fields: { + privilegeID: { + rule: "repeated", + type: "int32", + id: 1 + } + } + }, + DBVip: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + reward: { + keyType: "int32", + type: "bool", + id: 3 + }, + privilege: { + keyType: "int32", + type: "PrivilegeList", + id: 4 + }, + cTime: { + type: "int64", + id: 5 + }, + rewardTime: { + type: "int64", + id: 6 + } + } + }, + PrivilegeGetListReq: { + fields: {} + }, + PrivilegeGetListResp: { + fields: { + data: { + rule: "repeated", + type: "DBPrivilege", + id: 1 + } + } + }, + PrivilegeBuyYuekaReq: { + fields: { + cID: { + type: "string", + id: 1 + } + } + }, + PrivilegeBuyYuekaResp: { + fields: { + data: { + rule: "repeated", + type: "DBPrivilege", + id: 1 + } + } + }, + PrivilegeBuyGiftReq: { + fields: { + vipLv: { + type: "int32", + id: 1 + } + } + }, + PrivilegeBuyGiftResp: { + fields: { + data: { + type: "DBVip", + id: 1 + } + } + }, + PrivilegeVipListReq: { + fields: {} + }, + PrivilegeVipListResp: { + fields: { + data: { + type: "DBVip", + id: 1 + } + } + }, + PvpType: { + values: { + friends: 0 + } + }, + PvpState: { + values: { + "void": 0, + ready: 1, + battle: 2, + cancel: 3, + finish: 4 + } + }, + PvpUserInfo: { + fields: { + uid: { + type: "string", + id: 1 + }, + name: { + type: "string", + id: 2 + }, + avatar: { + type: "string", + id: 3 + }, + lv: { + type: "int32", + id: 4 + } + } + }, + DBPvpBattle: { + fields: { + id: { + type: "string", + id: 1 + }, + servicePath: { + type: "string", + id: 2 + }, + ptype: { + type: "PvpType", + id: 3 + }, + state: { + type: "PvpState", + id: 4 + }, + red: { + type: "PvpUserInfo", + id: 5 + }, + blue: { + type: "PvpUserInfo", + id: 6 + } + } + }, + PvpListReq: { + fields: {} + }, + PvpListResp: { + fields: { + list: { + rule: "repeated", + type: "DBPvpBattle", + id: 1 + } + } + }, + PvpIntoReq: { + fields: { + battleid: { + type: "string", + id: 1 + } + } + }, + PvpIntoResp: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + battleid: { + type: "string", + id: 2 + }, + info: { + type: "BattleStateInfo", + id: 3 + } + } + }, + PvpReadyPush: { + fields: { + servicePath: { + type: "string", + id: 1 + }, + battleid: { + type: "string", + id: 2 + }, + red: { + type: "PvpUserInfo", + id: 3 + }, + blue: { + type: "PvpUserInfo", + id: 4 + }, + countdown: { + type: "int32", + id: 5 + } + } + }, + PvpCancelPush: { + fields: { + servicePath: { + type: "string", + id: 1 + }, + battleid: { + type: "string", + id: 2 + } + } + }, + PvpFormationReq: { + fields: { + battleid: { + type: "string", + id: 1 + }, + formation: { + type: "BattleFormation", + id: 2 + } + } + }, + PvpFormationResp: { + fields: { + issucc: { + type: "bool", + id: 1 + } + } + }, + PvpStartPush: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + info: { + type: "BattleInfo", + id: 2 + } + } + }, + PvpOutCmdPush: { + fields: { + battleid: { + type: "string", + id: 1 + }, + cmd: { + rule: "repeated", + type: "BattleCmd", + id: 2 + } + } + }, + PvpInCmdReq: { + fields: { + battleid: { + type: "string", + id: 1 + }, + cmd: { + type: "BattleCmd", + id: 2 + } + } + }, + PvpInCmdResp: { + fields: { + code: { + type: "ErrorCode", + id: 1 + }, + battleid: { + type: "string", + id: 2 + }, + cmd: { + type: "BattleCmd", + id: 3 } } }, @@ -4299,256 +7765,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - frtaskIds: { - fields: { - rtaskIds: { - rule: "repeated", - type: "int32", - id: 1 - } - } - }, - DBRtask: { - fields: { - id: { - type: "string", - id: 1 - }, - uid: { - type: "string", - id: 2 - }, - frtaskIds: { - keyType: "int32", - type: "frtaskIds", - id: 3 - }, - nextRtaskId: { - type: "int32", - id: 4 - }, - isReward: { - type: "bool", - id: 5 - } - } - }, - rtaskData: { - fields: { - data: { - keyType: "int32", - type: "int32", - id: 1 - }, - rtype: { - type: "int32", - id: 2 - }, - timestamp: { - type: "int64", - id: 3 - } - } - }, - DBRtaskRecord: { - fields: { - id: { - type: "string", - id: 1 - }, - uid: { - type: "string", - id: 2 - }, - vals: { - keyType: "int32", - type: "rtaskData", - id: 3 - } - } - }, - RtaskApplyReq: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - rtaskSubId: { - type: "int32", - id: 2 - } - } - }, - RtaskApplyResp: { - fields: { - rtaskId: { - type: "int32", - id: 1 - } - } - }, - RtasklistReq: { - fields: { - groupId: { - type: "int32", - id: 1 - } - } - }, - RtasklistResp: { - fields: { - rtaskIds: { - rule: "repeated", - type: "int32", - id: 1 - }, - groupId: { - type: "int32", - id: 2 - } - } - }, - RtaskChooseReq: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - chooseId: { - type: "int32", - id: 2 - }, - rtaskSubId: { - type: "int32", - id: 3 - } - } - }, - RtaskChooseResp: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - chooseId: { - type: "int32", - id: 2 - }, - rtaskSubId: { - type: "int32", - id: 3 - } - } - }, - RtaskFinishPush: { - fields: { - rtaskId: { - type: "int32", - id: 1 - } - } - }, - RtaskFinishIdsPush: { - fields: { - rtaskId: { - rule: "repeated", - type: "int32", - id: 1 - }, - groupId: { - type: "int32", - id: 2 - } - } - }, - RtaskGetRewardReq: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - rtaskSubId: { - type: "int32", - id: 2 - } - } - }, - RtaskGetRewardResp: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - rtaskSubId: { - type: "int32", - id: 2 - } - } - }, - RtaskBattleStartReq: { - fields: { - battleConfId: { - type: "int32", - id: 1 - }, - leadpos: { - type: "int32", - id: 3 - }, - teamids: { - rule: "repeated", - type: "string", - id: 4 - } - } - }, - RtaskBattleStartResp: { - fields: { - info: { - type: "BattleInfo", - id: 1 - } - } - }, - RtaskBattleFinishReq: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - rtaskSubId: { - type: "int32", - id: 2 - }, - chooseId: { - type: "int32", - id: 3 - } - } - }, - RtaskBattleFinishResp: { - fields: { - rtaskId: { - type: "int32", - id: 1 - }, - rtaskSubId: { - type: "int32", - id: 2 - } - } - }, - RtaskGetrecordReq: { - fields: {} - }, - RtaskGetrecordResp: { - fields: { - record: { - type: "DBRtaskRecord", - id: 1 - } - } - }, RtaskTestReq: { fields: { rtaskType: { @@ -4587,6 +7803,34 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + DBServerData: { + fields: { + id: { + type: "string", + id: 1 + }, + serverState: { + type: "int32", + id: 2 + }, + disposableLoop: { + type: "int32", + id: 3 + }, + fixedLoop: { + type: "int32", + id: 4 + }, + seasonType: { + type: "int32", + id: 5 + }, + openTime: { + type: "int64", + id: 6 + } + } + }, ShopType: { values: { Null: 0, @@ -4616,6 +7860,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr keyType: "int32", type: "int32", id: 4 + }, + preview: { + keyType: "int32", + type: "DB_Equipment", + id: 5 } } }, @@ -4629,25 +7878,33 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - goldShop: { - type: "UserShopData", + refreshnumgoldShop: { + type: "int32", id: 3 }, - diamondShop: { - type: "UserShopData", + refreshtimegoldShop: { + type: "int64", id: 4 }, - pvpShop: { + goldShop: { type: "UserShopData", id: 5 }, - pveShop: { + diamondShop: { type: "UserShopData", id: 6 }, - allianceShop: { + pvpShop: { type: "UserShopData", id: 7 + }, + pveShop: { + type: "UserShopData", + id: 8 + }, + allianceShop: { + type: "UserShopData", + id: 9 } } }, @@ -4674,6 +7931,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr LeftBuyNum: { type: "int32", id: 5 + }, + preview: { + type: "DB_Equipment", + id: 6 } } }, @@ -4734,6 +7995,120 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + DBStove: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + lv: { + type: "int32", + id: 3 + }, + data: { + keyType: "int32", + type: "int32", + id: 4 + }, + skill: { + keyType: "int32", + type: "int32", + id: 5 + }, + forge: { + keyType: "int32", + type: "int32", + id: 6 + }, + temperature: { + type: "int32", + id: 7 + }, + recoveTime: { + type: "int64", + id: 8 + }, + business: { + type: "int32", + id: 9 + } + } + }, + DBBusiness: { + fields: { + shop: { + keyType: "int32", + type: "int32", + id: 1 + } + } + }, + DBBusinessData: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + data: { + rule: "repeated", + type: "DBBusiness", + id: 3 + }, + count: { + type: "int32", + id: 4 + }, + refreshTime: { + type: "int64", + id: 5 + } + } + }, + DBTujian: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + tujian: { + keyType: "int32", + type: "ForgeData", + id: 3 + }, + slider: { + type: "int32", + id: 4 + } + } + }, + ForgeData: { + fields: { + forgeCount: { + type: "int32", + id: 1 + }, + lv: { + type: "int32", + id: 2 + }, + quality: { + type: "int32", + id: 3 + } + } + }, Clang: { fields: { deskType: { @@ -4815,16 +8190,158 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr stoveFloor: { type: "int32", id: 11 + }, + totalTime: { + type: "int32", + id: 12 } } }, - SmithyGetListReq: { + SmithyGetStoveInfoReq: { fields: {} }, - SmithyGetListResp: { + SmithyGetStoveInfoResp: { fields: { data: { - type: "DBSmithy", + type: "DBStove", + id: 1 + } + } + }, + SmithyForgeEquipReq: { + fields: { + equipType: { + type: "int32", + id: 1 + }, + lava: { + type: "int32", + id: 2 + }, + quality: { + type: "int32", + id: 3 + } + } + }, + SmithyForgeEquipResp: { + fields: { + equip: { + type: "int32", + id: 1 + }, + data: { + type: "DBStove", + id: 2 + } + } + }, + SmithyOrderEquipReq: { + fields: { + suiteId: { + type: "int32", + id: 1 + }, + position: { + type: "int32", + id: 2 + }, + lava: { + type: "int32", + id: 3 + }, + quality: { + type: "int32", + id: 4 + } + } + }, + SmithyOrderEquipResp: { + fields: { + equip: { + type: "int32", + id: 1 + }, + data: { + type: "DBStove", + id: 2 + } + } + }, + SmithyStoveUpReq: { + fields: {} + }, + SmithyStoveUpResp: { + fields: { + data: { + type: "DBStove", + id: 1 + } + } + }, + SmithyRiseReq: { + fields: { + itemId: { + type: "string", + id: 1 + }, + count: { + type: "int32", + id: 2 + } + } + }, + SmithyRiseResp: { + fields: { + data: { + type: "DBStove", + id: 1 + } + } + }, + SmithyToolsUpReq: { + fields: { + id: { + type: "int32", + id: 1 + } + } + }, + SmithyToolsUpResp: { + fields: { + data: { + type: "DBStove", + id: 1 + } + } + }, + SmithyRefreshShopReq: { + fields: {} + }, + SmithyRefreshShopResp: { + fields: { + data: { + type: "DBBusiness", + id: 1 + } + } + }, + SmithySellItemReq: { + fields: { + id: { + type: "int32", + id: 1 + }, + count: { + type: "int32", + id: 2 + } + } + }, + SmithySellItemResp: { + fields: { + data: { + type: "DBBusiness", id: 1 } } @@ -4885,19 +8402,1083 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } }, SmithyGetRandUserReq: { - fields: {} + fields: { + people: { + type: "int32", + id: 1 + } + } }, SmithyGetRandUserResp: { fields: { user: { rule: "repeated", + type: "DBUser", + id: 1 + } + } + }, + SmithyGetListReq: { + fields: {} + }, + SmithyGetListResp: { + fields: { + data: { + type: "DBSmithy", + id: 1 + } + } + }, + DBSociaty: { + fields: { + id: { + type: "string", + id: 1 + }, + creater: { + type: "string", + id: 2 + }, + name: { + type: "string", + id: 3 + }, + icon: { + type: "string", + id: 4 + }, + notice: { + type: "string", + id: 5 + }, + exp: { + type: "int32", + id: 6 + }, + lv: { + type: "int32", + id: 7 + }, + isApplyCheck: { + type: "bool", + id: 8 + }, + applyLv: { + type: "int32", + id: 9 + }, + ctime: { + type: "int64", + id: 10 + }, + applyRecord: { + rule: "repeated", + type: "ApplyRecord", + id: 11 + }, + members: { + rule: "repeated", + type: "SociatyMember", + id: 12 + }, + activity: { + type: "int32", + id: 13 + }, + accuseTime: { + type: "int64", + id: 14 + }, + lastSignCount: { + type: "int32", + id: 15 + }, + signIds: { + rule: "repeated", + type: "string", + id: 16 + }, + dismissTime: { + type: "int64", + id: 17 + }, + dismissCD: { + type: "int64", + id: 18 + } + } + }, + ApplyRecord: { + fields: { + uid: { + type: "string", + id: 1 + }, + ctime: { + type: "int64", + id: 2 + } + } + }, + SociatyJob: { + values: { + NOJOB: 0, + MEMBER: 1, + ADMIN: 2, + VICEPRESIDENT: 3, + PRESIDENT: 4 + } + }, + SociatyMember: { + fields: { + uid: { + type: "string", + id: 1 + }, + job: { + type: "SociatyJob", + id: 2 + }, + ctime: { + type: "int64", + id: 3 + }, + contribution: { + type: "int32", + id: 4 + }, + teams: { + keyType: "int32", + type: "ChallengeTeam", + id: 5 + } + } + }, + SociatyLog: { + fields: { + content: { + type: "string", + id: 1 + }, + ctime: { + type: "int64", + id: 2 + } + } + }, + DBSociatyLog: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + list: { + rule: "repeated", + type: "SociatyLog", + id: 2 + } + } + }, + DBSociatyTask: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + taskList: { + rule: "repeated", + type: "SociatyTask", + id: 3 + }, + activityList: { + rule: "repeated", + type: "SociatyActivity", + id: 4 + }, + lastUpdateTime: { + type: "int64", + id: 5 + } + } + }, + SociatyTask: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + status: { + type: "int32", + id: 2 + }, + received: { + type: "int32", + id: 3 + } + } + }, + SociatyActivity: { + fields: { + id: { + type: "int32", + id: 1 + }, + status: { + type: "int32", + id: 2 + } + } + }, + DBSociatyRank: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + name: { + type: "string", + id: 2 + }, + lv: { + type: "int32", + id: 3 + }, + activity: { + type: "int32", + id: 4 + }, + ctime: { + type: "int64", + id: 5 + } + } + }, + ChallengeTeamInfo: { + fields: { + heroId: { + type: "string", + id: 1 + } + } + }, + ChallengeTeam: { + fields: { + formation: { + type: "BattleFormation", + id: 1 + } + } + }, + DBSociatyBossSports: { + fields: { + endTime: { + type: "int64", + id: 1 + }, + settlementTime: { + type: "int64", + id: 2 + }, + uids: { + rule: "repeated", + type: "string", + id: 3 + } + } + }, + ChallengeRecord: { + fields: { + teams: { + keyType: "int32", + type: "ChallengeTeam", + id: 1 + }, + integral: { + type: "int64", + id: 2 + }, + duration: { + type: "int32", + id: 3 + }, + rtime: { + type: "int64", + id: 4 + } + } + }, + ChallengeTask: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + status: { + type: "int32", + id: 2 + } + } + }, + DBSociatyBossRecord: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + }, + record: { + rule: "repeated", + type: "ChallengeRecord", + id: 4 + }, + total: { + type: "int64", + id: 5 + }, + integrals: { + rule: "repeated", + type: "int64", + id: 6 + }, + status: { + type: "int32", + id: 7 + }, + tasks: { + rule: "repeated", + type: "ChallengeTask", + id: 8 + } + } + }, + SociatyCreateReq: { + fields: { + name: { + type: "string", + id: 1 + }, + icon: { + type: "string", + id: 2 + }, + notice: { + type: "string", + id: 3 + }, + isApplyCheck: { + type: "bool", + id: 4 + }, + applyLv: { + type: "int32", + id: 5 + } + } + }, + SociatyCreateResp: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + } + } + }, + SociatyListFilter: { + values: { + ALL: 0, + CONDI: 1, + NOAPPLY: 2, + APPLYING: 3 + } + }, + SociatyListReq: { + fields: { + filter: { + type: "SociatyListFilter", + id: 1 + } + } + }, + SociatyListResp: { + fields: { + list: { + rule: "repeated", + type: "DBSociaty", + id: 1 + } + } + }, + SociatySearchReq: { + fields: { + name: { + type: "string", + id: 1 + } + } + }, + SociatySearchResp: { + fields: { + list: { + rule: "repeated", + type: "DBSociaty", + id: 1 + } + } + }, + SociatySettingReq: { + fields: { + icon: { + type: "string", + id: 1 + }, + notice: { + type: "string", + id: 2 + }, + isApplyCheck: { + type: "bool", + id: 3 + }, + applyLv: { + type: "int32", + id: 4 + } + } + }, + SociatySettingResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatyMineReq: { + fields: {} + }, + SociatyMineResp: { + fields: { + sociaty: { + type: "DBSociaty", + id: 1 + }, + master: { + type: "SociatyMemberInfo", + id: 2 + } + } + }, + SociatyMemberInfo: { + fields: { + uid: { + type: "string", + id: 1 + }, + name: { + type: "string", + id: 2 + }, + avatar: { + type: "string", + id: 3 + }, + lv: { + type: "int32", + id: 4 + }, + job: { + type: "SociatyJob", + id: 5 + }, + offlineTime: { + type: "int64", + id: 6 + } + } + }, + SociatyApplyListReq: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatyApplyListResp: { + fields: { + list: { + rule: "repeated", + type: "SociatyMemberInfo", + id: 1 + } + } + }, + SociatyApplyReq: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatyApplyResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + scoiatyId: { + type: "string", + id: 2 + } + } + }, + SociatyApplyCancelReq: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatyApplyCancelResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyAgreeReq: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + SociatyAgreeResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyRefuseReq: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + SociatyRefuseResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyCancelReq: { + fields: {} + }, + SociatyCancelResp: { + fields: {} + }, + SociatyQuitReq: { + fields: {} + }, + SociatyQuitResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyDismissReq: { + fields: { + dismiss: { + type: "int32", + id: 1 + } + } + }, + SociatyDismissResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyMembersReq: { + fields: {} + }, + SociatyMembersResp: { + fields: { + list: { + rule: "repeated", + type: "SociatyMemberInfo", + id: 1 + } + } + }, + SociatyAssignReq: { + fields: { + targetId: { + type: "string", + id: 1 + } + } + }, + SociatyAssignResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + targetId: { + type: "string", + id: 2 + } + } + }, + SociatyDischargeReq: { + fields: { + targetId: { + type: "string", + id: 1 + } + } + }, + SociatyDischargeResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + targetId: { + type: "string", + id: 2 + } + } + }, + SociatySettingJobReq: { + fields: { + targetId: { + type: "string", + id: 1 + }, + job: { + type: "SociatyJob", + id: 2 + } + } + }, + SociatySettingJobResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + targetId: { + type: "string", + id: 2 + }, + job: { + type: "SociatyJob", + id: 3 + } + } + }, + SociatyAccuseReq: { + fields: {} + }, + SociatyAccuseResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatySignReq: { + fields: {} + }, + SociatySignResp: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyLogReq: { + fields: {} + }, + SociatyLogResp: { + fields: { + log: { + type: "DBSociatyLog", + id: 1 + } + } + }, + SociatyTaskListReq: { + fields: {} + }, + SociatyTaskListResp: { + fields: { + list: { + rule: "repeated", + type: "SociatyTask", + id: 1 + } + } + }, + SociatyReceiveReq: { + fields: { + taskId: { + type: "int32", + id: 1 + } + } + }, + SociatyReceiveResp: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyActivityListReq: { + fields: {} + }, + SociatyActivityListResp: { + fields: { + list: { + rule: "repeated", + type: "SociatyActivity", + id: 1 + } + } + }, + SociatyActivityReceiveReq: { + fields: { + id: { + type: "int32", + id: 1 + } + } + }, + SociatyActivityReceiveResp: { + fields: { + id: { + type: "int32", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyRankReq: { + fields: { + rankType: { + type: "int32", + id: 1 + } + } + }, + SociatyRankResp: { + fields: { + rank: { + rule: "repeated", + type: "DBSociatyRank", + id: 1 + } + } + }, + SociatyPDismissPush: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatyPAgreePush: { + fields: { + uid: { + type: "string", + id: 1 + }, + sociatyId: { + type: "string", + id: 2 + } + } + }, + SociatyBMainReq: { + fields: {} + }, + SociatyBMainResp: { + fields: { + teams: { + keyType: "int32", + type: "ChallengeTeam", + id: 1 + }, + ticket: { + type: "int32", + id: 2 + }, + endTime: { + type: "int64", + id: 3 + }, + settlementTime: { + type: "int64", + id: 4 + }, + total: { + type: "int64", + id: 5 + }, + highIntegrals: { + rule: "repeated", + type: "int64", + id: 6 + }, + personalRanking: { + type: "int64", + id: 7 + }, + sociatyRanking: { + type: "int64", + id: 8 + } + } + }, + SociatyBFormationReq: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + teams: { + keyType: "int32", + type: "ChallengeTeam", + id: 2 + } + } + }, + SociatyBFormationResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + } + } + }, + SociatyBChallengeStartReq: { + fields: { + sociatyId: { + type: "string", + id: 1 + } + } + }, + SociatyBChallengeStartResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + } + } + }, + SociatyBChallengeFinishReq: { + fields: { + ptype: { + type: "PlayType", + id: 1 + }, + report: { + type: "BattleReport", + id: 2 + } + } + }, + SociatyBChallengeFinishResp: { + fields: { + integral: { + type: "int64", + id: 1 + } + } + }, + SociatyRecommendReq: { + fields: { + cate: { + type: "int32", + id: 1 + } + } + }, + SociatyRecommendResp: { + fields: { + teams: { + keyType: "int32", + type: "ChallengeTeam", + id: 1 + } + } + }, + SociatyBReceiveReq: { + fields: { + taskId: { + type: "int32", + id: 1 + } + } + }, + SociatyBReceiveResp: { + fields: { + sociatyId: { + type: "string", + id: 1 + }, + taskId: { + type: "int32", + id: 2 + } + } + }, + SociatyBRankReq: { + fields: { + rankType: { + type: "int32", + id: 1 + } + } + }, + SociatyRankInfo: { + fields: { + name: { + type: "string", + id: 1 + }, + head: { + type: "string", + id: 2 + }, + lv: { + type: "int32", + id: 3 + }, + sociatyName: { + type: "string", + id: 4 + }, + ranking: { + type: "int64", + id: 5 + }, + integral: { + type: "int64", + id: 6 + } + } + }, + SociatyBRankResp: { + fields: { + rank: { + rule: "repeated", + type: "SociatyRankInfo", + id: 1 + } + } + }, + SociatyBuyReq: { + fields: { + atn: { + type: "UserAssets", + id: 1 + }, + buyNum: { + type: "int32", + id: 2 + } + } + }, + SociatyBuyResp: { + fields: { + uid: { type: "string", id: 1 } } }, SysFuncListReq: { - fields: {} + fields: { + keys: { + rule: "repeated", + type: "string", + id: 1 + } + } }, SysFuncListResp: { fields: { @@ -4918,6 +9499,25 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, + dayList: { + rule: "repeated", + type: "TaskData", + id: 4 + }, + weekList: { + rule: "repeated", + type: "TaskData", + id: 5 + }, + achieveList: { + rule: "repeated", + type: "TaskData", + id: 6 + } + } + }, + TaskData: { + fields: { taskId: { type: "int32", id: 3 @@ -4952,7 +9552,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - DBTaskActive: { + DBActivity: { fields: { id: { type: "string", @@ -4962,20 +9562,125 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - rId: { - type: "int32", + activityList: { + rule: "repeated", + type: "ActivityData", id: 3 + } + } + }, + ActivityData: { + fields: { + taskId: { + type: "int32", + id: 1 }, tag: { type: "int32", - id: 4 + id: 2 }, received: { type: "int32", + id: 3 + } + } + }, + frtaskIds: { + fields: { + rtaskIds: { + rule: "repeated", + type: "int32", + id: 1 + } + } + }, + DBRtask: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + frtaskIds: { + keyType: "int32", + type: "frtaskIds", + id: 3 + }, + isReward: { + type: "bool", id: 5 } } }, + rtaskData: { + fields: { + data: { + keyType: "int32", + type: "int32", + id: 1 + }, + rtype: { + type: "int32", + id: 2 + }, + timestamp: { + type: "int64", + id: 3 + } + } + }, + DBRtaskRecord: { + fields: { + id: { + type: "string", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + vals: { + keyType: "int32", + type: "rtaskData", + id: 3 + } + } + }, + TaskGetrecordReq: { + fields: {} + }, + TaskGetrecordResp: { + fields: { + record: { + type: "DBRtaskRecord", + id: 1 + } + } + }, + TaskSendReq: { + fields: { + taskType: { + type: "int32", + id: 1 + }, + params: { + rule: "repeated", + type: "int32", + id: 2 + } + } + }, + TaskSendResp: { + fields: { + isSucc: { + type: "bool", + id: 1 + } + } + }, TaskReceiveReq: { fields: { taskTag: { @@ -4983,7 +9688,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr id: 1 }, id: { - type: "string", + type: "int32", id: 2 } } @@ -5008,7 +9713,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr fields: { list: { rule: "repeated", - type: "DBTask", + type: "TaskData", id: 1 } } @@ -5025,7 +9730,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr fields: { list: { rule: "repeated", - type: "DBTaskActive", + type: "ActivityData", id: 1 }, active: { @@ -5041,7 +9746,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr id: 1 }, id: { - type: "string", + type: "int32", id: 2 } } @@ -5053,28 +9758,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr id: 1 }, id: { - type: "string", + type: "int32", id: 2 } } }, - TaskDoStrategyReq: { - fields: { - heroCfgId: { - type: "int32", - id: 1 - } - } - }, - TaskDoStrategyResp: { - fields: { - taskIds: { - rule: "repeated", - type: "int32", - id: 1 - } - } - }, TaskFinishedPush: { fields: { taskId: { @@ -5083,31 +9771,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, - CacheUser: { + TaskcondFinishedPush: { fields: { - uid: { - type: "string", + condId: { + type: "int32", id: 1 - }, - SessionId: { - type: "string", - id: 2 - }, - ServiceTag: { - type: "string", - id: 3 - }, - GatewayServiceId: { - type: "string", - id: 4 - }, - ip: { - type: "string", - id: 5 } } }, - DBUser: { + DBTrollTrain: { fields: { id: { type: "string", @@ -5117,137 +9789,238 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - uuid: { - type: "string", + items: { + keyType: "int32", + type: "int32", id: 3 }, - binduid: { - type: "string", + price: { + keyType: "int32", + type: "int32", id: 4 }, - name: { - type: "string", + gridNum: { + type: "int32", id: 5 }, - sid: { - type: "string", + tarinPos: { + type: "int32", id: 6 }, - createip: { - type: "string", + rangeId: { + type: "int32", id: 7 }, - lastloginip: { - type: "string", + buy: { + type: "int32", id: 8 }, - ctime: { - type: "int64", + sell: { + type: "int32", id: 9 }, - logintime: { - type: "int64", + npcLv: { + type: "int32", id: 10 }, - avatar: { - type: "string", + npcReward: { + keyType: "int32", + type: "int32", + id: 11 + }, + totalEarn: { + type: "int64", id: 12 }, - gold: { - type: "int64", + sellCount: { + type: "int32", id: 13 }, - exp: { + refreshTime: { type: "int64", id: 14 }, - created: { - type: "bool", + aiCount: { + type: "int32", id: 15 }, - lv: { + shop: { + keyType: "int32", type: "int32", id: 16 }, - vip: { - type: "int32", + ctime: { + type: "int64", id: 17 }, - diamond: { - type: "int64", + circle: { + type: "int32", id: 18 }, - title: { + surpriseID: { + keyType: "int32", type: "int32", id: 19 }, - offlinetime: { + resetTime: { type: "int64", - id: 11 - }, - figure: { - type: "int32", id: 20 - }, - bgp: { - type: "int32", - id: 21 } } }, - DBUserSetting: { + DBTrollRecord: { fields: { + id: { + type: "string", + id: 1 + }, uid: { type: "string", id: 2 }, - huazhi: { - type: "uint32", + gold: { + type: "int32", id: 3 }, - kangjuchi: { - type: "uint32", + pos: { + type: "int32", id: 4 }, - gaoguang: { - type: "bool", + time: { + type: "int64", + id: 5 + } + } + }, + TrollGetListReq: { + fields: {} + }, + TrollGetListResp: { + fields: { + data: { + type: "DBTrollTrain", + id: 1 + } + } + }, + TrollBuyOrSellReq: { + fields: { + items: { + keyType: "int32", + type: "int32", + id: 1 + } + } + }, + TrollBuyOrSellResp: { + fields: { + data: { + type: "DBTrollTrain", + id: 1 + } + } + }, + TrollAfkSetReq: { + fields: { + buy: { + type: "int32", + id: 1 + }, + sell: { + type: "int32", + id: 2 + }, + count: { + type: "int32", + id: 3 + } + } + }, + TrollAfkSetResp: { + fields: { + data: { + type: "DBTrollTrain", + id: 1 + } + } + }, + TrollNpcRewardReq: { + fields: { + rewardId: { + type: "int32", + id: 1 + } + } + }, + TrollNpcRewardResp: { + fields: { + data: { + type: "DBTrollTrain", + id: 1 + } + } + }, + TrollRankListReq: { + fields: {} + }, + RankData: { + fields: { + rankId: { + type: "int32", + id: 1 + }, + uid: { + type: "string", + id: 2 + }, + name: { + type: "string", + id: 3 + }, + gold: { + type: "int64", + id: 4 + }, + figure: { + type: "int32", id: 5 }, - wuli: { - type: "bool", + title: { + type: "int32", id: 6 - }, - music: { - type: "bool", - id: 7 - }, - effect: { - type: "bool", - id: 8 - }, - guaji: { - type: "bool", - id: 9 - }, - fuben: { - type: "bool", - id: 10 - }, - tansuo: { - type: "bool", - id: 11 - }, - huodong: { - type: "bool", - id: 12 - }, - xuanshang: { - type: "bool", - id: 13 - }, - saiji: { - type: "bool", - id: 14 + } + } + }, + TrollRankListResp: { + fields: { + data: { + rule: "repeated", + type: "RankData", + id: 1 + } + } + }, + TrollRecordListReq: { + fields: {} + }, + TrollRecordListResp: { + fields: { + data: { + rule: "repeated", + type: "DBTrollRecord", + id: 1 + } + } + }, + TrollSurpriseIdReq: { + fields: {} + }, + TrollSurpriseIdResp: { + fields: { + surpriseID: { + keyType: "int32", + type: "int32", + id: 1 } } }, @@ -5337,6 +10110,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr NickName: { type: "string", id: 1 + }, + figure: { + type: "int32", + id: 2 + }, + gender: { + type: "int32", + id: 3 } } }, @@ -5358,13 +10139,53 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int64", id: 2 }, + vipexp: { + type: "int64", + id: 3 + }, diamond: { type: "int64", - id: 5 + id: 4 }, friend: { type: "int32", + id: 5 + }, + starcoin: { + type: "int64", id: 6 + }, + guildcoin: { + type: "int32", + id: 7 + }, + arenacoin: { + type: "int32", + id: 8 + }, + ps: { + type: "int32", + id: 9 + }, + moongold: { + type: "int32", + id: 10 + } + } + }, + UserOtherTermLoginPush: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + UserPsChangedPush: { + fields: { + ps: { + type: "int32", + id: 1 } } }, @@ -5469,7 +10290,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr UserModifybgpReq: { fields: { bgpId: { - type: "int32", + type: "string", id: 1 } } @@ -5481,7 +10302,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr id: 1 }, bgpId: { - type: "int32", + type: "string", id: 2 } } @@ -5534,6 +10355,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } } }, + UserVipChangedPush: { + fields: { + uid: { + type: "string", + id: 1 + }, + vipExp: { + type: "int64", + id: 2 + }, + vipLv: { + type: "int32", + id: 3 + } + } + }, UserModifysignReq: { fields: { sign: { @@ -5551,16 +10388,108 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr } }, UserBattlerecordReq: { - fields: {} - }, - UserBattlerecordResp: { fields: { uid: { type: "string", id: 1 + } + } + }, + UserBattlerecordResp: { + fields: { + data: { + type: "DBUser", + id: 1 + }, + ex: { + type: "DBUserExpand", + id: 2 }, pagodaRecord: { type: "DBPagodaRecord", + id: 3 + }, + huntingRecord: { + rule: "repeated", + type: "DBHuntingRank", + id: 4 + }, + vikingRecord: { + rule: "repeated", + type: "DBVikingRank", + id: 5 + } + } + }, + UserSettingteamReq: { + fields: { + heroObjIds: { + rule: "repeated", + type: "string", + id: 2 + } + } + }, + UserSettingteamResp: { + fields: { + uid: { + type: "string", + id: 1 + } + } + }, + UserShowteamReq: { + fields: {} + }, + UserShowteamResp: { + fields: { + heroObjIds: { + rule: "repeated", + type: "string", + id: 1 + } + } + }, + UserOnlineResp: { + fields: { + users: { + rule: "repeated", + type: "CacheUser", + id: 1 + } + } + }, + UserDataListResp: { + fields: { + users: { + rule: "repeated", + type: "DBUser", + id: 1 + } + } + }, + UserGetServerDataReq: { + fields: {} + }, + UserGetServerDataResp: { + fields: { + data: { + type: "DBServerData", + id: 1 + } + } + }, + UserSignReq: { + fields: {} + }, + UserSignResp: { + fields: { + data: { + type: "DBSign", + id: 1 + }, + reward: { + type: "bool", id: 2 } } @@ -5595,7 +10524,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 7 }, - tujian: { + expitem: { keyType: "string", type: "int32", id: 8 @@ -5632,13 +10561,63 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 20 }, - completePagoda: { - type: "bool", - id: 21 - }, rtaskId: { type: "int32", + id: 21 + }, + teamHeroIds: { + rule: "repeated", + type: "string", id: 22 + }, + sociatyId: { + type: "string", + id: 23 + }, + sociatyCd: { + type: "int64", + id: 24 + }, + guildcoin: { + type: "int32", + id: 25 + }, + arenacoin: { + type: "int32", + id: 26 + }, + physicalbuynum: { + type: "int32", + id: 27 + }, + physicalbuyLasttime: { + type: "int64", + id: 28 + }, + buyunifiedticket: { + type: "int32", + id: 29 + }, + lasttimeunifiedticket: { + type: "int64", + id: 30 + }, + recovertimeunifiedticket: { + type: "int64", + id: 31 + }, + sociatyTicketBuyNum: { + type: "int32", + id: 32 + }, + sociatyTicket: { + type: "int32", + id: 33 + }, + mline: { + keyType: "int32", + type: "int32", + id: 34 } } }, @@ -5652,26 +10631,26 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "string", id: 2 }, - challengeCount: { - type: "int32", - id: 3 - }, boss: { keyType: "int32", type: "int32", - id: 4 + id: 3 }, buyCount: { type: "int32", - id: 5 + id: 4 }, cTime: { type: "int64", - id: 6 + id: 5 }, bossTime: { keyType: "string", type: "int32", + id: 6 + }, + recoveryTime: { + type: "int64", id: 7 } } @@ -5734,7 +10713,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr }, VikingChallengeReq: { fields: { - bossType: { + bossId: { type: "int32", id: 1 }, @@ -5742,13 +10721,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "int32", id: 2 }, - leadpos: { - type: "int32", + battle: { + type: "BattleFormation", id: 3 }, - teamids: { - rule: "repeated", - type: "string", + autoBuy: { + type: "bool", id: 4 } } @@ -5759,7 +10737,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr type: "BattleInfo", id: 1 }, - bossType: { + bossId: { type: "int32", id: 2 }, @@ -5771,7 +10749,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr }, VikingChallengeOverReq: { fields: { - bossType: { + bossId: { type: "int32", id: 1 }, @@ -5782,6 +10760,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr report: { type: "BattleReport", id: 3 + }, + star: { + rule: "repeated", + type: "int32", + id: 4 } } }, @@ -5790,6 +10773,21 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr data: { type: "DBViking", id: 1 + }, + asset: { + rule: "repeated", + type: "UserAtno", + id: 2 + }, + sell: { + rule: "repeated", + type: "string", + id: 3 + }, + heroexp: { + keyType: "string", + type: "int32", + id: 4 } } }, @@ -5829,6 +10827,150 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr id: 1 } } + }, + DBWorldtask: { + fields: { + uid: { + type: "string", + id: 1 + }, + lastTaskIds: { + keyType: "int32", + type: "Worldtask", + id: 2 + }, + taskList: { + rule: "repeated", + type: "Worldtask", + id: 3 + } + } + }, + Worldtask: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + taskType: { + type: "int32", + id: 3 + } + } + }, + WorldtaskMineReq: { + fields: {} + }, + WorldtaskMineResp: { + fields: { + task: { + type: "DBWorldtask", + id: 1 + } + } + }, + WorldtaskFinishReq: { + fields: { + groupId: { + type: "int32", + id: 1 + }, + taskId: { + type: "int32", + id: 2 + } + } + }, + WorldtaskFinishResp: { + fields: { + groupId: { + type: "int32", + id: 1 + }, + taskId: { + type: "int32", + id: 2 + }, + newheros: { + rule: "repeated", + type: "string", + id: 3 + }, + olv: { + type: "int32", + id: 4 + } + } + }, + WorldtaskNexttaskPush: { + fields: { + nextTaskId: { + type: "int32", + id: 1 + } + } + }, + WorldtaskBattleStartReq: { + fields: { + battleConfId: { + type: "int32", + id: 1 + }, + battle: { + type: "BattleFormation", + id: 2 + } + } + }, + WorldtaskBattleStartResp: { + fields: { + info: { + type: "BattleInfo", + id: 1 + } + } + }, + WorldtaskBattleFinishReq: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + battleConfId: { + type: "int32", + id: 2 + }, + report: { + type: "BattleReport", + id: 3 + } + } + }, + WorldtaskBattleFinishResp: { + fields: { + taskId: { + type: "int32", + id: 1 + }, + newheros: { + rule: "repeated", + type: "string", + id: 2 + }, + olv: { + type: "int32", + id: 3 + } + } + }, + WorldtaskFinishIdsPush: { + fields: { + taskList: { + rule: "repeated", + type: "Worldtask", + id: 1 + } + } } }); diff --git a/src/pb/proto/academy/academy_db.proto b/src/pb/proto/academy/academy_db.proto new file mode 100644 index 0000000..3557bdd --- /dev/null +++ b/src/pb/proto/academy/academy_db.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +//训练营数据 +message DBAcademy { + string uid = 1; + map level = 2; + map hero = 3; +} \ No newline at end of file diff --git a/src/pb/proto/academy/academy_msg.proto b/src/pb/proto/academy/academy_msg.proto new file mode 100644 index 0000000..4e7a843 --- /dev/null +++ b/src/pb/proto/academy/academy_msg.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "academy/academy_db.proto"; +import "battle/battle_msg.proto"; +import "errorcode.proto"; + +///基础信息获取 +message AcademyInfoReq {} +message AcademyInfoResp { DBAcademy info = 1; } + +//挑战 +message AcademyChallengeReq { int32 level = 1; } +message AcademyChallengeResp { + ErrorCode code = 1; //是否成功 + int32 level = 2; + BattleInfo info = 3; +} + +//领取 +message AcademyReceiveReq { + int32 level = 1; + int32 group = 2; + BattleReport report = 3; //战报 +} +message AcademyReceiveResp { bool issucc = 1; } + + +//教学请求 +message AcademyTeachingReq { + string heroId = 1; +} +message AcademyTeachingResp { + ErrorCode code = 1; //是否成功 + string heroId = 2; + BattleInfo info = 3; +} + + +//领取教学奖励 +message AcademyTeachingReceiveReq { + string heroId = 1; + BattleReport report = 2; //战报 +} +message AcademyTeachingReceiveResp { bool issucc = 1; } \ No newline at end of file diff --git a/src/pb/proto/arena/arena_db.proto b/src/pb/proto/arena/arena_db.proto new file mode 100644 index 0000000..d066077 --- /dev/null +++ b/src/pb/proto/arena/arena_db.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "hero/hero_db.proto"; +//玩家战斗阵型 +message DBPlayerBattleFormt { + int32 leadpos = 1; //队长位置 + repeated DBHero formt = 2; +} + +//玩家基本信息 +message ArenaPlayer { + string uid = 1; + string name = 2; + string avatar = 3; //@go_tags(`bson:"avatar"`) 头像 + int32 lv = 4; //@go_tags(`bson:"lv"`) 等级 + int32 dan = 5; //段位 + int32 integral = 6; + int32 rank = 7; //排名 + DBPlayerBattleFormt defend = 8; //防守 + bool isai = 9; //是否是ai + int32 mformatid = 10; // AIId + int32 changeintegral = 11; //变化积分 +} + +enum BattleRecordState { + AttackWin = 0; + AttackLost = 1; + DefendkWin = 2; + DefendLost = 3; + WaitingRevenge = 4; + RevengeFailed = 5; + RevengeSucceeded = 6; + RevengeEnd = 7; +} + +message DBHeroBase { + string oid = 1; //英雄的唯一id + string cid = 2; //英雄配置id + int32 star = 3; //英雄星级 + int32 lv = 4; //英雄等级 +} +//战斗记录 +message DBArenaBattleRecord { + string bid = 1; //战斗id + int64 time = 2; //战斗时间 + bool iswin = 3; //是否胜利 + bool isdefend = 4; //是否防守 + string rivalid = 5; //对手id + string rivalname = 6; //对手名称 + int32 leadpos = 7; //队长位置 + repeated DBHeroBase formt = 8; //阵营 + int32 addintegral = 9; //积分变化 + BattleRecordState State = 10; //记录状态 +} + +//竞技场用户数据 +message DBArenaUser { + string uid = 1; //用户id + string name = 2; //玩家名称 + string avatar = 3; //@go_tags(`bson:"avatar"`) 头像 + int32 lv = 4; //@go_tags(`bson:"lv"`) 等级 + int32 integral = 5; //积分 + // int32 ticket = 6; //挑战券 + int32 dan = 7; //段位 + DBPlayerBattleFormt attack = 8; //进攻阵型 + DBPlayerBattleFormt defend = 9; //防守阵型 + int32 streak = 10; //连胜 + int32 attackrate = 11; //进攻胜率 + int32 defendrate = 12; //防守胜率 + int32 rank = 13; //排名 + int32 buynum = 14; //购买次数 + repeated DBArenaBattleRecord record = 15; //战斗记录 + int64 lastrtickettime = 16; //最后领劵时间 + int32 attackwinuum = 17; //进攻胜利次数 + int32 attacktotaluum = 18; //进攻总次数 + int32 defendwinuum = 19; //防守胜利 + int32 defendtotaluum = 20; //防守总 + repeated double loc = 21; //地图索引 匹配系统使用 + bool isdef = 22; //是否设置防守 + map npc = 23; // npc Cd + int32 prededuction = 24; //预扣字段 +} + +// npc数据 +message DBNpc { + int32 id = 1; + int64 cd = 2; + int32 index = 3; +} + + +//修改用户积分 +message RPCModifyIntegralReq { + string uid = 1; + int32 integral = 2; +} \ No newline at end of file diff --git a/src/pb/proto/arena/arena_msg.proto b/src/pb/proto/arena/arena_msg.proto new file mode 100644 index 0000000..ebd01f3 --- /dev/null +++ b/src/pb/proto/arena/arena_msg.proto @@ -0,0 +1,100 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "arena/arena_db.proto"; +import "battle/battle_msg.proto"; +import "errorcode.proto"; + +//竞技场信息 请求 +message ArenaInfoReq {} +//竞技场信息 回应 +message ArenaInfoResp { DBArenaUser info = 1; } +//竞技场信息 请求 别人的 +message ArenaOtherInfoReq { string otherId = 1; } +//竞技场信息 回应 +message ArenaOtherInfoResp { DBArenaUser info = 1; } + +//设置进攻阵型 +message ArenaSetAttFormtReq { + int32 leadpos = 1; //队长位置 + repeated string formt = 2; //进攻阵型 +} +//设置进攻阵型 +message ArenaSetAttFormtResp { bool issucc = 1; } +//设置防守阵型 +message ArenaSetDefFormtReq { + int32 leadpos = 1; //队长位置 + repeated string formt = 2; //防守阵型 +} +//设置防守阵型 +message ArenaSetDefFormtResp { bool issucc = 1; } + +//竞技场匹配 请求 +message ArenaMatcheReq {} +//竞技场匹配 回应 +message ArenaMatcheResp { repeated ArenaPlayer players = 1; } + +//竞技场挑战 请求 +message ArenaChallengeReq { + string playerid = 1; + bool isai = 2; //是否是ai + int32 mformatId = 3; // AIId + BattleFormation battle = 4; //战斗类型 +} +//竞技场挑战 回应 +message ArenaChallengeResp { + ErrorCode code = 1; //是否成功 + BattleInfo info = 2; +} +//领取战斗奖励 +message ArenaChallengeRewardReq { + bool iswin = 1; //是否胜利 + bool isai = 2; //对手是否是ai + int32 aiintegral = 3; // ai 积分 + string ainame = 4; // ai名称 + BattleReport report = 5; //战报 + string revengeid = 6; //复仇id +} +message ArenaChallengeRewardResp { bool issucc = 1; } + +//竞技场排行榜 请求 +message ArenaRankReq {} +//竞技场排行榜 回应 +message ArenaRankResp { repeated ArenaPlayer players = 1;DBArenaUser info = 2; } + +//购买票据 +message ArenaBuyReq { int32 buyNum = 1; } +message ArenaBuyResp { + bool issucc = 1; //是否成功 + int32 ticket = 2; //当前挑战次数 +} + +//删除战斗记录 +message ArenaDelRewardReq { + string bid = 1; //战斗id +} +message ArenaDelRewardResp { + bool issucc = 1; //是否成功 + string bid = 2; //战斗id +} + +//剧情战斗 请求 +message ArenaPlotReq { + int32 pid = 1; //剧情id + BattleFormation battle = 2; //战斗类型 +} + +message ArenaPlotResp { + ErrorCode code = 1; //是否成功 + int32 pid = 2; //剧情id + BattleInfo info = 3; +} +//剧情战斗奖励领取 请求 +message ArenaPlotRewardReq { + int32 pid = 1; //剧情id + BattleReport report = 2; //战报 +} + +message ArenaPlotRewardResp { + bool issucc = 1; + map npc = 2; // npc Cd +} diff --git a/src/pb/proto/auto/auto_db.proto b/src/pb/proto/auto/auto_db.proto new file mode 100644 index 0000000..851c6dc --- /dev/null +++ b/src/pb/proto/auto/auto_db.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_db.proto"; +import "battle/battle_msg.proto"; +// 自动战斗 +message DBAutoBattle { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + bool autoWin = 3 ; //@go_tags(`bson:"autoWin"`) 失败自动停止 + bool maxExp = 4 ; //@go_tags(`bson:"maxExp"`)雄达到满级则停止连续战斗 + bool autoBuy = 5 ; //@go_tags(`bson:"autoBuy"`) 自动购买 + int32 autoSell = 6; //@go_tags(`bson:"autoSell"`) 自动出售星级装备 + PlayType ptype = 7; // 类型 + int32 bossId = 8; //@go_tags(`bson:"bossId"`) + int32 difficulty = 9; + BattleFormation battle = 10; // 阵容信息 +} + diff --git a/src/pb/proto/auto/auto_msg.proto b/src/pb/proto/auto/auto_msg.proto new file mode 100644 index 0000000..226bc1b --- /dev/null +++ b/src/pb/proto/auto/auto_msg.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_db.proto"; +import "battle/battle_msg.proto"; +import "comm.proto"; + +message AutoBattleChallengeReq { + int32 bossId = 1; // boos 类型 + int32 difficulty = 2; // 难度 + BattleFormation battle = 3; + bool autoWin = 4 ; // 失败自动停止 + bool maxExp = 5 ; //雄达到满级则停止连续战斗 + bool autoBuy = 6 ; // 自动购买 + int32 autoSell = 7; // 自动出售星级装备 + PlayType ptype = 8; // 类型 +} + +message AutoBattleChallengeResp { + BattleInfo info = 1; +} + +message AutoBattleOverReq { + PlayType ptype = 1; // 类型 + BattleReport report = 2; //战报 +} + +// 客户端通知服务器打赢了 +message AutoBattleOverResp { + repeated UserAtno asset = 1;// GameRe // 推送atn + BattleInfo info = 2; + bool over = 3; // 是否结束 +} +// 自动战斗结束 +// message AutoBattleOverEnvPush { +// bool success = 1; +// } + +// 主动结束战斗 +message AutoBattleStopReq { + PlayType ptype = 1; // 类型 +} + +// 客户端通知服务器打赢了 +message AutoBattleStopResp { + PlayType ptype = 1; // 类型 +} \ No newline at end of file diff --git a/src/pb/proto/battle_db.proto b/src/pb/proto/battle/battle_db.proto similarity index 82% rename from src/pb/proto/battle_db.proto rename to src/pb/proto/battle/battle_db.proto index d96b8e2..e883cde 100644 --- a/src/pb/proto/battle_db.proto +++ b/src/pb/proto/battle/battle_db.proto @@ -8,6 +8,7 @@ enum BattleType { pvp = 2; pvb = 3; eve = 4; + rtpvp = 5; } //玩法类型 @@ -21,7 +22,11 @@ enum PlayType { moonfantasy = 6; //月之秘境 arena = 7; //竞技场 academy = 8; //联盟学院 - heroteaching = 9; //英雄教学 + heroteaching =9; //英雄教学 + combat = 10; //新关卡 + enchant = 11; // 附魔副本 + sociaty = 12; //工会战 + friendsmeet = 13; //好友切磋 } //战斗状态 @@ -51,12 +56,16 @@ message BattleRole { repeated SkillData equipSkill = 11; //@go_tags(`bson:"normalSkill"`) 普通技能 map property = 12; // 属性相关 bool ishelp = 13; //是否是助战英雄 + int32 isboos = 14; //是否是boos + int32 monsterid = 15; //怪物id } //战斗阵型信息 message DBBattleFormt { int32 leadpos = 1; //队长位置 - repeated BattleRole team = 2; + repeated BattleRole team = 2; //自己的战队 + repeated BattleRole systeam = 3; //系统辅助战队 + repeated BattleRole backupteam = 4; //后援战队 } //战斗记录 @@ -73,4 +82,5 @@ message DBBattleRecord { repeated DBBattleFormt buleflist = 10; //红方阵型列表 repeated DBBattleComp roundresult = 11; //战斗场次结果 DBBattleComp result = 12; //最终结果 + repeated int32 tasks = 13; //任务列表 } \ No newline at end of file diff --git a/src/pb/proto/battle/battle_msg.proto b/src/pb/proto/battle/battle_msg.proto new file mode 100644 index 0000000..76b3fb0 --- /dev/null +++ b/src/pb/proto/battle/battle_msg.proto @@ -0,0 +1,178 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_db.proto"; +import "hero/hero_db.proto"; +import "google/protobuf/any.proto"; + +message LineUp { + string cid = 1; // 配置表id + int32 star = 2; // 星级 + int32 lv = 3; // 等级 +} + +//战斗布阵请求 +message BattleFormation { + int32 leadpos = 1; //队长位置 + repeated string format = 2; //自己英雄阵容信息 0-5 + repeated string friendformat = 3; //助战好友 +} +// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) +message BattleEVEReq { + PlayType ptype = 1; //玩法类型 + string title = 2; //战斗标题 + BattleFormation format = 3; //布阵信息 + repeated int32 sysformat = 4; //系统辅助 + repeated int32 backupformat = 5; //后援辅助 + repeated int32 buleformat = 6; //蓝方 +} +// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) +message BattlePVEReq { + PlayType ptype = 1; //玩法类型 + string title = 2; //战斗标题 + BattleFormation format = 4; //布阵信息 + repeated int32 mformat = 5; //敌方增容信息 +} + +//战斗布阵请求 +message PVPFormation { + string uid = 1; //用户id + int32 leadpos = 2; //队长位置 + repeated DBHero format = 3; //自己英雄阵容信息 0-5 +} +// pvp 异步 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) +message BattlePVPReq { + PlayType ptype = 1; //玩法类型 + string title = 2; //战斗标题 + PVPFormation redformat = 4; //布阵信息 + PVPFormation buleformat = 5; //布阵信息 +} + +// pvp 同步 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) +message BattleRTPVPReq { + PlayType ptype = 1; //玩法类型 + string title = 2; //战斗标题 + string redCompId = 6; //红方阵营id + repeated BattleFormation redformat = 7; //红方阵型列表 + string blueCompId = 8; //蓝方阵营id + repeated BattleFormation bulefformat = 9; //红方阵型列表 +} + +// pvb 战斗创建请求 (工会boos战专用) +message BattlePVBReq { + PlayType ptype = 1; //玩法类型 + string title = 2; //战斗标题 + repeated BattleFormation format = 4; //布阵信息 + repeated int32 mformat = 5; //敌方增容信息 +} + +//战斗开始推送 +message BattleInfo { + string id = 1; //战斗id + string title = 2; //战斗标题 + string scene = 3; //战斗场景 + BattleType btype = 4; //战斗类型 + PlayType ptype = 5; //玩法类型 + string redCompId = 6; //红方阵营id + repeated DBBattleFormt redflist = 7; //红方阵型列表 + string blueCompId = 8; //蓝方阵营id + repeated DBBattleFormt buleflist = 9; //红方阵型列表 + repeated int32 tasks = 10; //任务列表 +} + +message BattleCmd { + string cmdtype = 1; + uint32 index = 2; + bytes value = 3; +} + +//战报数据 +message BattleReport { + BattleInfo info = 1; + int32 Costtime = 2; //战斗时长 单位ms + repeated BattleCmd incmd = 3; //输入指令 + repeated BattleCmd outcmd = 4; //输出指令 + repeated int32 completetask = 5; //完成任务 + int32 death = 6; // 死亡人数 + int32 round = 7; // 回合数 + int32 harm = 8; //伤害积分 +} + +//公用消息结构代码 +message BattleRpcMessage { + uint64 rid = 1; //服务回调id + string method = 2; //方法名 + google.protobuf.Any data = 3; //战斗消息对象 +} + +//战斗校验结果 +message BattleCheckResults { + bool ischeck = 1; //是否校验成功 +} + +//创建战斗服务 请求 +message BattleGetInfoReq { + string battleid = 1; +} + +//创建战斗服务 请求回应 +message BattleGetInfoResp { + string battleid = 1; + BattleStateInfo info = 2; +} + +//创建战斗服务 请求 +message BattleCreateServerReq { + BattleInfo info= 1; +} + +//创建战斗服务 请求回应 +message BattleCreateServerResp { + bool issucc= 1; +} + +//创建战斗服务 请求 +message BattleInCmdReq { + string battleid = 1; + int32 side = 2; + BattleCmd in = 3; +} + + +//创建战斗服务 请求 +message BattleInCmdResp { + string battleid = 1; + BattleCmd in = 2; + bool issucc = 3; +} + +//战斗服务 指令推送 +message BattleOutCmdPush { + string battleid = 1; + repeated BattleCmd cmd = 2; +} + +//战斗服务 结束推送 +message BattleFinishPush { + string battleid = 1; +} + + +//战斗认输 请求 +message BattleConcedeReq { + string battleid = 1; + int32 side = 2; +} + + +// 战斗认输 回应 +message BattleConcedeResp { + bool issucc = 1; +} + +//战斗状态数据 +message BattleStateInfo +{ + BattleInfo info = 1; + repeated BattleCmd outCmds = 2; + repeated BattleCmd inputCmds = 3; +} \ No newline at end of file diff --git a/src/pb/proto/battle/battle_struct.proto b/src/pb/proto/battle/battle_struct.proto new file mode 100644 index 0000000..0a08642 --- /dev/null +++ b/src/pb/proto/battle/battle_struct.proto @@ -0,0 +1,141 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_db.proto"; +import "battle/battle_msg.proto"; + +//修改行动值 +message ComModifyOperate{ + int32 to = 1; + float nv =2; //行动值 + bool reset = 3;//是否是清零 +} +//战斗开始 +message ComStartFight{ + int32 reserve =1; +} +//初始化战斗角色 +message ComInitFight{ + int32 curWave =1; //波次 + int32 redEntryRid =2; // side=1 + int32 buleEntryRid =3; // side = 2; + int32 playType = 4; //玩法类型 + repeated BattleRole roles = 5; //角色列表 +} +// 删除角色 +message ComDeleteRole{ + int32 to = 1; +} +//战斗结束指令 +message ComEndFight{ + string fightId = 1; + int32 winSide =2; + int32 totalRound =3; //经历回合 + int32 RedDeath = 4; //红方死亡统计 + int32 buleDeath = 5; //蓝方死亡统计 +} +//技能信息 +message ComSkillInfo{ + int32 skillId = 1; + int32 lv = 2; + int32 maxCd = 3; + int32 cd = 4; + bool showEffect = 5;//是否显示CD恢复特效 +} +//回合开始 +message ComStartAction{ + int32 from = 1; //当前出手角色 + int32 target = 2; //预选攻击目标 + int32 curRound = 3; + repeated ComSkillInfo skillInfo = 4; +} + +//角色技能CD +message ComSkillCDAction{ + int32 from = 1; + repeated ComSkillInfo skillInfo = 2; +} +//回合结束 +message ComStopAction{ + int32 from = 1; //当前结束回合角色 +} +//等待输入技能 +message ComWaitInputSkill{ + bool auto = 1; + int32 side = 2; + int32 skillId = 3; + int32 target = 4; + int32 curRound = 5; +} +//主技能命令 +message ComSkillAtk{ + int32 from = 1; + int32 skillid = 2; + int32 lv = 3; + int32 param = 4; + int32 target = 5; //释放目标 + repeated ComSkillAfterAtk comList = 6; + string aniName = 7; //预览使用 +} +//子技能 +message ComSkillAfterAtk{ + int32 skillid = 1; + int32 from = 2; + repeated int32 target= 4; //子技能目标(弹道类技能会用到) + repeated BattleCmd comList = 5; +} +//buff +message ComMondifyBuff{ + int32 to = 1; + int64 gid = 2; //唯一实体id + int32 buffId = 3; //配置id + int32 overlapNum = 4; //叠加层数 + float param = 5; //参数 - 护盾量 + int32 operate = 6; // 0 移除 1 添加 2 修改 +} +//复活 +message ComRebirth{ + int32 to = 1; +} +//血量变化 +message ComModifyHealth{ + int32 to = 1; + int32 from = 2; + bool baoji = 3; + bool hideDmg = 4; + int32 modifyType = 5; + float num = 6; + int32 nhp = 7; + int32 mhp = 8; +} +//教学任务更新 +message ComTeachTask{ + int32 id = 1; + int32 count = 2; +} +//剧情 +message ComStory{ + int32 id = 1; + int32 storyId = 2; +} +//剧情 +message ComGuide{ + int32 id = 1; + int32 guideId = 2; +} +//中途创建角色 +message ComCreateRoles{ + int32 side = 1; + int32 entryRid = 2; + int32 playType = 3; + repeated BattleRole roles = 4; +} +//播放特效 +message ComPlayEffect{ + string effectName = 1; + int32 side = 2; +} +//出手倒计时 +message ComEmitCountdown +{ + int32 reserve =1; +} \ No newline at end of file diff --git a/src/pb/proto/battle_msg.proto b/src/pb/proto/battle_msg.proto deleted file mode 100644 index d05f292..0000000 --- a/src/pb/proto/battle_msg.proto +++ /dev/null @@ -1,65 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "battle_db.proto"; -import "hero_db.proto"; - -message LineUp { - string cid = 1; // 配置表id - int32 star = 2; // 星级 - int32 lv = 3; // 等级 -} - -//战斗布阵请求 -message BattleFormation { - int32 leadpos = 1; //队长位置 - repeated string format = 2; //自己英雄阵容信息 0-5 - repeated string friendformat = 3; //助战好友 -} -// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) -message BattleEVEReq { - PlayType ptype = 1; //玩法类型 - string title = 2; //战斗标题 - repeated int32 redformat = 3; //红方 - repeated int32 buleformat = 4; //蓝方 -} -// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) -message BattlePVEReq { - PlayType ptype = 1; //玩法类型 - string title = 2; //战斗标题 - BattleFormation format = 4; //布阵信息 - repeated int32 mformat = 5; //敌方增容信息 -} - -//战斗布阵请求 -message PVPFormation { - string uid = 1; //用户id - int32 leadpos = 2; //队长位置 - repeated DBHero format = 3; //自己英雄阵容信息 0-5 -} -// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略) -message BattlePVPReq { - PlayType ptype = 1; //玩法类型 - string title = 2; //战斗标题 - PVPFormation redformat = 4; //布阵信息 - PVPFormation buleformat = 5; //布阵信息 -} -//战斗开始推送 -message BattleInfo { - string id = 1; //战斗id - 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; //红方阵型列表 - repeated int32 tasks = 9; //任务列表 -} - -//战报数据 -message BattleReport { - BattleInfo info = 1; - int32 Costtime = 2; //战斗时长 单位ms - bytes process = 3; //战斗过程数据 - repeated int32 completetask = 4; //完成任务 -} diff --git a/src/pb/proto/chat_db.proto b/src/pb/proto/chat/chat_db.proto similarity index 52% rename from src/pb/proto/chat_db.proto rename to src/pb/proto/chat/chat_db.proto index 48fb0bc..a499e70 100644 --- a/src/pb/proto/chat_db.proto +++ b/src/pb/proto/chat/chat_db.proto @@ -26,15 +26,17 @@ message DBChat { string suid = 4; //发送用户id int32 slv = 5; //发送者等级 string ruid = 6; //接收用户id channel == Private 有效 - int32 channelId = 7; //跨服频道 频道Id - string unionId = 8; //工会id - string stag = 9; //区服id - string avatar = 10; //用户头像 - string uname = 11; //用户名 - string content = 12; //内容 - int64 ctime = 13; //创建时间 - 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"`) 聊天附加数据 + int32 channelId = 7; //@go_tags(`bson:"channelId"`) ID跨服频道 频道Id + string unionId = 8; //@go_tags(`bson:"unionId"`)工会id + string stag = 9; //区服id + string avatar = 10; //用户头像 + string uname = 11; //用户名 + string content = 12; //内容 + int64 ctime = 13; //创建时间 + 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:"appendBytes"`) 聊天附加数据 + bool display = 18; //@go_tags(`bson:"display"`)是否显示到跑马灯 + repeated string appendStrs = 19; //@go_tags(`bson:"appendStrs"`) 聊天附加数据 } \ No newline at end of file diff --git a/src/pb/proto/chat_msg.proto b/src/pb/proto/chat/chat_msg.proto similarity index 55% rename from src/pb/proto/chat_msg.proto rename to src/pb/proto/chat/chat_msg.proto index 6d666c3..758e12c 100644 --- a/src/pb/proto/chat_msg.proto +++ b/src/pb/proto/chat/chat_msg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = ".;pb"; -import "chat_db.proto"; +import "chat/chat_db.proto"; //聊天消息推送 message ChatMessagePush { DBChat chat = 1; } @@ -22,19 +22,20 @@ message ChatChanageChannelResp { message ChatGetListReq { ChatChannel channel = 1; //频道 int32 channelId = 2; //跨服频道id + string unionId = 3; //工会id } //请求聊天消息 回应 message ChatGetListResp { repeated DBChat chats = 1; } -//跨服请求聊天消息 -message ChatGetCrossListReq { - ChatChannel channel = 1; //频道 - int32 channelId = 2; //跨服频道id -} +// //跨服请求聊天消息 +// message ChatGetCrossListReq { +// ChatChannel channel = 1; //频道 +// int32 channelId = 2; //跨服频道id +// } -//跨服请求聊天消息 回应 -message ChatGetCrossListResp { repeated DBChat chats = 1; } +// //跨服请求聊天消息 回应 +// message ChatGetCrossListResp { repeated DBChat chats = 1; } //消息发送请求 message ChatSendReq { @@ -56,22 +57,22 @@ message ChatSendResp { 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 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; //是否成功 -} +// //跨服消息发送请求 回应 +// message ChatSendCrossResp { +// bool issucc = 1; //是否成功 +// } diff --git a/src/pb/proto/combat/combat_db.proto b/src/pb/proto/combat/combat_db.proto new file mode 100644 index 0000000..2e89a86 --- /dev/null +++ b/src/pb/proto/combat/combat_db.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +message DBCombatUser { + string uid = 1; //uid + map level = 2; //关卡信息 +} + +message DBCombatLevel { + int32 id = 1; + map data = 2; //管卡信息 + repeated int32 passmanster= 3; //通关怪物列表 + repeated int32 passdrop= 4; //通关宝箱列表 + bool pass = 5; //是否通关 + int32 progress = 6; //进度 +} \ No newline at end of file diff --git a/src/pb/proto/combat/combat_msg.proto b/src/pb/proto/combat/combat_msg.proto new file mode 100644 index 0000000..272c6f3 --- /dev/null +++ b/src/pb/proto/combat/combat_msg.proto @@ -0,0 +1,69 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "errorcode.proto"; +import "comm.proto"; +import "combat/combat_db.proto"; +import "battle/battle_msg.proto"; + + +//关卡进入请求 +message CombatInReq { + int32 id = 1; //关卡id +} + +//关卡进入请求 +message CombatInResp { + DBCombatLevel level = 2; //管卡信息 +} + +message CombatUpdateLevelReq { + int32 level = 1; //管卡id + map data = 2; //坐标 +} + +message CombatUpdateLevelResp { + bool succ = 1; //是否成功 + int32 level = 2; //管卡id +} + +//战斗请求 +message CombatChallengeReq { + int32 level = 1; //管卡id + int32 manster = 2; //怪物id + BattleFormation battle = 3; //布阵信息 +} + +//战斗请求 回应 +message CombatChallengeResp { + ErrorCode code = 1; //是否成功 + int32 level = 2; //管卡id + int32 manster = 3; + BattleInfo info = 4; +} + +//战斗奖励领取 +message CombatChallengeReceiveReq { + int32 level = 1; //管卡id + int32 manster = 2; + BattleReport report = 3; //战报 + } +//战斗奖励领取 +message CombatChallengeReceiveResp { + bool issucc = 1; + int32 level = 2; //管卡id + bool pass = 3; //是否通关 +} + +//宝箱获取请求 +message CombatDropReq { + int32 level = 1; //管卡id + int32 drop = 2; //宝箱id +} + +//宝箱获取请求 +message CombatDropResp { + ErrorCode code = 1; //是否成功 + repeated UserAssets atns = 2; //获取物品 + int32 level = 3; //管卡id + bool pass = 4; //是否通关 +} \ No newline at end of file diff --git a/src/pb/proto/combat_db.proto b/src/pb/proto/combat_db.proto deleted file mode 100644 index e6ff1dc..0000000 --- a/src/pb/proto/combat_db.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; - -message DBCombatUser { - string uid = 1; //uid - int32 currlevel = 2; //当前所在关卡 - repeated int32 passmanster= 3; //通关怪物列表 - repeated int32 passdrop= 4; //通关宝箱列表 -} \ No newline at end of file diff --git a/src/pb/proto/combat_msg.proto b/src/pb/proto/combat_msg.proto deleted file mode 100644 index c29c80f..0000000 --- a/src/pb/proto/combat_msg.proto +++ /dev/null @@ -1,57 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "errorcode.proto"; -import "comm.proto"; -import "battle_msg.proto"; - -//关卡进入请求 -message CombatInReq { - int32 id = 1; //关卡id -} - -//关卡进入请求 -message CombatInResp { - int32 id = 1; //关卡id -} - -//关卡离开请求 -message CombatOutReq { - int32 id = 1; //关卡id -} - -//关卡离开请求 回应 -message CombatOutResp { - int32 id = 1; //关卡id -} - -//战斗请求 -message CombatChallengeReq { - int32 manster = 1; //怪物id - BattleFormation battle = 2; //布阵信息 -} - -//战斗请求 回应 -message CombatChallengeResp { - ErrorCode code = 1; //是否成功 - int32 manster = 2; - BattleInfo info = 3; -} - -//战斗奖励领取 -message CombatChallengeReceiveReq { - int32 manster = 1; - BattleReport report = 2; //战报 -} -//战斗奖励领取 -message CombatChallengeReceiveResp { bool issucc = 1; } - -//宝箱获取请求 -message CombatDropReq { - int32 drop = 1; //宝箱id -} - -//宝箱获取请求 -message CombatDropResp { - ErrorCode code = 1; //是否成功 - repeated UserAssets atns = 2; //获取物品 -} \ No newline at end of file diff --git a/src/pb/proto/comm.proto b/src/pb/proto/comm.proto index 3573af0..3dbb672 100644 --- a/src/pb/proto/comm.proto +++ b/src/pb/proto/comm.proto @@ -5,9 +5,9 @@ import "google/protobuf/any.proto"; //用户消息流结构1 message UserMessage { - string MainType = 1; //用户消息处理 模块名 例如:user 对应项目中 user的模块 - string SubType = 2; //用户消息处理函数名 例如:login 对应项目中 user的模块中 - // api_login 的处理函数 + string MainType = 1; //用户消息处理 模块名 例如:user 对应项目中 user的模块 + string SubType = 2; //用户消息处理函数名 例如:login 对应项目中 user的模块中 + // api_login 的处理函数 string servicePath = 3; // 消息路由地址 部分消息前端确定转发给谁 \worker\worker0 google.protobuf.Any data = 4; string sec = 5; //密文 @@ -93,6 +93,11 @@ enum HeroAttributesType { Crit = 4; //暴击 } +message SkillData { + int32 skillID = 1; + int32 skillLv = 2; +} + //用户资产数据 对标*cfg.Game_atn 数据结构 message UserAssets { string A = 1; @@ -100,6 +105,14 @@ message UserAssets { int32 N = 3; } +// ATNO 类型 +message UserAtno { + string A = 1; + string T = 2; + int32 N = 3; + string O = 4; +} + message TaskParam { int32 first = 1; //限定条件 int32 second = 2; //次数 @@ -109,4 +122,55 @@ message RtaskParam { int32 param1 = 1; int32 param2 = 2; int32 param3 = 3; +} + +message UIdReq { string uid = 1; } + +message NameReq { string name = 1; } + +message EmptyReq {} +message EmptyResp {} +// rpc 通用请求消息 1 +message RPCGeneralReqA1 { string param1 = 1; } +// rpc 通用请求消息 1 +message RPCGeneralReqA2 { + string param1 = 1; + string param2 = 2; +} +// rpc 通用请求消息 1 +message RPCGeneralReqA3 { + string param1 = 1; + string param2 = 2; + string param3 = 3; +} +// rpc 通用请求消息 1 +message RPCGeneralReqA4 { + string param1 = 1; + string param2 = 2; + string param3 = 3; + string param4 = 4; +} + +// rpc 通用请求消息 1 +message RPCRTaskReq { + string uid = 1; + int32 taskType = 2; + repeated int32 param = 3; +} + +//服务列表信息 +message ServiceDBInfo{ + string serverid = 1; //@go_tags(`bson:"serverid"`) + string serverName = 2; //@go_tags(`bson:"serverName"`) + string owner = 3; //@go_tags(`bson:"owner"`) + string cross = 4; //@go_tags(`bson:"cross"`) + string crossId = 5; //@go_tags(`bson:"crossId"`) + string singleserver = 6; //@go_tags(`bson:"singleserver"`) + int64 opentime = 7; //@go_tags(`bson:"opentime"`) + bool redisIsCluster = 8; //@go_tags(`bson:"redisIsCluster"`) + repeated string redisAddr = 9; //@go_tags(`bson:"redisAddr"`) + string redisPassword = 10; //@go_tags(`bson:"redisPassword"`) + int32 redisDb = 11; //@go_tags(`bson:"redisDb"`) + string MongodbUrl = 12; //@go_tags(`bson:"MongodbUrl"`) + string mongodbDatabase = 13; //@go_tags(`bson:"mongodbDatabase"`) } \ No newline at end of file diff --git a/src/pb/proto/enchant/enchant_db.proto b/src/pb/proto/enchant/enchant_db.proto new file mode 100644 index 0000000..04f9481 --- /dev/null +++ b/src/pb/proto/enchant/enchant_db.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_msg.proto"; + +message DBEnchant { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map boss = 3; // key boss 类型 value 积分 + int32 buyCount = 4;//@go_tags(`bson:"buyCount"`) 购买次数 + int64 cTime = 5; //@go_tags(`bson:"cTime"`) 修改时间 + map bossTime = 6; //@go_tags(`bson:"bossTime"`) + int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) // 开始恢复的时间 +} + +// 排行榜 +message DBEnchantRank { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + int32 bosstype = 3; // boss类型塔类型 + string nickname = 4;// 昵称 + int32 lv = 5; // 玩家等级 + int32 leadpos = 6; //队长位置 + repeated LineUp line = 7; // 阵容数据 + int32 costTime = 8; //@go_tags(`bson:"costTime"`) 闯关耗时 单位s + int64 score = 9; //@go_tags(`bson:"score"`) +} \ No newline at end of file diff --git a/src/pb/proto/enchant/enchant_msg.proto b/src/pb/proto/enchant/enchant_msg.proto new file mode 100644 index 0000000..4e33594 --- /dev/null +++ b/src/pb/proto/enchant/enchant_msg.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "enchant/enchant_db.proto"; +import "battle/battle_msg.proto"; +message EnchantGetListReq { + +} + +message EnchantGetListResp { + DBEnchant data = 1; +} + +// 挑战 +message EnchantChallengeReq { + int32 bossType = 1; // boos 类型 + BattleFormation battle = 2; +} + +message EnchantChallengeResp { + BattleInfo info = 1; + int32 bossType = 2; // boos 类型 +} + +message EnchantChallengeOverReq { + int32 bossType = 1; // boos 类型 + BattleReport report = 2; //战报 + int64 score = 3; //获得积分 或伤害 +} + +// 客户端通知服务器打赢了 +message EnchantChallengeOverResp { + DBEnchant data = 1; +} + +// 购买 +message EnchantBuyReq { + int32 count = 1;// 购买次数 +} + +message EnchantBuyResp { + DBEnchant data = 1; +} + +// 排行榜 +message EnchantRankListReq{ + int32 boosType = 1; // boss 类型 + bool friend = 2; // 是否是好友榜 +} + +message EnchantRankListResp{ + repeated DBEnchantRank ranks = 1; // 排行数据 有序的 注意boss类型 +} \ No newline at end of file diff --git a/src/pb/proto/equipment_db.proto b/src/pb/proto/equipment/equipment_db.proto similarity index 62% rename from src/pb/proto/equipment_db.proto rename to src/pb/proto/equipment/equipment_db.proto index 95e1095..f4a2317 100644 --- a/src/pb/proto/equipment_db.proto +++ b/src/pb/proto/equipment/equipment_db.proto @@ -9,11 +9,21 @@ message EquipmentAttributeEntry { int32 Lv = 4; //属性等级 int32 Value = 5; //属性值 int32 BaseValue = 6; //基础属性 + int32 EnchValue =7; //附魔属性 +} + +//装备技能词条 特殊装备/武器or饰品 +message EquipmentSkillEntry { + int32 Id = 1; //属性词条主键id 唯一 + int32 libraryid = 2; //属性词条id 非唯一 + string AttrName = 3; //属性名 + int32 SkillId = 4; //技能id + int32 Lv = 5; //属性等级 } //武器数据 message DB_Equipment { - string Id = 1; //@go_tags(`bson:"_id"`) 装备id + string Id = 1; //@go_tags(`bson:"_id"`) 装备id string cId = 2; //@go_tags(`bson:"cId"`) 配置Id string uId = 3; //@go_tags(`bson:"uid"`) 所属玩家Id string heroId = 4; //@go_tags(`bson:"heroId"`) 挂在的英雄卡片id 未装备 填 '' @@ -22,8 +32,10 @@ message DB_Equipment { EquipmentAttributeEntry mainEntry = 7; //@go_tags(`bson:"mainEntry"`) 装备主词条 repeated EquipmentAttributeEntry adverbEntry = - 8; //@go_tags(`bson:"adverbEntry"`) 装备副词条 - uint32 overlayNum = 9; //@go_tags(`bson:"overlayNum"`) 叠加数量 + 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"`) 是否锁 + repeated EquipmentSkillEntry adverbskill = + 12; //@go_tags(`bson:"adverbskill"`) 装备副技能 } \ No newline at end of file diff --git a/src/pb/proto/equipment_msg.proto b/src/pb/proto/equipment/equipment_msg.proto similarity index 62% rename from src/pb/proto/equipment_msg.proto rename to src/pb/proto/equipment/equipment_msg.proto index 561cac7..220ab8f 100644 --- a/src/pb/proto/equipment_msg.proto +++ b/src/pb/proto/equipment/equipment_msg.proto @@ -1,6 +1,7 @@ syntax = "proto3"; option go_package = ".;pb"; -import "equipment_db.proto"; +import "equipment/equipment_db.proto"; +import "comm.proto"; //获取装备列表请求 message EquipmentGetListReq {} @@ -54,4 +55,42 @@ message EquipmentLockResp { message EquipmentSellReq { repeated string EquipIds = 1; } //出售道具请求 回应 -message EquipmentSellResp { bool IsSucc = 1; } \ No newline at end of file +message EquipmentSellResp { bool IsSucc = 1; } + +//锻造请求 +message EquipmentForgReq { + int32 forgid = 1; + int32 num = 2; +} + +//锻造请求 回应 +message EquipmentForgResp { + bool issucc = 1; + repeated UserAssets reward = 2; +} + +//洗练 +message EquipmentWashReq { string eid = 1; } +message EquipmentWashResp { + string eid = 1; + repeated EquipmentAttributeEntry adverbEntry = 2; +} + +//洗练确认 +message EquipmentWashConfirmReq { + string eid = 1; + repeated int32 pids = 2; +} +message EquipmentWashConfirmResp { bool issucc = 1; } + +//装备附魔 请求 +message EquipmentEnchReq { + string eid = 1; + string itemid = 2; + int32 index = 3; +} +//装备附魔 回应 +message EquipmentEnchResp { + bool issucc = 1; + DB_Equipment Equipment = 2; +} \ No newline at end of file diff --git a/src/pb/proto/errorcode.proto b/src/pb/proto/errorcode.proto index 40fdab4..51f5584 100644 --- a/src/pb/proto/errorcode.proto +++ b/src/pb/proto/errorcode.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = ".;pb"; - +// go:generate stringer -type ErrorCode -linecomment enum ErrorCode { Success = 0; //成功 NoFindService = 10; //没有找到远程服务器 @@ -26,23 +26,31 @@ enum ErrorCode { ConfigurationException = 103; //配置异常 ConfigNoFound = 104; //配置未找到 UserLogined = 105; //已在其它终端登录 + NoOpened = 106; //模块未开放 // 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; //扩展数据空 - UserExpNoEnough = 1013; //经验不足 - UserFriendNoEnough = 1014; //友情点不足 + 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; //友情点不足 + UserSociatyCoinNoEnough = 1015; //公会币不足 + UserArenaCoinNoEnough = 1016; //竞技场币不足 + UserVitNoEnough = 1017; //体力不足 + UserVitLimit = 1018; //体力达到最大上限 + UserMoongoldNoEnough=1019; //纯净月髓不足 + UserOffline = 1020; //玩家不在线 + UserNofound = 1021; //未查询到玩家 // friend FriendNotSelf = 1100; //不能是自己 @@ -62,6 +70,11 @@ enum ErrorCode { FriendZanSelf = 1114; //不能给自己点赞 FriendPointLimit = 1115; //友情点上线 FriendNoreceived = 1116; //未更换助战没有可领取的奖励 + FriendQiecuoTimeout = 1117; //切磋请求超时 + FriendQiecuoRequested = 1118; //已发送切磋请求 + FriendQiecuoNoRequest = 1119; //无切磋请求 + FriendQiecuoing = 1120; //好友切磋中 + FriendQiecuoTargetPk = 1121; //目标已经在战斗 // item ItemsNoEnough = 1200; //背包物品不足 @@ -70,6 +83,7 @@ enum ErrorCode { ItemsGirdAmountUpper = 1203; //背包格子容量已达上限 ItemsUseNotSupported = 1204; //暂不支持使用 ItemsUseNoCanSell = 1205; //道具不支持出售 + ItemsBuyPsUpperLimit = 1206; //体力购买达到上限 // hero HeroNoExist = 1300; //英雄不存在 @@ -97,6 +111,7 @@ enum ErrorCode { DrawCardTypeNotFound = 1322; // 抽卡类型不匹配 HeroMaxSkillLv = 1323; // 达到最大技能等级 HeroAlreadyKongFuStatus = 1324; // 已经是练功状态 + HeroLvNoEnough = 1325; // 英雄等级不足 // equipment EquipmentOnFoundEquipment = 1400; // 未找到武器 @@ -111,6 +126,7 @@ enum ErrorCode { MainlinePreNotFound = 1503; // 前置关卡不匹配 MainlineRepeatReward = 1504; // 重复领奖 MainlineCompleteReward = 1505; // 通关才能领奖 + MainlineNoEnoughStar = 1506; // 扫荡通关星级不够 // task TaskInit = 1600; //初始化失败 @@ -174,15 +190,129 @@ enum ErrorCode { BattleNoFoundRecord = 2501; // 未找到记录 LinestoryTaskFinished = 2601; //任务已完成 - LinestorySubTaskFinished = 2602; //子任务已完成 + LinestoryNoReceive = 2602; //章节奖励不能领取 LinestoryTaskDisabledEnter = 2603; //禁止进入 - LinestoryPreTaskNoFinished = 2604; //前置任务未完成 + LinestoryChapterNoOpen = 2604; //章节未开启 + LinestoryPreNoComplete = 2605; //前置任务未完成 // hunting HuntingLvErr = 2701; // 关卡难度不匹配 HuntingBoosType = 2702; // BOSS 类型不对 HuntingBuyMaxCount = 2703; // 购买达到最大次数 HuntingMaxChallengeCount = 2704; // 挑战达到最大次数 + HuntingNoChallengeCount = 2705; // 挑战次数不足 + + // Enchant + EnchantLvErr = 2711; // 关卡难度不匹配 + EnchantBoosType = 2712; // BOSS 类型不对 + EnchantBuyMaxCount = 2713; // 购买达到最大次数 + EnchantMaxChallengeCount = 2714; // 挑战达到最大次数 + EnchantNoChallengeCount = 2715; // 挑战达到最大次数 // library - LibraryMaxLv = 2801; // 达到最大等级 + LibraryMaxLv = 2801; // 达到最大等级 + LibraryNoData = 2802; // 没找到羁绊数据 + LibraryActivation = 2803; // 已经是激活状态 + LibraryReward = 2804; // 已经领取奖励 + LibraryLvReward = 2805; // 领奖等级没达到 + LibraryFetterTaskNoFound = 2806; //未找到羁绊任务数据 + LibraryPreTaskNoFinished = 2807; //前置任务未完成 + + // Battle + BattleValidationFailed = 2901; //战斗校验失败 + BattleNoWin = 2902; //战斗失败 + BattleCreateFailed = 2903; //创建战斗失败 + BattleInCmdFailed = 2904; //战斗指令输入失败 + BattleUserOff = 2905; //由用户离线 + + // sociaty + SociatyNoFound = 3000; //公会不存在 + SociatyAdded = 3001; //已在公会里 + SociatyDiamondNoEnough = 3002; //钻石不足 + SociatyNoMember = 3003; //不是公会成员 + SociatyNoRight = 3004; //无权限 + SociatyNoAdded = 3005; //未加入公会 + SociatyDismiss = 3006; //解散失败 + SociatyQuit = 3007; //退会失败 + SociatyAgree = 3008; //申请-同意失败 + SociatyRefuse = 3009; //申请-拒绝失败 + SociatyLogParams = 30010; //公会日志参数错误 + SociatyMasterNoDiss = 30011; //会长不能被踢出 + SociatySettingJob = 30012; //设置职位失败 + SociatySetting = 30013; //公会修改失败 + SociatyNoAccuse = 30014; //无需弹劾 + SociatySign = 30015; //签到失败 + SociatySigned = 30016; //已签到 + SociatyCDLimit = 30017; // CD时间限制 + SociatyApplyMax = 30018; //最大申请该公会人数 + SociatySelfSetting = 30019; // 不能设置自己 + SociatyMemberCountLimit = 30020; //超出人数限制 + SociatyRewardReceived = 30021; //奖励已领取 + SociatyRewardReceive = 30022; //奖励领取失败 + SociatyResource = 30023; //更新公会资源失败 + SociatyBelongTo = 30025; //已是公会成员 + SociatyApplied = 30026; //已申请 + SociatyAppyLvNoEnough = 30027; //申请等级不满足 + SociatyTaskValidation = 30028; //任务未完成 + SociatyActivityNoEnough = 30029; //活跃度不足 + SociatyAcitvityReceive = 30030; //活跃度领取失败 + SociatyDismissed = 30031; //公会已解散 + SociatyNameExist = 30032; //公会名存在 + SociatyQuitNoAllowed = 30033; //会长不允许退公会 + SociatyNoMaster = 30034; //无会长 + SociatyNoFormation = 30035; //无阵容 + SociatyTicketsNoEnough = 30036; //挑战券不足 + SociatySportsNoinit = 30037; //赛季未初始 + SociatySportsEnd = 30038; //赛季已结束 + SociatyTeamUnlock = 30039; //队伍解锁条件不满足 + SociatyTaskNoFound = 30040; //未找到boss任务 + SociatyTaskNoFinished = 30041; //任务未完成 + SociatyTaskReceived = 30042; //任务奖励已领取 + + // arena + ArenaTicketBuyUp = 3101; //票据上限 + ArenaTicketNotEnough = 3102; //票据不足 + ArenaTicketNpcInCd = 3103; // cd中 + // talent + TalentRepeatLearn = 3201; // 天赋已学习 + TalentErrData = 3202; /// 天赋不存在 + TalentUnLockerBefore = 3203; //先解锁前置天赋 + TalentResetState = 3204; //当前天赋已经是重置状态 + // trolltrain + TrollBuyMax = 3301; //买入上限 + TrollSellMax = 3302; // 卖出上限 + TrollMaxSellCount = 3303; // 单日最大交易次数 + TrollMaxItemCount = 3304; //背包格子达到上限 + TrollRepeatedReward = 3305; //奖励重复领取 + // horoscope + HoroscopeNotTurnedOn = 3401; //未开启 + HoroscopeRestCDNoEnd = 3402; //重置cd未结束 + // privileges + PrivilegeNotFound = 3501; // 特权没激活 + PrivilegeRenewTime = 3502; // 特权续费时间没到 + VipLvError = 3503; // Vip等级不足 + VipGiftError = 3504; // Vip礼包购买失败 + VipBuyRepeat = 3505; // Vip礼包重复购买 + + // growtask + GrowtaskReceive = 3601; //子任务奖励领取失败 + GrowtaskAdvReceive = 3602; //进阶奖励领取失败 + + // pay + PayBuyNumNotEnough = 3701; //支付次数不足 + PayRenewTimeErr = 3702; // 续费时间没达到要求 + PayOrderCompleted = 3703; // 订单已完成 + // worldtask + WorldtaskFinish = 3801; //任务完成失败 + WorldtaskLvNotEnough = 3802; //等级不满足 + WorldtaskNoAccept = 3803; //不能接取 + WorldtaskNoComplete = 3804; //任务条件未完成 + WorldtaskFinihed = 3805; //任务已完成 + WorldtaskLastUnFinished = 3806; //上个任务未完成 + WorldtaskGroupIdNosame = 3807; //组ID不一致 + + // academy + AcademyTaskNoCompleteTask = 3901; //未完成任务 + // AutoBattle + AutoBattleNoData = 4001; //没有正在自动战斗的数据 + AutoBattleStatesErr = 4002; // 自动战斗状态错误 } \ No newline at end of file diff --git a/src/pb/proto/forum/forum_db.proto b/src/pb/proto/forum/forum_db.proto new file mode 100644 index 0000000..fd0dbb0 --- /dev/null +++ b/src/pb/proto/forum/forum_db.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +enum CommentState { + Release = 0; //发布 + Offline = 1; //下架 +} + +//评论数据 +message DBComment { + 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; //用户名 + int32 ulv = 8; + CommentState state = 9; //状态 + int64 ctime = 10; //发布时间 + string content = 11; //内容 + int32 starlist = 12; //点赞数 +} diff --git a/src/pb/proto/forum/forum_msg.proto b/src/pb/proto/forum/forum_msg.proto new file mode 100644 index 0000000..3482421 --- /dev/null +++ b/src/pb/proto/forum/forum_msg.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "forum/forum_db.proto"; +import "hero/hero_db.proto"; +import "equipment/equipment_db.proto"; + +//获取评论列表 +message ForumGetListReq { + string herocid = 1; //英雄配置id +} + +//获取评论回应 +message ForumGetListResp { repeated DBComment comment = 1; } + +//发布评论请求 +message ForumReleaseCommentReq { + string avatar = 1; //用户头像 + string uname = 2; //用户名 + int32 ulv = 3; //用户等级 + string herocid = 4; //英雄的配置id + string herooid = 5; //英雄的实例id + string content = 6; //评论内容 +} + +//发布评论回应 +message ForumReleaseCommentResp { DBComment comment = 1; } + +//查看英雄信息请求 +message ForumWatchHeroReq { + string uid = 1; //用户id + string stag = 2; //区服id + string herocId = 3; //用户cid + string herooId = 4; //英雄实例id +} +//查看英雄信息回应 +message ForumWatchHeroResp { + DBHero hero = 1; + repeated DB_Equipment equipID = 2; // 装备详细信息 +} + +//请求点赞 请求 +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; //成功失败 +} \ No newline at end of file diff --git a/src/pb/proto/forum_db.proto b/src/pb/proto/forum_db.proto deleted file mode 100644 index 99da7fa..0000000 --- a/src/pb/proto/forum_db.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; - -enum CommentState { - Release = 0; //发布 - Offline = 1; //下架 -} - -//评论数据 -message DBComment { - 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; //点赞数 -} diff --git a/src/pb/proto/forum_msg.proto b/src/pb/proto/forum_msg.proto deleted file mode 100644 index 13e7929..0000000 --- a/src/pb/proto/forum_msg.proto +++ /dev/null @@ -1,55 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "forum_db.proto"; -import "hero_db.proto"; - - -//获取评论列表 -message ForumGetListReq { - string herocid = 1; //英雄配置id -} - -//获取评论回应 -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; //评论内容 -} - -//发布评论回应 -message ForumReleaseCommentResp { - DBComment comment = 1; -} - -//查看英雄信息请求 -message ForumWatchHeroReq { - string uid = 1; //用户id - string stag = 2; //区服id - string herocId = 3; //用户cid - string herooId = 4; //英雄实例id -} -//查看英雄信息回应 -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; //成功失败 -} \ No newline at end of file diff --git a/src/pb/proto/friend/friend_db.proto b/src/pb/proto/friend/friend_db.proto new file mode 100644 index 0000000..8845bbf --- /dev/null +++ b/src/pb/proto/friend/friend_db.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "hero/hero_db.proto"; + +message DBFriend { + string uid = 1; //@go_tags(`bson:"uid"`) 用户ID + 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 + int32 received = 8; //@go_tags(`bson:"received"`) 领取奖励状态0未领1可领2已领 + int64 updateTime = 9; //@go_tags(`bson:"updateTime"`) 更新时间 + DBHero hero = 10; //@go_tags(`bson:"hero"`) 助战英雄副本 + int32 assistScore = 11; //@go_tags(`bson:"zhuzhanScore"`) 助战分数合计 + repeated AssistRecord record = 12; //@go_tags(`bson:"record"`) 助战记录 +} + +//助战记录 +message AssistRecord { + string uid = 1; //@go_tags(`bson:"uid"`) 好友Id + int64 assistTime = 2; //@go_tags(`bson:"zhuzhanTime"`) 上次助战时间 + string assistHeroId = 3; //@go_tags(`bson:"assistHeroId"`) 助战英雄 +} + +//切磋请求记录 +message QiecuoRecord{ + string uid = 1; //@go_tags(`bson:"uid"`) 切磋发起人 + string targetId = 2; //@go_tags(`bson:"targetId"`) 切磋接受人 + int32 status = 3; //@go_tags(`bson:"status"`) 0默认 1已发送 2已接收 + string matchId = 4; //@go_tags(`bson:"matchId"`) 战斗ID + int64 timestamp = 5; //@go_tags(`bson:"timestamp"`) 切磋发起时间戳 +} \ No newline at end of file diff --git a/src/pb/proto/friend_msg.proto b/src/pb/proto/friend/friend_msg.proto similarity index 63% rename from src/pb/proto/friend_msg.proto rename to src/pb/proto/friend/friend_msg.proto index 9ec9858..b5218d9 100644 --- a/src/pb/proto/friend_msg.proto +++ b/src/pb/proto/friend/friend_msg.proto @@ -1,6 +1,8 @@ syntax = "proto3"; option go_package = ".;pb"; +import "friend/friend_db.proto"; + message FriendBase { string userId = 1; // ID string NickName = 2; //昵称 @@ -8,11 +10,13 @@ message FriendBase { string avatar = 4; //头像 int64 strength = 5; //战力 string serverId = 6; //服务编号 - int64 offlineTime = 7; //最近一次下线时间 0在线 + int64 offlineTime = 7; //最近一次下线时间 -1在线 bool isApplied = 8; //是否已申请加好友 bool isZaned = 9; //是否已点赞 bool isGetZaned = 10; //是否已获赞 string heroObjId = 11; //助战英雄ID + int32 score = 12; //助战分数 + int64 updateTime = 13; //更新时间 } //好友列表 @@ -68,7 +72,7 @@ message FriendSearchReq { string nickName = 1; //好友昵称 } -message FriendSearchResp { FriendBase friend = 1; } +message FriendSearchResp { repeated FriendBase friends = 1; } //黑名单 message FriendBlackListReq {} @@ -123,10 +127,64 @@ message FriendAssistheroResp { //助战列表 message FriendAssistlistReq {} message FriendAssistlistResp { - repeated FriendBase list = 1; - string heroObjId = 2; + repeated FriendBase list = 1; //好友助战排行 + string heroObjId = 2; //助战英雄 + repeated AssistRecord record = 3; //我的助战记录 } // 助战奖励 message FriendGetrewardReq {} -message FriendGetrewardResp { int32 received = 1; } \ No newline at end of file +message FriendGetrewardResp { int32 received = 1; } + +// 助战英雄更新推送 +message FriendAssistHeroUpdatePush { + FriendBase friend = 1; //好友 +} + +//好友助战英雄列表 +message FriendAssistHeroListReq {} +message FriendAssistHeroListResp { repeated FriendBase friends = 1; } + +// 查询是否已申请目标玩家为好友或目标玩家是否已是好友 +message FriendGetRelationReq{ + string targetUid = 1; //目标玩家ID +} + +message FriendGetRelationResp{ + string targetUid = 1; + bool status = 2; //已是好友或已申请返回true +} + +// 切磋请求 +message FriendQiecuoReq{ + string targetUid = 1; //切磋目标玩家UID +} + +message FriendQiecuoResp{ + string targetUid =1; //切磋目标 + string uid = 2; //发起者 +} + +//接受切磋 +message FriendAcceptReq{ + string uid = 1; //切磋发起者 +} + +message FriendAcceptResp{ + bool isSucc = 1; +} + +//拒绝切磋 +message FriendStopReq{ + string uid = 1; //切磋发起者 +} + +message FriendStopResp{ + bool isSucc = 1; + +} + +message FriendQiecuonotifyPush{ + string uid = 1; //发起者(切磋) + int32 notifyType = 2; //1发起通知 2接受通知 3拒绝通知 +} \ No newline at end of file diff --git a/src/pb/proto/friend_db.proto b/src/pb/proto/friend_db.proto deleted file mode 100644 index 9eb0e3d..0000000 --- a/src/pb/proto/friend_db.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; - -message DBFriend { - string uid = 1; //@go_tags(`bson:"uid"`) 用户ID - 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 - int32 received = 8; //@go_tags(`bson:"received"`) 领取奖励状态0未领1可领2已领 - int64 updateTime = 9; //@go_tags(`bson:"updateTime"`) 更新时间 -} \ No newline at end of file diff --git a/src/pb/proto/gateway/gateway_msg.proto b/src/pb/proto/gateway/gateway_msg.proto new file mode 100644 index 0000000..c5d1b97 --- /dev/null +++ b/src/pb/proto/gateway/gateway_msg.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +//网关心跳 请求 +message GatewayHeartbeatReq { + +} + +//网关心跳 请求回应 +message GatewayHeartbeatResp { + int64 timestamp = 1; +} \ No newline at end of file diff --git a/src/pb/proto/gm_msg.proto b/src/pb/proto/gm/gm_msg.proto similarity index 100% rename from src/pb/proto/gm_msg.proto rename to src/pb/proto/gm/gm_msg.proto diff --git a/src/pb/proto/gourmet_db.proto b/src/pb/proto/gourmet/gourmet_db.proto similarity index 87% rename from src/pb/proto/gourmet_db.proto rename to src/pb/proto/gourmet/gourmet_db.proto index 3166213..6ed93ac 100644 --- a/src/pb/proto/gourmet_db.proto +++ b/src/pb/proto/gourmet/gourmet_db.proto @@ -18,11 +18,12 @@ message OrderCook{ message DBGourmet { string id = 1; //@go_tags(`bson:"_id"`) ID string uid = 2; //@go_tags(`bson:"uid"`) 用户ID - Cooking cookingFood = 3; //@go_tags(`bson:"cooking"`) 正在烹饪的食品 + Cooking cookingFood = 3; //@go_tags(`bson:"cookingFood"`) 正在烹饪的食品 repeated OrderCook foods = 4; //@go_tags(`bson:"foods"`) 等待烹饪的食品 repeated UserAssets items = 5; //@go_tags(`bson:"items"`) 已经做好的食品 map skill = 6; //@go_tags(`bson:"skill"`) 技能ID map specialSkill = 7; //@go_tags(`bson:"specialSkill"`) 通用技能 int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`) 订单消耗的时常 int64 ctime = 9; // 订单创建时间 + int32 totalTime = 10;//@go_tags(`bson:"totalTime"`) } \ No newline at end of file diff --git a/src/pb/proto/gourmet_msg.proto b/src/pb/proto/gourmet/gourmet_msg.proto similarity index 75% rename from src/pb/proto/gourmet_msg.proto rename to src/pb/proto/gourmet/gourmet_msg.proto index 4cf94ab..bc46cca 100644 --- a/src/pb/proto/gourmet_msg.proto +++ b/src/pb/proto/gourmet/gourmet_msg.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option go_package = ".;pb"; -import "gourmet_db.proto"; - +import "gourmet/gourmet_db.proto"; +import "user/user_db.proto"; // 查询塔进度 message GourmetGetListReq { @@ -35,4 +35,12 @@ message GourmetSkillLvReq{ message GourmetSkillLvResp{ DBGourmet data = 1; +} + +message GourmetGetRandUserReq{ + int32 people = 1;//人数 +} + +message GourmetGetRandUserResp{ + repeated DBUser user = 1; } \ No newline at end of file diff --git a/src/pb/proto/growtask/growtask_db.proto b/src/pb/proto/growtask/growtask_db.proto new file mode 100644 index 0000000..ef07de0 --- /dev/null +++ b/src/pb/proto/growtask/growtask_db.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +message DBGrowtask { + string uid = 1; //@go_tags(`bson:"uid"`) 用户ID + repeated Growtask initTaskList = + 2; //@go_tags(`bson:"initTaskList"`) 初级任务列表 + repeated Growtask midTaskList = + 3; //@go_tags(`bson:"midTaskList"`) 中级任务列表 + repeated Growtask highTaskList = + 4; //@go_tags(`bson:"highTaskList"`) 高级任务列表 + int32 curTaskType = 5; //@go_tags(`bson:"curTaskType"`) 进行中的任务类型 + int32 advReceive = 6; //@go_tags(`bson:"advReceive"`) 已领取的进阶奖励ID +} + +//任务状态 +enum GrowtaskStatus { + Lock = 0; //锁定 + Ongoing = 1; //进行中 + Wait = 2; //待领奖 + Finish = 3; //完成 +} + +message Growtask { + int32 id = 1; //@go_tags(`bson:"id"`) 配置ID + int32 taskType = 2; //@go_tags(`bson:"taskType"`) 任务类型 + GrowtaskStatus status = 3; //@go_tags(`bson:"status"`) 任务状态 + int32 fstask = 4; //@go_tags(`bson:"fstask"`) 任务条件 + int32 preTask = 5; //@go_tags(`bson:"preTask"`) 前置任务ID +} \ No newline at end of file diff --git a/src/pb/proto/growtask/growtask_msg.proto b/src/pb/proto/growtask/growtask_msg.proto new file mode 100644 index 0000000..f70bf78 --- /dev/null +++ b/src/pb/proto/growtask/growtask_msg.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "growtask/growtask_db.proto"; + +// 成长任务列表 +message GrowtaskListReq { + int32 taskType = 1; //任务类型1初级2中级3高级 +} +message GrowtaskListResp { + repeated Growtask taskList = 1; + int32 curTaskType = 2; // 进行中的任务类型 + int32 advReceive = 3; //已领取的进阶奖励ID + int32 curTaskId = 4; // 当前未完成的任务ID +} + +//子任务奖励领取 +message GrowtaskReceiveReq { + int32 taskId = 1; //子任务ID +} +message GrowtaskReceiveResp { int32 taskId = 1; } + +//进阶奖励领取 +message GrowtaskAdvReceiveReq { + int32 taskType = 1; //任务类型 +} + +message GrowtaskAdvReceiveResp { int32 taskType = 1; } \ No newline at end of file diff --git a/src/pb/proto/hero/hero_db.proto b/src/pb/proto/hero/hero_db.proto new file mode 100644 index 0000000..b9921dd --- /dev/null +++ b/src/pb/proto/hero/hero_db.proto @@ -0,0 +1,67 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "comm.proto"; + +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 + int32 star = 4; // 英雄星级 + int32 lv = 5; // 英雄等级 + int32 exp = 6; // 英雄经验 + int32 juexingLv = 7; //@go_tags(`bson:"juexingLv"`) 觉醒等级 + int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`) 队长技能 + repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`) 普通技能 + map property = 10; // 属性相关 + map 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 sameCount = 20; // @go_tags(`bson:"sameCount"`) 卡片叠加数量 + int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) 套装Id + int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) 扩展套装Id + + map 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"`) + map talentProperty = 31; //@go_tags(`bson:"talentProperty"`) // 天赋属性 + repeated SkillData equipSkill = 32; //@go_tags(`bson:"equipSkill"`) 装备技能 + map horoscopeProperty = 33; //@go_tags(`bson:"horoscopeProperty"`) //星座属性加成 +} + + +//英雄扩展数据 +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; // 普通卡牌累计抽取次数 + map condition = 7; // key recharge、login 等 value 累计抽卡次数 + map star5Hero = 8;// 第totalcount 次抽到的5星英雄 key 英雄id + int32 totalcount = 9;// 总的累计抽卡次数 + int32 daycount = 10; // 今天抽卡次数 + int32 onebuy = 11; // 单次购买次数 + int32 tenbuy = 12; // 十连购买次数 + int32 inevitable = 13;//第2-30次抽奖必出一个5星英雄 + int32 inevitable1 = 14;//第30-50次抽奖必出一个5星英雄 +} + +// 英雄天赋系统 +message DBHeroTalent { + string id = 1; //@go_tags(`bson:"_id"`) ID 主键id + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + string heroId = 3; // 英雄ID + map talent = 4; // 已经学习过的天赋 +} \ No newline at end of file diff --git a/src/pb/proto/hero_msg.proto b/src/pb/proto/hero/hero_msg.proto similarity index 59% rename from src/pb/proto/hero_msg.proto rename to src/pb/proto/hero/hero_msg.proto index 7ed53b1..8377a9f 100644 --- a/src/pb/proto/hero_msg.proto +++ b/src/pb/proto/hero/hero_msg.proto @@ -1,12 +1,17 @@ syntax = "proto3"; option go_package = ".;pb"; -import "hero_db.proto"; +import "hero/hero_db.proto"; +import "comm.proto"; //英雄基础信息 message HeroInfoReq { - string heroId = 1; //英雄唯一ID + string uid = 1; // uid 查自己不传也可以 + repeated string heroId = 2; //英雄唯一ID +} +message HeroInfoResp { + string uid = 1; + repeated DBHero base = 2; } -message HeroInfoResp { DBHero base = 1; } //英雄列表 message HeroListReq {} @@ -17,11 +22,6 @@ message HeroListResp { repeated DBHero list = 1; } /// 卡牌养成: 共鸣(共鸣消耗、材料返回、能量点使用) /// 卡牌养成: 觉醒(英雄觉醒、材料消耗) -message ItemData { - int32 itemId = 2; //物品Id - int32 amount = 3; //数量 -} - message MapStringInt32 { string Key = 1; int32 Value = 2; @@ -30,7 +30,7 @@ message MapStringInt32 { // 卡牌升级 message HeroStrengthenUplvReq { string heroObjID = 1; // 英雄对象ID - repeated MapStringInt32 expCards = 2; + map item = 2;// key itemid value 数量 } // 卡牌升级返回 @@ -38,15 +38,9 @@ message HeroStrengthenUplvResp { DBHero hero = 1; // 英雄对象 } -message CostCardData { - string costCardObj = 1; // 对象ID - int32 amount = 2; // 数量 -} // 卡牌升星 message HeroStrengthenUpStarReq { string heroObjID = 1; // 英雄对象ID - repeated CostCardData hero = 2; // 消耗卡牌对象ID - repeated CostCardData heroRace = 3; // 消耗种族卡牌对象ID } // 卡牌升星返回 @@ -57,7 +51,7 @@ message HeroStrengthenUpStarResp { // 卡牌技能升级 message HeroStrengthenUpSkillReq { string heroObjID = 1; // 英雄对象ID - repeated string costCardObj = 2; // 消耗技能升级卡 + repeated string item = 2;// } // 卡牌技能升级返回 @@ -65,42 +59,6 @@ message HeroStrengthenUpSkillResp { DBHero hero = 1; // 英雄对象 } -// 共鸣英雄 -message HeroResonanceReq { - string heroObjID = 1; // 英雄对象ID - repeated string costObjID = 2; // 消耗对象 -} - -message HeroResonanceResp { - DBHero hero = 1; // 英雄对象 - int32 energy = 2; // 共鸣成功 获得的能量点数 - DBHero upStarCard = 3; //共鸣成功 获得的升星卡 -} - -// 重置共鸣属性 -message HeroResonanceResetReq { - string heroObjID = 1; // 英雄对象ID -} - -message HeroResonanceResetResp { - DBHero hero = 1; // 英雄对象 - int32 energy = 2; // 能量点数 -} - -message EnergyData{ - int32 useEnergy = 1; // 使用的能量点数 - string useType = 2; // 使用的类型 (攻击、血量、防御) -} -// 使用能量点数 -message HeroResonanceUseEnergyReq { - string heroObjID = 1; // 英雄对象ID - repeated EnergyData energy = 2; -} - -message HeroResonanceUseEnergyResp { - DBHero hero = 1; // 英雄对象 -} - // 觉醒 message HeroAwakenReq { string heroObjID = 1; // 英雄对象ID @@ -145,8 +103,11 @@ message HeroDrawCardReq { int32 drawCount = 2;// 抽卡次数 } +message AtnoData{ + repeated UserAtno atno = 1; +} message HeroDrawCardResp { - repeated string heroes = 1; // 返回英雄的configID + repeated AtnoData data = 1; } // 英雄变化推送 @@ -160,5 +121,62 @@ message HeroDrawCardFloorReq { message HeroDrawCardFloorResp { int32 star4 = 1; int32 star5 = 2; + int32 onebuy = 3; // 单次购买次数 + int32 tenbuy = 4; // 十连购买次数 } +// 英雄融合 +message HeroFusionReq{ + string heroId = 1; // 英雄配置表id + map heros= 2; // key heroObjID value 数量 +} + +message HeroFusionResp{ + string heroid = 1; // 获得新英雄 +} + +// 天赋学习 +message HeroTalentListReq { + +} + +message HeroTalentListResp { + repeated DBHeroTalent telnet = 1; +} + +// 天赋学习 +message HeroTalentLearnReq { + int32 talentID = 1; // 天赋ID + string objId = 2; // 对象唯一id + string heroid = 3; //配置表的英雄id +} + +message HeroTalentLearnResp { + DBHeroTalent telnet = 1; + int32 talentID = 2; // 刚学习的天赋ID +} + +// 重置天赋 +message HeroTalentResetReq { + string objId = 1; // 对象唯一id +} + +message HeroTalentResetResp { + DBHeroTalent telnet = 1; +} + +message HeroBuyReq{ + int32 buyType = 1; //类型 + int32 buyCount =2;// 购买的数量 +} + +message HeroBuyResp{ + bool IsSucc = 1; + int32 onebuy = 3; // 单次购买次数 + int32 tenbuy = 4; // 十连购买次数 +} + +// 首次获得英雄 +message HeroFirstGetPush { + repeated string heroId = 1; //英雄id +} \ No newline at end of file diff --git a/src/pb/proto/hero_db.proto b/src/pb/proto/hero_db.proto deleted file mode 100644 index 1f61bc5..0000000 --- a/src/pb/proto/hero_db.proto +++ /dev/null @@ -1,60 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; - -message SkillData { - int32 skillID = 1; - 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 - int32 star = 4; // 英雄星级 - int32 lv = 5; // 英雄等级 - int32 exp = 6; // 英雄经验 - int32 juexingLv = 7; //@go_tags(`bson:"juexingLv"`) 觉醒等级 - int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`) 队长技能 - repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`) 普通技能 - map property = 10; // 属性相关 - map 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 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 energyProperty = 24; //@go_tags(`bson:"energyProperty"`) - map 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 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; // 普通卡牌累计抽取次数 -} \ No newline at end of file diff --git a/src/pb/proto/horoscope_db.proto b/src/pb/proto/horoscope/horoscope_db.proto similarity index 100% rename from src/pb/proto/horoscope_db.proto rename to src/pb/proto/horoscope/horoscope_db.proto diff --git a/src/pb/proto/horoscope_msg.proto b/src/pb/proto/horoscope/horoscope_msg.proto similarity index 81% rename from src/pb/proto/horoscope_msg.proto rename to src/pb/proto/horoscope/horoscope_msg.proto index 65d1a48..ddce5ab 100644 --- a/src/pb/proto/horoscope_msg.proto +++ b/src/pb/proto/horoscope/horoscope_msg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = ".;pb"; -import "horoscope_db.proto"; +import "horoscope/horoscope_db.proto"; //获取用户星座图信息 message HoroscopeInfoReq {} @@ -21,4 +21,7 @@ message HoroscopeUpgradeResp { //重置请求 message HoroscopeResetReq {} //重置请求 回应 -message HoroscopeResetResp { bool issucc = 1; } \ No newline at end of file +message HoroscopeResetResp { + bool issucc = 1; + DBHoroscope info = 2; +} \ No newline at end of file diff --git a/src/pb/proto/hunting/hunting_db.proto b/src/pb/proto/hunting/hunting_db.proto new file mode 100644 index 0000000..6842c93 --- /dev/null +++ b/src/pb/proto/hunting/hunting_db.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_msg.proto"; + +message DBHunting { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map boss = 3; // key boss 类型 value 难度 + int32 buyCount = 4;//@go_tags(`bson:"buyCount"`) 购买次数 + int64 cTime = 5; //@go_tags(`bson:"cTime"`) 修改时间 + map bossTime = 6; //@go_tags(`bson:"bossTime"`) + int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) // 开始恢复的时间 +} + +// 狩猎排行榜 +message DBHuntingRank { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + int32 difficulty = 3; // 难度 + int32 bosstype = 4; // boss类型塔类型 + string nickname = 5;// 昵称 + string icon = 6; // 玩家头像 + int32 lv = 7; // 玩家等级 + int32 leadpos = 8; //队长位置 + repeated LineUp line = 9; // 阵容数据 + int32 costTime = 10; //@go_tags(`bson:"costTime"`) 闯关耗时 单位s +} \ No newline at end of file diff --git a/src/pb/proto/hunting_msg.proto b/src/pb/proto/hunting/hunting_msg.proto similarity index 86% rename from src/pb/proto/hunting_msg.proto rename to src/pb/proto/hunting/hunting_msg.proto index e52e61f..3bcc6be 100644 --- a/src/pb/proto/hunting_msg.proto +++ b/src/pb/proto/hunting/hunting_msg.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option go_package = ".;pb"; -import "hunting_db.proto"; -import "battle_msg.proto"; +import "hunting/hunting_db.proto"; +import "battle/battle_msg.proto"; message HuntingGetListReq { } @@ -14,8 +14,7 @@ message HuntingGetListResp { message HuntingChallengeReq { int32 bossType = 1; // boos 类型 int32 difficulty = 2; // 难度 - int32 leadpos = 3; //队长位置 - repeated string teamids = 4; //阵容信息 + BattleFormation battle = 3; } message HuntingChallengeResp { diff --git a/src/pb/proto/hunting_db.proto b/src/pb/proto/hunting_db.proto deleted file mode 100644 index 0de1e4b..0000000 --- a/src/pb/proto/hunting_db.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; - - -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 boss = 4; // key boss 类型 value 难度 - int32 buyCount = 5;//@go_tags(`bson:"buyCount"`) 购买次数 - int64 cTime = 6; //@go_tags(`bson:"cTime"`) 修改时间 - map bossTime = 7; //@go_tags(`bson:"bossTime"`) -} - -// 狩猎排行榜 -message DBHuntingRank { - string id = 1; //@go_tags(`bson:"_id"`) ID - string uid = 2; //@go_tags(`bson:"uid"`) 用户ID - int32 difficulty = 3; // 难度 - int32 bosstype = 4; // boss类型塔类型 - string nickname = 5;// 昵称 - string icon = 6; // 玩家头像 - int32 lv = 7; // 玩家等级 - int32 costTime = 8; //@go_tags(`bson:"costTime"`) 闯关耗时 单位s -} \ No newline at end of file diff --git a/src/pb/proto/items_db.proto b/src/pb/proto/items/items_db.proto similarity index 100% rename from src/pb/proto/items_db.proto rename to src/pb/proto/items/items_db.proto diff --git a/src/pb/proto/items/items_msg.proto b/src/pb/proto/items/items_msg.proto new file mode 100644 index 0000000..bab5f6b --- /dev/null +++ b/src/pb/proto/items/items_msg.proto @@ -0,0 +1,106 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "items/items_db.proto"; +import "comm.proto"; + +//查询用户背包请求 +message ItemsGetlistReq { + int32 IType = 1; //道具类型 +} + +//查询用户背包请求 回应 +message ItemsGetlistResp { + repeated DB_UserItemData Grids = 1; //用户背包列表 +} + +//背包变化推送 +message ItemsChangePush { + repeated DB_UserItemData Grids = 1; //变化数据 +} + +//使用物品请求 +message ItemsUseItemReq { + string GridId = 1; //格子Id + uint32 Amount = 2; //使用数量 + int32 Select = 3; //选择下标 +} + +//使用物品请求 回应 +message ItemsUseItemResp { + string GridId = 1; //格子Id + uint32 Amount = 2; //使用数量 + bool issucc = 3; //是否成功 +} + +//出售道具请求sailitem +message ItemsSellItemReq { + string GridId = 1; //格子Id + string ItemId = 2; //物品Id + uint32 Amount = 3; //使用数量 +} + +//出售道具请求 回应 +message ItemsSellItemResp { + string GridId = 1; //格子Id + uint32 Amount = 2; //使用数量 + bool issucc = 3; //是否成功 +} + +//分解道具 请求 +message ItemsDecomposeReq { + string GridId = 1; //格子Id + string ItemId = 2; //物品Id + uint32 Amount = 3; //使用数量 +} + +//分解道具 请求回应 +message ItemsDecomposeResp { + string GridId = 1; //格子Id + uint32 Amount = 2; //使用数量 + bool issucc = 3; //是否成功 +} + +//购买体力 +message ItemsBuyPhysicalReq { + uint32 Amount = 2; //购买数量 +} + +//购买体力 +message ItemsBuyPhysicalResp { + bool issucc = 1; //是否成功 + int32 PhysicalBuyNum = 2; //体力购买次数 + repeated UserAssets asets = 3 ; //获取资源 +} + +//批量出售接口 +message ItemsSellinbulkReq { + repeated string grids = 1; //格子Id + repeated uint32 amount = 2; //出售数量 +} + +//批量出售接口 +message ItemsSellinbulkResp { + repeated string grids = 1; //格子Id + repeated uint32 amount = 2; //出售数量 + repeated bool issucc = 3; //是否成功 +} + +//购买统一入场门票请求 +message ItemsBuyUnifiedTicketReq { + int32 BuyNum = 1; +} +//购买统一入场门票请求回应 +message ItemsBuyUnifiedTicketResp { + bool issucc = 1; + int32 buyunifiedticket = 2; //购买统一入场门票次数 + int64 recovertimeunifiedticket = 3;//同意门票恢复时间 +} + +//刷新统一入场卷 +message ItemsRefreshUnifiedTicketReq { + +} + +message ItemsRefreshUnifiedTicketResp { + +} diff --git a/src/pb/proto/items_msg.proto b/src/pb/proto/items_msg.proto deleted file mode 100644 index 44eb864..0000000 --- a/src/pb/proto/items_msg.proto +++ /dev/null @@ -1,46 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "items_db.proto"; - -//查询用户背包请求 -message ItemsGetlistReq { - int32 IType = 1; //道具类型 -} - -//查询用户背包请求 回应 -message ItemsGetlistResp { - repeated DB_UserItemData Grids = 1; //用户背包列表 -} - -//背包变化推送 -message ItemsChangePush { - repeated DB_UserItemData Grids = 1; //变化数据 -} - -//使用物品请求 -message ItemsUseItemReq { - string GridId = 1; //格子Id - uint32 Amount = 2; //使用数量 - int32 Select = 3; //选择下标 -} - -//使用物品请求 回应 -message ItemsUseItemResp { - string GridId = 1; //格子Id - uint32 Amount = 2; //使用数量 - bool issucc = 3; //是否成功 -} - -//出售道具请求sailitem -message ItemsSellItemReq { - string GridId = 1; //格子Id - string ItemId = 2; //物品Id - uint32 Amount = 3; //使用数量 -} - -//出售道具请求 回应 -message ItemsSellItemResp { - string GridId = 1; //格子Id - uint32 Amount = 2; //使用数量 - bool issucc = 3; //是否成功 -} \ No newline at end of file diff --git a/src/pb/proto/library/library_db.proto b/src/pb/proto/library/library_db.proto new file mode 100644 index 0000000..84bc093 --- /dev/null +++ b/src/pb/proto/library/library_db.proto @@ -0,0 +1,41 @@ +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 hero = 4; // key: hid value: favorlv + map 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; // 好感度经验 + repeated int32 stroyprize = 7; // 剧情奖励 + repeated int32 lvprize = 8; // 等级奖励 +} + +//羁绊剧情 +message DBFetterstory { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map feeterTask = + 3; //@go_tags(`bson:"feeterTask"`) 已开启的羁绊任务 key:羁绊ID +} + +message FetterTasks { repeated int32 tasks = 1; } + +// 羁绊任务 +message FetterTask { + int32 taskId = 1; //@go_tags(`bson:"taskId"`) 任务Id + int32 status = 2; //@go_tags(`bson:"status"`) 状态 0锁定 1已完成 +} \ No newline at end of file diff --git a/src/pb/proto/library/library_msg.proto b/src/pb/proto/library/library_msg.proto new file mode 100644 index 0000000..5fc391c --- /dev/null +++ b/src/pb/proto/library/library_msg.proto @@ -0,0 +1,63 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "library/library_db.proto"; + +// 获取羁绊信息 +message LibraryGetListReq {} + +message LibraryGetListResp { repeated DBLibrary data = 1; } +// 获取英雄详细羁绊数据 +message LibraryGetFetterListReq {} + +message LibraryGetFetterListResp { repeated DBHeroFetter data = 1; } + +// 领取奖励 +message LibraryGetRewardReq { + string objId = 1; + int32 fetterlv = 2; // 羁绊等级 +} + +message LibraryGetRewardResp { DBLibrary data = 1; } +// 领取剧情奖励 +message LibraryGetStoryRewardReq { + string hid = 1; // 英雄ID + int32 history = 2; // 传记往事id + int32 rightend = 3; // 对应配置表 rightend +} + +message LibraryGetStoryRewardResp { DBHeroFetter data = 1; } + +// 给英雄赠送礼物 +message LibraryUseGiftReq { + string heroid = 1; // 英雄id + map items = 2; // key 道具ID value 数量 +} + +message LibraryUseGiftResp { DBHeroFetter data = 1; } + +// 激活羁绊 +message LibraryActivationFetterReq { + string oid = 1; //对象id +} + +message LibraryActivationFetterResp { DBLibrary data = 1; } + +// 羁绊数据变化推送 +message LibraryChangePush { + repeated DBLibrary data = 1; + repeated DBHeroFetter fetter = 2; // 羁绊详细信息 +} + +// 领取等级奖励 +message LibraryLvRewardReq { + string oid = 1; // 对象唯一id + int32 lv = 2; // 好感度等级 +} + +message LibraryLvRewardResp { DBHeroFetter data = 1; } + +// 羁绊剧情-我的主线任务 +message LibraryFetterstoryTaskReq { + int32 fetterId = 1; //羁绊ID +} +message LibraryFetterstoryTaskResp { repeated FetterTask list = 1; } diff --git a/src/pb/proto/library_db.proto b/src/pb/proto/library_db.proto deleted file mode 100644 index e225b97..0000000 --- a/src/pb/proto/library_db.proto +++ /dev/null @@ -1,24 +0,0 @@ -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 hero = 4; // key: hid value: favorlv - map 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; // 剧情奖励 -} \ No newline at end of file diff --git a/src/pb/proto/library_msg.proto b/src/pb/proto/library_msg.proto deleted file mode 100644 index b74a846..0000000 --- a/src/pb/proto/library_msg.proto +++ /dev/null @@ -1,49 +0,0 @@ -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 items = 2; // key 道具ID value 数量 -} - -message LibraryUseGiftResp{ - DBHeroFetter data = 1; -} \ No newline at end of file diff --git a/src/pb/proto/linestory/linestory_db.proto b/src/pb/proto/linestory/linestory_db.proto new file mode 100644 index 0000000..4605d64 --- /dev/null +++ b/src/pb/proto/linestory/linestory_db.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +message DBLinestory { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map taskChapter = + 3; //@go_tags(`bson:"taskChapter"`) 已开启的章节 key:章节ID +} + +// 章节 +message TaskChapter { + int32 receive = + 1; //@go_tags(`bson:"receive"`) 章节奖励领取状态 0未领 1待领取 2已领取 + int32 status = 2; //@go_tags(`bson:"status"`) 完成状态 0未完成 1已完成 + repeated int32 taskIds = 3; //@go_tags(`bson:"taskIds"`) 完成的任务 +} + +// 主线任务 +message TaskMain { + int32 taskId = 1; //@go_tags(`bson:"taskId"`) 任务Id + int32 status = 2; //@go_tags(`bson:"status"`) 状态 0锁定 1已完成 +} \ No newline at end of file diff --git a/src/pb/proto/linestory/linestory_msg.proto b/src/pb/proto/linestory/linestory_msg.proto new file mode 100644 index 0000000..da162db --- /dev/null +++ b/src/pb/proto/linestory/linestory_msg.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "linestory/linestory_db.proto"; +import "comm.proto"; + +// 支线剧情章节 +message LinestoryChapterReq {} + +message LinestoryChapterResp { map taskChapter = 1; } + +// 支线剧情-我的主线任务 +message LinestoryMaintaskReq { + int32 chapterId = 1; //章节ID +} +message LinestoryMaintaskResp { repeated TaskMain list = 1; } + +// 章节奖励领取 +message LinestoryReceiveReq { int32 chapterId = 1; } +message LinestoryReceiveResp { + int32 chapterId = 1; + repeated UserAssets userAssets = 2; +} \ No newline at end of file diff --git a/src/pb/proto/linestory_db.proto b/src/pb/proto/linestory_db.proto deleted file mode 100644 index c9297f7..0000000 --- a/src/pb/proto/linestory_db.proto +++ /dev/null @@ -1,15 +0,0 @@ -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 tasks = 4; //@go_tags(`bson:"tasks"`) 任务 -} \ No newline at end of file diff --git a/src/pb/proto/linestory_msg.proto b/src/pb/proto/linestory_msg.proto deleted file mode 100644 index 9d3a05a..0000000 --- a/src/pb/proto/linestory_msg.proto +++ /dev/null @@ -1,23 +0,0 @@ -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 -} diff --git a/src/pb/proto/mail_db.proto b/src/pb/proto/mail/mail_db.proto similarity index 100% rename from src/pb/proto/mail_db.proto rename to src/pb/proto/mail/mail_db.proto diff --git a/src/pb/proto/mail/mail_msg.proto b/src/pb/proto/mail/mail_msg.proto new file mode 100644 index 0000000..ac5b7d7 --- /dev/null +++ b/src/pb/proto/mail/mail_msg.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "mail/mail_db.proto"; +import "comm.proto"; + +message MailGetListReq { + +} + +// 查询邮件信息 +message MailGetListResp { + repeated DBMailData Mails = 1; +} + +// 查看邮件 +message MailReadMailReq { + string ObjID = 1; +} + +message MailReadMailResp { + DBMailData Mail = 1; +} + +// 领取附件 +message MailGetUserMailAttachmentReq { + string ObjID = 1; +} + +message MailGetUserMailAttachmentResp { + DBMailData Mail = 1; +} + +// 删除某个邮件 +message MailDelMailReq { + string ObjID = 1; +} + +message MailDelMailResp { + string ObjID = 1; // 返回删除邮件id +} + +// 推送邮件 +message MailGetNewMailPush{ + DBMailData Mail = 1; // 推送新的邮件信息 +} +// 领取所有附件 +message MailGetAllMailAttachmentReq { + +} + +message MailGetAllMailAttachmentResp { + repeated UserAssets res = 1; //资源类型 + repeated string ids = 2; // 已经领取的邮件唯一id +} +message MailDelAllMailReq { + +} + +message MailDelAllMailResp { + repeated DBMailData Mails = 1; +} diff --git a/src/pb/proto/mail_msg.proto b/src/pb/proto/mail_msg.proto deleted file mode 100644 index 88089c7..0000000 --- a/src/pb/proto/mail_msg.proto +++ /dev/null @@ -1,38 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "mail_db.proto"; -import "comm.proto"; - -message MailGetListReq {} - -// 查询邮件信息 -message MailGetListResp { repeated DBMailData Mails = 1; } - -// 查看邮件 -message MailReadMailReq { string ObjID = 1; } - -message MailReadMailResp { DBMailData Mail = 1; } - -// 领取附件 -message MailGetUserMailAttachmentReq { string ObjID = 1; } - -message MailGetUserMailAttachmentResp { DBMailData Mail = 1; } - -// 删除某个邮件 -message MailDelMailReq { string ObjID = 1; } - -message MailDelMailResp { - string ObjID = 1; // 返回删除邮件id -} - -// 推送邮件 -message MailGetNewMailPush { - DBMailData Mail = 1; // 推送新的邮件信息 -} -// 领取所有附件 -message MailGetAllMailAttachmentReq {} - -message MailGetAllMailAttachmentResp { - repeated UserAssets res = 1; //资源类型 - repeated string ids = 2; // 已经领取的邮件唯一id -} \ No newline at end of file diff --git a/src/pb/proto/mainline_db.proto b/src/pb/proto/mainline/mainline_db.proto similarity index 95% rename from src/pb/proto/mainline_db.proto rename to src/pb/proto/mainline/mainline_db.proto index 0c53b83..2011c01 100644 --- a/src/pb/proto/mainline_db.proto +++ b/src/pb/proto/mainline/mainline_db.proto @@ -14,4 +14,5 @@ message DBMainline { AwaredType awaredID = 5; //@go_tags(`bson:"awaredID"`) 是否领奖(设置int是考虑后续扩展有多个宝箱情况) repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`) 记录所有通关的关卡数据 int32 intensity = 7; // 难度 + int32 ps = 8;// 预扣的体力 } \ No newline at end of file diff --git a/src/pb/proto/mainline_msg.proto b/src/pb/proto/mainline/mainline_msg.proto similarity index 86% rename from src/pb/proto/mainline_msg.proto rename to src/pb/proto/mainline/mainline_msg.proto index e5fe2c5..1080e41 100644 --- a/src/pb/proto/mainline_msg.proto +++ b/src/pb/proto/mainline/mainline_msg.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option go_package = ".;pb"; -import "mainline_db.proto"; -import "battle_msg.proto"; +import "mainline/mainline_db.proto"; +import "battle/battle_msg.proto"; // 查询关卡进度 message MainlineGetListReq { @@ -43,6 +43,8 @@ message MainlineChallengeOverReq { message MainlineChallengeOverResp { DBMainline data = 1; //当前章节信息 + repeated string newheros = 2; //获得的新英雄 + int32 olv = 3; //以前的等级 } // 推送新章节 diff --git a/src/pb/proto/martialhall_db.proto b/src/pb/proto/martialhall/martialhall_db.proto similarity index 100% rename from src/pb/proto/martialhall_db.proto rename to src/pb/proto/martialhall/martialhall_db.proto diff --git a/src/pb/proto/martialhall_msg.proto b/src/pb/proto/martialhall/martialhall_msg.proto similarity index 89% rename from src/pb/proto/martialhall_msg.proto rename to src/pb/proto/martialhall/martialhall_msg.proto index 8996882..ba0faf3 100644 --- a/src/pb/proto/martialhall_msg.proto +++ b/src/pb/proto/martialhall/martialhall_msg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = ".;pb"; -import "martialhall_db.proto"; +import "martialhall/martialhall_db.proto"; ///信息请求 message MartialhallInfoReq {} @@ -21,7 +21,9 @@ message MartialhallPracticeResp { ///领取 请求 message MartialhallReceiveReq { int32 pillar = 1; } ///领取 回应 -message MartialhallReceiveResp {} +message MartialhallReceiveResp { + int32 pillar = 1; +} ///升级 请求 message MartialhallUpgradeReq {} diff --git a/src/pb/proto/mline/mline_db.proto b/src/pb/proto/mline/mline_db.proto new file mode 100644 index 0000000..9d4f33e --- /dev/null +++ b/src/pb/proto/mline/mline_db.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +message DBMline { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + int32 cType = 3; //@go_tags(`bson:"cType"`) 章节类型 + int32 chapterId = 4; //@go_tags(`bson:"chapterId"`) 章节ID + int32 stageId = 5; //@go_tags(`bson:"stageId"`) 主线关卡ID + map star = 6;// 关卡对应的星级 (key 关卡ID value 星数) + map award = 7; //@go_tags(`bson:"award"`) (key 配置表星级) + map ps = 8;// 预扣的体力 +} \ No newline at end of file diff --git a/src/pb/proto/mline/mline_msg.proto b/src/pb/proto/mline/mline_msg.proto new file mode 100644 index 0000000..7314549 --- /dev/null +++ b/src/pb/proto/mline/mline_msg.proto @@ -0,0 +1,58 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "mline/mline_db.proto"; +import "battle/battle_msg.proto"; +import "comm.proto"; + +// 查询关卡进度 +message MlineGetListReq { + int32 cType = 1; // 章节类型 +} + +// 返回进度信息 +message MlineGetListResp { + repeated DBMline data = 1; +} + +// 领取关卡宝箱 +message MlineGetRewardReq { + int32 cId = 1; // 章节配置表唯一ID + int32 star = 2; // 星级奖励 +} + +message MlineGetRewardResp { + DBMline data = 1; //当前章节信息 + repeated UserAssets reward = 2; // 奖励 +} + +// 挑战关卡 +message MlineChallengeReq { + int32 stageId = 1; // 小关ID + BattleFormation battle = 2; +} + +message MlineChallengeResp { + BattleInfo info = 1; + int32 stageId = 2; // 小关ID +} + +// 客户端通知服务器打赢了 +message MlineChallengeOverReq { + int32 stageId = 1; // 小关ID + BattleReport report = 3; //战报 +} + +message MlineChallengeOverResp { + DBMline data = 1; //当前章节信息 + repeated UserAssets reward = 2; // 奖励 +} + +// 扫荡关卡 +message MlineCleanStageReq { + int32 stageId = 1; // 小关ID +} + +message MlineCleanStageResp { + int32 stageId = 1; // 小关ID + repeated UserAssets reward = 2; // 奖励 +} \ No newline at end of file diff --git a/src/pb/proto/moonfantasy_db.proto b/src/pb/proto/moonfantasy/moonfantasy_db.proto similarity index 51% rename from src/pb/proto/moonfantasy_db.proto rename to src/pb/proto/moonfantasy/moonfantasy_db.proto index 0e4ab69..d6b4620 100644 --- a/src/pb/proto/moonfantasy_db.proto +++ b/src/pb/proto/moonfantasy/moonfantasy_db.proto @@ -17,16 +17,23 @@ message DBMoonFantasy { repeated UserInfo join = 5; //参与人数 int32 numup = 6; //人数上限 int32 unitmup = 7; //单人可挑战次数 - map record = 8; //挑战记录 + int64 expir = 8; //过期时间 + map record = 9; //挑战记录 } //用户参与的月之秘境列表 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"`) 月之秘境最后触发时间 + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //用户id + int32 triggerNum = 3; //@go_tags(`bson:"triggerNum"`) 月之秘境触发次数 + // int32 ticket = 4; //@go_tags(`bson:"ticket"`)挑战券 + int32 buyNum = 5; //@go_tags(`bson:"buyNum"`) 月之秘境挑战次数 + int64 lastTrigger = 6; //@go_tags(`bson:"lastTrigger"`) 月之秘境最后触发时间 + int64 lastrtickettime = 7;//@go_tags(`bson:"lastrtickettime"`) 最后回复劵时间 +} + +//RPC 触发请求 +message RPCTargetMFReq { + string uid = 1; //用户id + string boosid = 2; //怪物id } \ No newline at end of file diff --git a/src/pb/proto/moonfantasy_msg.proto b/src/pb/proto/moonfantasy/moonfantasy_msg.proto similarity index 90% rename from src/pb/proto/moonfantasy_msg.proto rename to src/pb/proto/moonfantasy/moonfantasy_msg.proto index 2cbd968..7f496ee 100644 --- a/src/pb/proto/moonfantasy_msg.proto +++ b/src/pb/proto/moonfantasy/moonfantasy_msg.proto @@ -1,8 +1,8 @@ syntax = "proto3"; option go_package = ".;pb"; import "errorcode.proto"; -import "moonfantasy_db.proto"; -import "battle_msg.proto"; +import "moonfantasy/moonfantasy_db.proto"; +import "battle/battle_msg.proto"; //获取秘境列表请求 message MoonfantasyGetListReq {} @@ -33,8 +33,7 @@ message MoonfantasyAskResp { ///挑战秘境 message MoonfantasyBattleReq { string mid = 1; //唯一id - int32 leadpos = 2; //队长位置 - repeated string teamids = 3; //阵容信息 + BattleFormation battle = 2; //战斗类型 } message MoonfantasyBattleResp { diff --git a/src/pb/proto/notify_db.proto b/src/pb/proto/notify/notify_db.proto similarity index 100% rename from src/pb/proto/notify_db.proto rename to src/pb/proto/notify/notify_db.proto diff --git a/src/pb/proto/notify_msg.proto b/src/pb/proto/notify/notify_msg.proto similarity index 96% rename from src/pb/proto/notify_msg.proto rename to src/pb/proto/notify/notify_msg.proto index 63dc339..48a5572 100644 --- a/src/pb/proto/notify_msg.proto +++ b/src/pb/proto/notify/notify_msg.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option go_package = ".;pb"; import "errorcode.proto"; -import "notify_db.proto"; +import "notify/notify_db.proto"; import "google/protobuf/any.proto"; //统一错误码推送 diff --git a/src/pb/proto/pagoda_db.proto b/src/pb/proto/pagoda/pagoda_db.proto similarity index 70% rename from src/pb/proto/pagoda_db.proto rename to src/pb/proto/pagoda/pagoda_db.proto index 42b825b..53ea7e6 100644 --- a/src/pb/proto/pagoda_db.proto +++ b/src/pb/proto/pagoda/pagoda_db.proto @@ -1,23 +1,18 @@ syntax = "proto3"; option go_package = ".;pb"; -import "battle_msg.proto"; -//普通塔 +import "battle/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 reward = 4; // 是否领奖 int32 type = 5; + bool complete = 6; // 是否通关 + int32 passCheckID = 7; // 战令领奖ID + int32 vipPassCheckID = 8; // vip战令领奖ID } -// 赛季塔 赛季结束会清理 -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 reward = 4; // 是否领奖 - int32 type = 5; -} // 爬塔数据明细 message DBPagodaRecord { diff --git a/src/pb/proto/pagoda_msg.proto b/src/pb/proto/pagoda/pagoda_msg.proto similarity index 75% rename from src/pb/proto/pagoda_msg.proto rename to src/pb/proto/pagoda/pagoda_msg.proto index af6401b..301ec0a 100644 --- a/src/pb/proto/pagoda_msg.proto +++ b/src/pb/proto/pagoda/pagoda_msg.proto @@ -1,7 +1,8 @@ syntax = "proto3"; option go_package = ".;pb"; -import "pagoda_db.proto"; -import "battle_msg.proto"; +import "pagoda/pagoda_db.proto"; +import "battle/battle_msg.proto"; +import "comm.proto"; // 查询塔进度 message PagodaGetListReq { @@ -23,9 +24,7 @@ message PagodaGetRewardResp { message PagodaChallengeReq { int32 levelID = 1; // 挑战层数 int32 PagodaType = 2; // 塔类型 - - int32 leadpos = 3; //队长位置 - repeated string teamids = 4; //阵容信息 + BattleFormation battle = 3; } message PagodaChallengeResp { @@ -62,4 +61,22 @@ message PagodaQueryRecordReq{ message PagodaQueryRecordResp{ DBPagodaRecord data = 1; +} + +// 激活赛季塔 +message PagodaActivateReq{ + +} + +message PagodaActivateResp{ + DBPagoda data = 1; +} +// 领取战令奖励 +message PagodaWarOrderReq{ + +} + +message PagodaWarOrderResp{ + DBPagoda data = 1; + repeated UserAssets itmes = 2;// 获得的奖励 } \ No newline at end of file diff --git a/src/pb/proto/pay_db.proto b/src/pb/proto/pay/pay_db.proto similarity index 96% rename from src/pb/proto/pay_db.proto rename to src/pb/proto/pay/pay_db.proto index 4588970..bd4c938 100644 --- a/src/pb/proto/pay_db.proto +++ b/src/pb/proto/pay/pay_db.proto @@ -9,7 +9,7 @@ message DBPayOrder { int64 ctime = 4; } -//用户每日礼包 +// message DBUserPay { string uid = 1; //用户id map record = 2; //商品购买次数 diff --git a/src/pb/proto/pay/pay_msg.proto b/src/pb/proto/pay/pay_msg.proto new file mode 100644 index 0000000..1f2cb9d --- /dev/null +++ b/src/pb/proto/pay/pay_msg.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "pay/pay_db.proto"; +import "comm.proto"; +import "errorcode.proto"; + +//充值记录 +message PayRecordReq { + +} +//充值记录 +message PayRecordResp{ + DBUserPay info = 1; +} + + +//用户重置信息获取 +message PayInfoReq {} +message PayInfoResp { DBPayDaily info = 1; } + +//购买每日礼包 +message PayDailyBuyReq { int32 id = 1; } +message PayDailyBuyResp { bool isucc = 1; repeated UserAssets items = 2;} + + +//充值完成推送 +message PayShippedPush { + string pid = 1; + string orderid = 2; + repeated UserAssets items = 3; + DBUserPay info = 4; +} + +///支付系统发货请求 +message PayDeliveryReq { + string uid = 1; + string orderid = 2; + string productid = 3; + int32 price = 4; + int32 amount = 5; +} +///支付系统发货请求 回应 +message PayDeliveryResp { + ErrorCode code = 1; //@go_tags(`json:"s""`) 头像 + string msg = 2; + string data = 3; +} diff --git a/src/pb/proto/pay_msg.proto b/src/pb/proto/pay_msg.proto deleted file mode 100644 index 9664505..0000000 --- a/src/pb/proto/pay_msg.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "pay_db.proto"; -import "errorcode.proto"; - -//用户重置信息获取 -message PayInfoReq {} -message PayInfoResp { DBPayDaily info = 1; } - -//购买每日礼包 -message PayDailyBuyReq { int32 id = 1; } -message PayDailyBuyResp { bool isucc = 1; } - -///支付系统发货请求 -message PayDeliveryReq { - string uid = 1; - string orderid = 2; - string productid = 3; -} -///支付系统发货请求 回应 -message PayDeliveryResp { - ErrorCode code = 1; - string msg = 2; -} diff --git a/src/pb/proto/privilege/privilege_db.proto b/src/pb/proto/privilege/privilege_db.proto new file mode 100644 index 0000000..00c3fbd --- /dev/null +++ b/src/pb/proto/privilege/privilege_db.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; +option go_package = ".;pb"; + // vip 月卡特权 +message DBPrivilege { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + string cId = 3; //@go_tags(`bson:"cId"`) 计费点数ID + int64 cTime = 4; //@go_tags(`bson:"cTime"`) //购买时间 + int64 eTime = 5; //@go_tags(`bson:"eTime"`) //到期时间 + int64 rewardTime = 6; //@go_tags(`bson:"rewardTime"`) 每日奖励时间 +} + +message PrivilegeList{ + repeated int32 privilegeID = 1; //@go_tags(`bson:"privilegeID"`) 特权ID +} + +message DBVip { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map reward= 3; // key vip 等级 + map privilege = 4;//@go_tags(`bson:"privilege"`) 特权ID + int64 cTime = 5; //@go_tags(`bson:"cTime"`) //购买时间 + int64 rewardTime = 6; //@go_tags(`bson:"rewardTime"`) 每日奖励时间 +} \ No newline at end of file diff --git a/src/pb/proto/privilege/privilege_msg.proto b/src/pb/proto/privilege/privilege_msg.proto new file mode 100644 index 0000000..bea88a5 --- /dev/null +++ b/src/pb/proto/privilege/privilege_msg.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "privilege/privilege_db.proto"; +// 查询特权列表 +message PrivilegeGetListReq { + +} +// 返回特权列表数据 +message PrivilegeGetListResp { + repeated DBPrivilege data = 1; +} + +// 购买月卡 +message PrivilegeBuyYuekaReq { + string cID = 1; + +} + +message PrivilegeBuyYuekaResp { + repeated DBPrivilege data = 1; +} + +message PrivilegeBuyGiftReq { + int32 vipLv = 1; // vip 等级 + +} + +message PrivilegeBuyGiftResp { + DBVip data = 1; +} + +message PrivilegeVipListReq { + +} + +message PrivilegeVipListResp { + DBVip data = 1; +} \ No newline at end of file diff --git a/src/pb/proto/protoc.exe b/src/pb/proto/protoc.exe new file mode 100644 index 0000000..bfeb457 Binary files /dev/null and b/src/pb/proto/protoc.exe differ diff --git a/src/pb/proto/pvp/pvp_db.proto b/src/pb/proto/pvp/pvp_db.proto new file mode 100644 index 0000000..926b215 --- /dev/null +++ b/src/pb/proto/pvp/pvp_db.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +//Pvp类型 +enum PvpType{ + friends = 0; //好友切磋 +} + +enum PvpState { + void = 0; //无效状态 + ready = 1; //准备中 + battle = 2; //战斗中 + cancel = 3; //战斗取消 + finish = 4; //战斗结束 +} + +message PvpUserInfo { + string uid = 1; + string name = 2; + string avatar = 3; + int32 lv = 4; +} + +message DBPvpBattle { + string id = 1; //战斗id + string servicePath = 2; //战斗区服地址 + PvpType ptype = 3; //pvp类型 + PvpState state = 4; //战斗状态 + PvpUserInfo red = 5; //红方id + PvpUserInfo blue = 6; //红方id +} \ No newline at end of file diff --git a/src/pb/proto/pvp/pvp_msg.proto b/src/pb/proto/pvp/pvp_msg.proto new file mode 100644 index 0000000..6f44737 --- /dev/null +++ b/src/pb/proto/pvp/pvp_msg.proto @@ -0,0 +1,81 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "pvp/pvp_db.proto"; +import "battle/battle_msg.proto"; +import "errorcode.proto"; + + + +//战斗列表 请求 +message PvpListReq { + +} +//战斗列表 请求回应 +message PvpListResp { + repeated DBPvpBattle list = 1; +} + +//战斗列表推送 +message PvpIntoReq { + string battleid = 1; //战斗id +} + +//战斗列表推送 +message PvpIntoResp { + ErrorCode code = 1; //是否成功 + string battleid = 2; //战斗id + BattleStateInfo info=3; //战斗状态数据 +} + + +//Pvp 战斗准备推送 +message PvpReadyPush { + string servicePath = 1; //战斗区服地址 + string battleid = 2; //战斗id + PvpUserInfo red = 3; //红方用户信息 + PvpUserInfo blue = 4; //蓝方用户信息 + int32 countdown = 5; //布阵倒计时 +} + +//Pvp 战斗准备推送 +message PvpCancelPush { + string servicePath = 1; //战斗区服地址 + string battleid = 2; //战斗id +} + + +//布阵 请求 +message PvpFormationReq { + string battleid = 1; //战斗id + BattleFormation formation = 2; //阵型 +} + +//布阵 请求 回应 +message PvpFormationResp { + bool issucc = 1; +} + +//战斗开始推送 +message PvpStartPush{ + ErrorCode code = 1; //是否成功 + BattleInfo info = 2; +} + +//实时Pvp 指令推送 +message PvpOutCmdPush { + string battleid = 1; + repeated BattleCmd cmd = 2; +} + +//pvp 输入指令请求 +message PvpInCmdReq { + string battleid = 1; + BattleCmd cmd =2; +} + +//pvp 输入指令请求 回应 +message PvpInCmdResp { + ErrorCode code = 1; //是否成功 + string battleid = 2; + BattleCmd cmd = 3; +} \ No newline at end of file diff --git a/src/pb/proto/reddot_msg.proto b/src/pb/proto/reddot/reddot_msg.proto similarity index 100% rename from src/pb/proto/reddot_msg.proto rename to src/pb/proto/reddot/reddot_msg.proto diff --git a/src/pb/proto/rtask/rtask_msg.proto b/src/pb/proto/rtask/rtask_msg.proto new file mode 100644 index 0000000..cc47f04 --- /dev/null +++ b/src/pb/proto/rtask/rtask_msg.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +// 测试使用 +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; +} \ No newline at end of file diff --git a/src/pb/proto/rtask_db.proto b/src/pb/proto/rtask_db.proto deleted file mode 100644 index c058a07..0000000 --- a/src/pb/proto/rtask_db.proto +++ /dev/null @@ -1,26 +0,0 @@ -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 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 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 vals = 3; //@go_tags(`bson:"vals"`) 任务记录值 -} \ No newline at end of file diff --git a/src/pb/proto/rtask_msg.proto b/src/pb/proto/rtask_msg.proto deleted file mode 100644 index f4b097f..0000000 --- a/src/pb/proto/rtask_msg.proto +++ /dev/null @@ -1,96 +0,0 @@ -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; -} \ No newline at end of file diff --git a/src/pb/proto/serverdata.proto b/src/pb/proto/serverdata.proto new file mode 100644 index 0000000..1a162db --- /dev/null +++ b/src/pb/proto/serverdata.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +//服务器数据 +message DBServerData { + string id = 1; //主键id + int32 serverState = 2;//@go_tags(`bson:"serverState"`) 服务器状态 + int32 disposableLoop = 3; //@go_tags(`bson:"disposableLoop"`) 一次性调用的塔数据索引 // + int32 fixedLoop = 4; //@go_tags(`bson:"fixedLoop"`) 赛季塔循环调用索引 + int32 seasonType = 5;//@go_tags(`bson:"seasonType"`) 赛季塔类型 + int64 openTime = 6; //@go_tags(`bson:"openTime"`) 开服时间 +} diff --git a/src/pb/proto/shop_db.proto b/src/pb/proto/shop/shop_db.proto similarity index 50% rename from src/pb/proto/shop_db.proto rename to src/pb/proto/shop/shop_db.proto index 3703896..82ed0ac 100644 --- a/src/pb/proto/shop_db.proto +++ b/src/pb/proto/shop/shop_db.proto @@ -1,5 +1,6 @@ syntax = "proto3"; option go_package = ".;pb"; +import "equipment/equipment_db.proto"; enum ShopType { Null = 0; @@ -11,20 +12,23 @@ enum ShopType { } message UserShopData { - int64 LastRefreshTime = 1; //最后一次刷新时间 - int32 ManualRefreshNum = 2; //手动刷新次数 - repeated int32 Items = 3; //商品列表 - map buy = 4; //购买记录 + int64 LastRefreshTime = 1; //最后一次刷新时间 + int32 ManualRefreshNum = 2; //手动刷新次数 + repeated int32 Items = 3; //商品列表 + map buy = 4; //购买记录 + map preview = 5; //预览数据 } 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"`) 金币商店数据 + int32 refreshnumgoldShop = 3; //@go_tags(`bson:"refresholdShop"`) 刷新金币商店次数 + int64 refreshtimegoldShop = 4; //@go_tags(`bson:"refresholdShop"`) 刷新金币商店的时间 + UserShopData goldShop = 5; //@go_tags(`bson:"goldShop"`) 金币商店数据 + UserShopData diamondShop = 6; //@go_tags(`bson:"diamondShop"`) 金币商店数据 + UserShopData pvpShop = 7; //@go_tags(`bson:"pvpShop"`) 金币商店数据 + UserShopData pveShop = 8; //@go_tags(`bson:"pveShop"`) 金币商店数据 + UserShopData allianceShop = 9; //@go_tags(`bson:"allianceShop"`) 金币商店数据 } // message DBShopItem { diff --git a/src/pb/proto/shop/shop_msg.proto b/src/pb/proto/shop/shop_msg.proto new file mode 100644 index 0000000..ac78c7a --- /dev/null +++ b/src/pb/proto/shop/shop_msg.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "shop/shop_db.proto"; +import "comm.proto"; +import "equipment/equipment_db.proto"; + +//商品对象数据 +message ShopItem { + int32 GoodsId = 1; //商品Id + repeated UserAssets Items = 2; //货物 + repeated UserAssets Consume = 3; //消耗 + int32 Sale = 4; //打折 + int32 LeftBuyNum = 5; //还可购买次数 + DB_Equipment preview = 6; //装备预览数据 +} + +//获取装备列表请求 +message ShopGetListReq { + ShopType sType = 1; //商城类型 + bool IsManualRefresh = 2; //是否手动刷新 +} + +//获取装备列表请求 +message ShopGetListResp { + ShopType sType = 1; //商城类型 + bool IsManualRefresh = 2; //是否手动刷新 + repeated ShopItem Goods = 4; //商品列表 + int32 SurplusRefreshNum = 5; //剩余手动刷新次数 +} + +//购买商品 请求 +message ShopBuyReq { + ShopType ShopType = 1; //商店类型 + int32 GoodsId = 2; //商品Id + int32 BuyNum = 3; //商品购买数量 +} + +//购买商品 回应 +message ShopBuyResp { + bool IsSucc = 1; //是否成功 +} diff --git a/src/pb/proto/shop_msg.proto b/src/pb/proto/shop_msg.proto deleted file mode 100644 index c7ad768..0000000 --- a/src/pb/proto/shop_msg.proto +++ /dev/null @@ -1,40 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "shop_db.proto"; -import "comm.proto"; - - -//商品对象数据 -message ShopItem { - int32 GoodsId = 1; //商品Id - repeated UserAssets Items = 2; //货物 - repeated UserAssets Consume = 3; //消耗 - int32 Sale = 4; //打折 - int32 LeftBuyNum = 5; //还可购买次数 -} - -//获取装备列表请求 -message ShopGetListReq { - ShopType sType = 1; //商城类型 - bool IsManualRefresh = 2; //是否手动刷新 -} - -//获取装备列表请求 -message ShopGetListResp { - ShopType sType = 1; //商城类型 - bool IsManualRefresh = 2; //是否手动刷新 - repeated ShopItem Goods = 4; //商品列表 - int32 SurplusRefreshNum = 5; //剩余手动刷新次数 -} - -//购买商品 请求 -message ShopBuyReq { - ShopType ShopType = 1; //商店类型 - int32 GoodsId = 2; //商品Id - int32 BuyNum = 3; //商品购买数量 -} - -//购买商品 回应 -message ShopBuyResp { - bool IsSucc = 1; //是否成功 -} diff --git a/src/pb/proto/smithy/smithy_db.proto b/src/pb/proto/smithy/smithy_db.proto new file mode 100644 index 0000000..c3b8aae --- /dev/null +++ b/src/pb/proto/smithy/smithy_db.proto @@ -0,0 +1,69 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "comm.proto"; + +// 炉子信息 +message DBStove{ + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + int32 lv = 3; // 炉子等级 + map data = 4; // key 套装类型 value 熟练度 + map skill = 5; // 台子技能 + map forge = 6; // key 套装类型 value 打造次数 + int32 temperature = 7;// 炉子温度 + int64 recoveTime = 8; // 恢复满时间 + int32 business = 9; // +} + +// 商人信息 +message DBBusiness{ + map shop = 1; +} + +message DBBusinessData{ + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + repeated DBBusiness data = 3; + int32 count = 4; // 刷新次数 + int64 refreshTime = 5;//@go_tags(`bson:"refreshTime"`) 刷新开始时间 +} + +// 装备图鉴 +message DBTujian{ + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map tujian = 3; // 图鉴信息 + int32 slider = 4; // 进度 +} +message ForgeData{ + int32 forgeCount = 1; // 打造次数 + int32 lv = 2; + int32 quality = 3; +} + +//////// +message Clang{ + int32 deskType = 1; // 台子类型 + int64 eTime = 2; + int64 sTime = 3; // 订单开始时间 +} + +message OrderClang{ + int32 deskType = 1; // 台子类型 + int32 count = 2; // 料理数量 + int32 needTime = 3; // 需要的时间 +} +message DBSmithy { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + Clang clang = 3;// 正在制作中的数据 + repeated OrderClang orders = 4; //@go_tags(`bson:"orders"`) 订单数据 + repeated UserAssets items = 5; //@go_tags(`bson:"items"`) 已经做好装备 + map skill = 6;//@go_tags(`bson:"skill"`) 锻造台等级 + int32 stoveLv = 7; //@go_tags(`bson:"stoveLv"`) 炉子等级 + int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`) 订单消耗的时常 + int64 ctime = 9; // 订单创建时间 + map deskFloor = 10;//@go_tags(`bson:"deskFloor"`)台子保底 + int32 stoveFloor = 11;//@go_tags(`bson:"stoveFloor"`) 炉子保底 + int32 totalTime = 12;//@go_tags(`bson:"totalTime"`) +} \ No newline at end of file diff --git a/src/pb/proto/smithy/smithy_msg.proto b/src/pb/proto/smithy/smithy_msg.proto new file mode 100644 index 0000000..7b54f66 --- /dev/null +++ b/src/pb/proto/smithy/smithy_msg.proto @@ -0,0 +1,136 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "smithy/smithy_db.proto"; +import "user/user_db.proto"; + + +// 铁匠铺 获取炉子信息 +message SmithyGetStoveInfoReq { + +} + +message SmithyGetStoveInfoResp { + DBStove data = 1; +} + + +// 打造装备 +message SmithyForgeEquipReq{ + int32 equipType = 1; // 装备类型 + int32 lava = 2;// 添加熔岩 + int32 quality = 3;// 精益制造 +} + +message SmithyForgeEquipResp{ + int32 equip = 1; // 装备ID + DBStove data = 2; +} +// 定制装备 +message SmithyOrderEquipReq{ + int32 suiteId = 1;// 套装ID + int32 position = 2; // 装备位置 + int32 lava = 3;// 添加熔岩 + int32 quality = 4;// 精益制造 +} + +message SmithyOrderEquipResp{ + int32 equip = 1; // 装备ID + DBStove data = 2; +} + + +// 炉子升级 +message SmithyStoveUpReq{ + +} +message SmithyStoveUpResp{ + DBStove data = 1; +} + +// 炉子升温 +message SmithyRiseReq{ + string itemId = 1; // 材料ID + int32 count = 2;// 材料数量 +} + +message SmithyRiseResp{ + DBStove data = 1; +} + +// 工具学习 升级 共用 +message SmithyToolsUpReq{ + int32 id = 1; // 工具配置ID +} + +message SmithyToolsUpResp{ + DBStove data = 1; +} +// 刷新商人 +message SmithyRefreshShopReq{ + +} +message SmithyRefreshShopResp{ + DBBusiness data = 1; +} + +// 出售装备 +message SmithySellItemReq{ + int32 id = 1; // 装备ID + int32 count = 2; // 数量 +} + +message SmithySellItemResp{ + DBBusiness data = 1; +} + +////////////////////////////////////////// +// 创建订单 +message SmithyCreateOrderReq { + repeated OrderClang order = 1;// 烹饪时间不用传 后端会重新计算 +} + +message SmithyCreateOrderResp { + DBSmithy data = 1; +} + +// 领取奖励 +message SmithyGetRewardReq{ +} + +message SmithyGetRewardResp{ + DBSmithy data = 1; +} + +// 技能升级 +message SmithyDeskSkillLvReq{ + int32 deskType = 1; // 台子类型 +} + +message SmithyDeskSkillLvResp{ + DBSmithy data = 1; +} + +// 炉子技能升级 +message SmithyStoveSkillLvReq{ + +} + +message SmithyStoveSkillLvResp{ + DBSmithy data = 1; +} + +message SmithyGetRandUserReq{ + int32 people = 1;//人数 +} + +message SmithyGetRandUserResp{ + repeated DBUser user = 1; +} + +message SmithyGetListReq { + +} +// 返回进度信息 +message SmithyGetListResp { + DBSmithy data = 1; +} diff --git a/src/pb/proto/smithy_db.proto b/src/pb/proto/smithy_db.proto deleted file mode 100644 index 6d274cc..0000000 --- a/src/pb/proto/smithy_db.proto +++ /dev/null @@ -1,31 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "comm.proto"; - - -message Clang{ - int32 deskType = 1; // 台子类型 - int64 eTime = 2; - int64 sTime = 3; // 订单开始时间 - -} - -// 队列里的烹饪食品 -message OrderClang{ - int32 deskType = 1; // 台子类型 - int32 count = 2; // 料理数量 - int32 needTime = 3; // 需要的时间 -} -message DBSmithy { - string id = 1; //@go_tags(`bson:"_id"`) ID - string uid = 2; //@go_tags(`bson:"uid"`) 用户ID - Clang clang = 3;// 正在制作中的数据 - repeated OrderClang orders = 4; //@go_tags(`bson:"orders"`) 订单数据 - repeated UserAssets items = 5; //@go_tags(`bson:"items"`) 已经做好装备 - map skill = 6;//@go_tags(`bson:"skill"`) 锻造台等级 - int32 stoveLv = 7; //@go_tags(`bson:"stoveLv"`) 炉子等级 - int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`) 订单消耗的时常 - int64 ctime = 9; // 订单创建时间 - map deskFloor = 10;//@go_tags(`bson:"deskFloor"`)台子保底 - int32 stoveFloor = 11;//@go_tags(`bson:"stoveFloor"`) 炉子保底 -} \ No newline at end of file diff --git a/src/pb/proto/smithy_msg.proto b/src/pb/proto/smithy_msg.proto deleted file mode 100644 index 9094a6a..0000000 --- a/src/pb/proto/smithy_msg.proto +++ /dev/null @@ -1,55 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; -import "smithy_db.proto"; - -// 查询塔进度 -message SmithyGetListReq { - -} -// 返回进度信息 -message SmithyGetListResp { - DBSmithy data = 1; -} - -// 创建订单 -message SmithyCreateOrderReq { - repeated OrderClang order = 1;// 烹饪时间不用传 后端会重新计算 -} - -message SmithyCreateOrderResp { - DBSmithy data = 1; -} - -// 领取奖励 -message SmithyGetRewardReq{ -} - -message SmithyGetRewardResp{ - DBSmithy data = 1; -} - -// 技能升级 -message SmithyDeskSkillLvReq{ - int32 deskType = 1; // 台子类型 -} - -message SmithyDeskSkillLvResp{ - DBSmithy data = 1; -} - -// 炉子技能升级 -message SmithyStoveSkillLvReq{ - -} - -message SmithyStoveSkillLvResp{ - DBSmithy data = 1; -} - -message SmithyGetRandUserReq{ - -} - -message SmithyGetRandUserResp{ - repeated string user = 1; -} \ No newline at end of file diff --git a/src/pb/proto/sociaty/sociaty_db.proto b/src/pb/proto/sociaty/sociaty_db.proto new file mode 100644 index 0000000..49bc40a --- /dev/null +++ b/src/pb/proto/sociaty/sociaty_db.proto @@ -0,0 +1,133 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_msg.proto"; + +message DBSociaty { + string id = 1; //@go_tags(`bson:"_id"`) ID + string creater = 2; //@go_tags(`bson:"creater"`) 创建人 + string name = 3; //@go_tags(`bson:"name"`) 公会名称 + string icon = 4; //@go_tags(`bson:"icon"`) 公会图标 + string notice = 5; //@go_tags(`bson:"notice"`) 公告 + int32 exp = 6; //@go_tags(`bson:"exp"`) 经验 + int32 lv = 7; //@go_tags(`bson:"lv"`) 等级 + bool isApplyCheck = 8; //@go_tags(`bson:"isApplyCheck"`) 是否必须审批 + int32 applyLv = 9; //@go_tags(`bson:"applyLv"`) 等级限制 + int64 ctime = 10; //@go_tags(`bson:"ctime"`) 创建时间 + repeated ApplyRecord applyRecord = + 11; //@go_tags(`bson:"applyRecord"`) 入会申请 + repeated SociatyMember members = 12; //@go_tags(`bson:"members"`) 公会成员 + int32 activity = 13; //@go_tags(`bson:"activity"`) 活跃度 + int64 accuseTime = 14; //@go_tags(`bson:"accuseTime"`) 会长弹劾时间 + int32 lastSignCount = 15; //@go_tags(`bson:"lastSignCount"`) 昨日签到的人数 + repeated string signIds = 16; //@go_tags(`bson:"signIds"`) 今日签到的玩家IDs + int64 dismissTime = 17; //@go_tags(`bson:"dismissTime"`) 公会解散时间 + int64 dismissCD = 18; //@go_tags(`bson:"dismissCD"`) 解散CD +} + +//申请记录 +message ApplyRecord { + string uid = 1; //@go_tags(`bson:"uid"`) 申请的玩家ID + int64 ctime = 2; //@go_tags(`bson:"ctime"`) 申请时间 +} + +//职位 +enum SociatyJob { + NOJOB = 0; //无职位/权限 + MEMBER = 1; //成员 + ADMIN = 2; //管理员 + VICEPRESIDENT = 3; //副会长 + PRESIDENT = 4; //会长 +} + +// 公会成员 +message SociatyMember { + string uid = 1; //@go_tags(`bson:"uid"`) 成员ID + SociatyJob job = 2; //@go_tags(`bson:"job"`) 职位 + int64 ctime = 3; //@go_tags(`bson:"ctime"`) 入会时间 + int32 contribution = 4; //@go_tags(`bson:"contribution"`) 贡献值 + map teams = 5; //@go_tags(`bson:"teams"`) 公会BOSS 队伍 +} + +// 日志 +message SociatyLog { + string content = 1; //@go_tags(`bson:"content"`) 日志内容 + int64 ctime = 2; //@go_tags(`bson:"ctime"`) 创建时间 +} + +message DBSociatyLog { + string sociatyId = 1; //@go_tags(`bson:"sociatyId") 公会ID + repeated SociatyLog list = 2; //@go_tags(`bson:"list"`) 日志 +} + +// 公会成员任务 +message DBSociatyTask { + string sociatyId = 1; //@go_tags(`bson:"sociatyId") 公会ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + repeated SociatyTask taskList = 3; //@go_tags(`bson:"taskList"`) 任务列表 + repeated SociatyActivity activityList = + 4; //@go_tags(`bson:"activityList"`) 活跃度列表 + int64 lastUpdateTime = 5; //@go_tags(`bson:"lastUpdateTime"`) 上次初始时间 +} + +// 任务 +message SociatyTask { + int32 taskId = 1; //@go_tags(`bson:"taskId"`) 任务ID + int32 status = 2; //@go_tags(`bson:"status"`) 领取状态:0未完成 1已完成 + int32 received = 3; //@go_tags(`bson:"received"`) 领取状态: 0未领取 1已领取 +} + +// 活跃度 +message SociatyActivity { + int32 id = 1; //@go_tags(`bson:"id"`) 活跃度ID + int32 status = 2; //@go_tags(`bson:"status"`) 领取状态:0未领取 1已领取 +} + +//任务活跃度排行榜 +message DBSociatyRank { + string sociatyId = 1; //@go_tags(`bson:"sociatyId"`) + string name = 2; //@go_tags(`bson:"name"`) 公会名称 + int32 lv = 3; //@go_tags(`bson:"lv"`) 等级 + int32 activity = 4; //@go_tags(`bson:"activity"`) 活跃度 + int64 ctime = 5; //@go_tags(`bson:"ctime"`) 公会创建时间 +} + +// 阵容明细 +message ChallengeTeamInfo { + string heroId = 1; //@go_tags(`bson:"heroId"`) 英雄ID +} + +// 阵容 +message ChallengeTeam { + BattleFormation formation = 1; //@go_tags(`bson:"teamInfo"`) 阵容 +} + +// 赛季信息 +message DBSociatyBossSports { + int64 endTime = 1; //@go_tags(`bson:"endTime"`) 公会BOSS赛季结束时间 + int64 settlementTime = 2; //@go_tags(`bson:"settlementTime"`) 赛季结算时间 + repeated string uids = 3; //@go_tags(`bson:"uids"`) 参赛玩家 +} + +// 玩家每次挑战的记录 +message ChallengeRecord { + map teams = 1; //@go_tags(`bson:"teams"`) 挑战队伍 + int64 integral = 2; //@go_tags(`bson:"integral"`) 公会BOSS挑战积分 + int32 duration = 3; //@go_tags(`bson:"duration"`) 战斗耗时 + int64 rtime = 4; //@go_tags(`bson:"rtime"`) 记录时间 +} + +message ChallengeTask { + int32 taskId = 1; //@go_tags(`bson:"taskId"`) 任务ID + int32 status = 2; //@go_tags(`bson:"status"`) 任务状态 0未完成 1可领取 2已领取 +} + +//玩家赛季记录 +message DBSociatyBossRecord { + string uid = 1; //@go_tags(`bson:"uid"`) 玩家ID + string sociatyId = 2; //@go_tags(`bson:"sociatyId"`) 公会ID + repeated ChallengeRecord record = 4; //@go_tags(`bson:"record"`) 赛季挑战记录 + int64 total = 5; //@go_tags(`bson:"total"`) 赛季总积分(前三积分和) + repeated int64 integrals = 6; //@go_tags(`bson:"integrals"`) 赛季中最高积分 + int32 status = 7; //@go_tags(`bson:"status"`)0当前赛季记录 1归档赛季记录 + repeated ChallengeTask tasks = 8; //@go_tags(`bson:"tasks"`) 积分任务 +} \ No newline at end of file diff --git a/src/pb/proto/sociaty/sociaty_msg.proto b/src/pb/proto/sociaty/sociaty_msg.proto new file mode 100644 index 0000000..8ef8588 --- /dev/null +++ b/src/pb/proto/sociaty/sociaty_msg.proto @@ -0,0 +1,289 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "comm.proto"; +import "sociaty/sociaty_db.proto"; +import "battle/battle_db.proto"; +import "battle/battle_msg.proto"; + +// 创建公会 +message SociatyCreateReq { + string name = 1; //公会名称 + string icon = 2; //公会图标 + string notice = 3; //公告 + bool isApplyCheck = 4; //审批 + int32 applyLv = 5; //限制等级 +} + +message SociatyCreateResp { + string id = 1; //公会ID + string uid = 2; //创建公会的玩家ID +} + +// 筛选条件 +enum SociatyListFilter { + ALL = 0; //全部 + CONDI = 1; //满足条件 + NOAPPLY = 2; //无审批 + APPLYING = 3; //申请中 +} +// 公会列表 +message SociatyListReq { SociatyListFilter filter = 1; } +message SociatyListResp { repeated DBSociaty list = 1; } + +// 搜索公会 +message SociatySearchReq { + string name = 1; //公会名称 +} +message SociatySearchResp { repeated DBSociaty list = 1; } + +// 设置公会 +message SociatySettingReq { + string icon = 1; //公会图标 + string notice = 2; //公告 + bool isApplyCheck = 3; //审批 + int32 applyLv = 4; //限制等级 +} + +message SociatySettingResp { + string sociatyId = 1; //公会ID +} + +// 我的公会 +message SociatyMineReq {} +message SociatyMineResp { + DBSociaty sociaty = 1; //公会信息 + SociatyMemberInfo master = 2; // 会长 +} + +//成员信息 +message SociatyMemberInfo { + string uid = 1; + string name = 2; //昵称 + string avatar = 3; //头像 + int32 lv = 4; //等级 + SociatyJob job = 5; //职位 + int64 offlineTime = 6; //离线时间 +} + +// 申请列表 +message SociatyApplyListReq { string sociatyId = 1; } +message SociatyApplyListResp { repeated SociatyMemberInfo list = 1; } + +// 申请 +message SociatyApplyReq { + string sociatyId = 1; //公会ID +} +message SociatyApplyResp { + string uid = 1; + string scoiatyId = 2; +} + +// 申请撤销 +message SociatyApplyCancelReq { string sociatyId = 1; } +message SociatyApplyCancelResp { + string uid = 1; + string sociatyId = 2; +} + +// 同意 +message SociatyAgreeReq { string uid = 1; } +message SociatyAgreeResp { + string uid = 1; + string sociatyId = 2; +} + +// 拒绝 +message SociatyRefuseReq { string uid = 1; } +message SociatyRefuseResp { + string uid = 1; + string sociatyId = 2; +} + +// 撤销申请 +message SociatyCancelReq {} +message SociatyCancelResp {} + +// 退出公会 +message SociatyQuitReq {} +message SociatyQuitResp { + string uid = 1; + string sociatyId = 2; +} + +// 解散公会 +message SociatyDismissReq { + int32 dismiss = 1; // 1取消解散 +} + +message SociatyDismissResp { + string uid = 1; + string sociatyId = 2; +} + +// 员工列表 +message SociatyMembersReq {} +message SociatyMembersResp { repeated SociatyMemberInfo list = 1; } + +// 转让公会 +message SociatyAssignReq { + string targetId = 1; //转让目标玩家ID +} +message SociatyAssignResp { + string sociatyId = 1; + string targetId = 2; //转让目标玩家ID +} + +// 踢出公会 +message SociatyDischargeReq { + string targetId = 1; //踢出目标玩家ID +} +message SociatyDischargeResp { + string sociatyId = 1; + string targetId = 2; //转让目标玩家ID +} + +// 设置职位 +message SociatySettingJobReq { + string targetId = 1; //目标玩家ID + SociatyJob job = 2; //职位 +} +message SociatySettingJobResp { + string sociatyId = 1; + string targetId = 2; //目标玩家ID + SociatyJob job = 3; //职位 +} + +// 弹劾 +message SociatyAccuseReq {} +message SociatyAccuseResp { string sociatyId = 1; } + +// 签到 +message SociatySignReq {} +message SociatySignResp { + string uid = 1; + string sociatyId = 2; +} + +//日志列表 +message SociatyLogReq {} +message SociatyLogResp { DBSociatyLog log = 1; } + +// 任务列表 +message SociatyTaskListReq {} +message SociatyTaskListResp { repeated SociatyTask list = 1; } + +// 任务奖励领取 +message SociatyReceiveReq { + int32 taskId = 1; //任务ID +} +message SociatyReceiveResp { + int32 taskId = 1; + string sociatyId = 2; +} + +// 活跃度列表 +message SociatyActivityListReq {} +message SociatyActivityListResp { repeated SociatyActivity list = 1; } + +//活跃度奖励领取 +message SociatyActivityReceiveReq { + int32 id = 1; //配置ID +} +message SociatyActivityReceiveResp { + int32 id = 1; + string sociatyId = 2; +} + +// 公会排行榜 +message SociatyRankReq { + int32 rankType = 1; // 1个人2公会成员3全服 +} +message SociatyRankResp { repeated DBSociatyRank rank = 1; } + +// 公会解散推送 +message SociatyPDismissPush { string sociatyId = 1; } + +// 审核通过推送 +message SociatyPAgreePush { + string uid = 1; + string sociatyId = 2; +} + +// 公会BOSS入口 +message SociatyBMainReq {} + +message SociatyBMainResp { + map teams = 1; //公会BOSS 队伍 + int32 ticket = 2; // 挑战券数量 + int64 endTime = 3; //赛季结束时间 + int64 settlementTime = 4; //赛季结算时间 + int64 total = 5; //总积分 + repeated int64 highIntegrals = 6; //最高的积分 + int64 personalRanking = 7; //个人排名 + int64 sociatyRanking = 8; //公会排名 +} + +// 公会BOSS 布阵 +message SociatyBFormationReq { + string sociatyId = 1; + map teams = 2; //队伍信息,队伍编号1 2 3,从1开始 +} + +message SociatyBFormationResp { + string sociatyId = 1; + string uid = 2; +} + +// 公会BOSS挑战 +message SociatyBChallengeStartReq { string sociatyId = 1; } +message SociatyBChallengeStartResp { + string sociatyId = 1; + string uid = 2; +} + +message SociatyBChallengeFinishReq { + PlayType ptype = 1; + BattleReport report = 2; +} + +message SociatyBChallengeFinishResp { + int64 integral = 1; //积分 +} + +// 公会BOSS 阵容推荐 +message SociatyRecommendReq { + int32 cate = 1; // 1全服排行 2好友排行 +} + +message SociatyRecommendResp { map teams = 1; } + +// 公会BOSS 领取奖励 +message SociatyBReceiveReq { int32 taskId = 1; } + +message SociatyBReceiveResp { + string sociatyId = 1; + int32 taskId = 2; +} + +//公会BOSS 排名 +message SociatyBRankReq { + int32 rankType = 1; //排名分类 1个人排名2公会成员3全服排名 +} + +message SociatyRankInfo { + string name = 1; //昵称 + string head = 2; //头像 + int32 lv = 3; //等级 + string sociatyName = 4; //公会名称 + int64 ranking = 5; //名次 + int64 integral = 6; //积分 +} +message SociatyBRankResp { repeated SociatyRankInfo rank = 1; } + +//挑战券购买 +message SociatyBuyReq { + UserAssets atn = 1; //挑战券消耗资源及价格 + int32 buyNum = 2; //购买数量 +} + +message SociatyBuyResp { string uid = 1; } diff --git a/src/pb/proto/sys_msg.proto b/src/pb/proto/sys/sys_msg.proto similarity index 64% rename from src/pb/proto/sys_msg.proto rename to src/pb/proto/sys/sys_msg.proto index e99df98..1f00dfa 100644 --- a/src/pb/proto/sys_msg.proto +++ b/src/pb/proto/sys/sys_msg.proto @@ -1,7 +1,9 @@ syntax = "proto3"; option go_package = ".;pb"; -message SysFuncListReq {} +message SysFuncListReq { + repeated string keys = 1; //功能ID +} message SysFuncListResp { repeated string funcIds = 1; //功能ID diff --git a/src/pb/proto/task/task_db.proto b/src/pb/proto/task/task_db.proto new file mode 100644 index 0000000..d0616af --- /dev/null +++ b/src/pb/proto/task/task_db.proto @@ -0,0 +1,58 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +message DBTask { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + repeated TaskData dayList = 4; //@go_tags(`bson:"dayList"`) 日常任务列表 + repeated TaskData weekList = 5; //@go_tags(`bson:"weekList"`) 周常任务列表 + repeated TaskData achieveList = + 6; //@go_tags(`bson:"achieveList"`) 成就任务列表 +} + +message TaskData { + int32 taskId = 3; //@go_tags(`bson:"taskId"`) 任务Id + int32 tag = 4; //@go_tags(`bson:"tag"`) 标签 + int32 progress = 5; //@go_tags(`bson:"progress"`) 任务进度/完成次数 + int32 active = 6; //@go_tags(`bson:"active"`) 活跃度 + int32 status = 7; //@go_tags(`bson:"status"`) 任务状态 默认0未完成 1已完成 + int32 received = 8; //@go_tags(`bson:"received"`) 领取状态 默认0未领取 1已领取 + int32 typeId = 9; //@go_tags(`bson:"typeId"`) + int32 sort = 10; //@go_tags(`bson:"sort"`) +} + +message DBActivity { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + repeated ActivityData activityList = + 3; //@go_tags(`bson:"activityList"`) 活跃度列表 +} + +message ActivityData { + int32 taskId = 1; //@go_tags(`bson:"taskId"`) taskId + int32 tag = 2; //@go_tags(`bson:"tag"`) 标签 + int32 received = 3; //@go_tags(`bson:"received"`) 领取状态 默认0未领取 1已领取 +} + +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 frtaskIds = + 3; //@go_tags(`bson:"frtaskIds"`) 已完成的任务Id + bool isReward = 5; //@go_tags(`bson:"isReward"`) 接收奖励 +} + +message rtaskData { + map 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 vals = 3; //@go_tags(`bson:"vals"`) 任务记录值 +} \ No newline at end of file diff --git a/src/pb/proto/task_msg.proto b/src/pb/proto/task/task_msg.proto similarity index 53% rename from src/pb/proto/task_msg.proto rename to src/pb/proto/task/task_msg.proto index e67a3bd..457cdfd 100644 --- a/src/pb/proto/task_msg.proto +++ b/src/pb/proto/task/task_msg.proto @@ -1,11 +1,23 @@ syntax = "proto3"; option go_package = ".;pb"; -import "task_db.proto"; +import "task/task_db.proto"; + +message TaskGetrecordReq {} +message TaskGetrecordResp { DBRtaskRecord record = 1; } + +//任务触发 +message TaskSendReq { + int32 taskType = 1; //任务类型 + repeated int32 params = 2; //任务参数 +} +message TaskSendResp { + bool isSucc = 1; +} //领取 message TaskReceiveReq { int32 taskTag = 1; // 1日常/2周常/3成就 - string id = 2; //任务唯一ID + int32 id = 2; //任务唯一ID } message TaskReceiveResp { @@ -17,35 +29,25 @@ message TaskListReq { int32 taskTag = 1; //日常/周常/成就 } -message TaskListResp { repeated DBTask list = 1; } +message TaskListResp { repeated TaskData list = 1; } //活跃度 message TaskActiveListReq { int32 taskTag = 1; } message TaskActiveListResp { - repeated DBTaskActive list = 1; //活跃度列表 + repeated ActivityData list = 1; //活跃度列表 int32 active = 2; //活跃度值 } //活跃度领取 message TaskActiveReceiveReq { int32 taskTag = 1; // 1日常/2周常 - string id = 2; //唯一id + int32 id = 2; //唯一id } message TaskActiveReceiveResp { int32 taskTag = 1; - string id = 2; + int32 id = 2; } -//攻略 -message TaskDoStrategyReq { - int32 heroCfgId = 1; //英雄ID -} - -message TaskDoStrategyResp { - repeated int32 taskIds = 1; //任务ID -} //任务完成推送 -message TaskFinishedPush { - int32 taskId = 1; -} \ No newline at end of file +message TaskFinishedPush { int32 taskId = 1; } \ No newline at end of file diff --git a/src/pb/proto/task_db.proto b/src/pb/proto/task_db.proto deleted file mode 100644 index 566a919..0000000 --- a/src/pb/proto/task_db.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax = "proto3"; -option go_package = ".;pb"; - -message DBTask { - string id = 1; //@go_tags(`bson:"_id"`) ID - string uid = 2; //@go_tags(`bson:"uid"`) 用户ID - int32 taskId = 3; //@go_tags(`bson:"taskId"`) 任务Id - int32 tag = 4; //@go_tags(`bson:"tag"`) 标签 - int32 progress = 5; //@go_tags(`bson:"progress"`) 任务进度/完成次数 - int32 active = 6; //@go_tags(`bson:"active"`) 活跃度 - int32 status = 7; //@go_tags(`bson:"status"`) 任务状态 默认0未完成 1已完成 - int32 received = 8; //@go_tags(`bson:"received"`) 领取状态 默认0未领取 1已领取 - int32 typeId = 9; //@go_tags(`bson:"typeId"`) - int32 sort = 10; //@go_tags(`bson:"sort"`) -} - -message DBTaskActive { - string id = 1; //@go_tags(`bson:"_id"`) ID - string uid = 2; //@go_tags(`bson:"uid"`) 用户ID - int32 rId = 3; //@go_tags(`bson:"taskId"`) rewardId - int32 tag = 4; //@go_tags(`bson:"tag"`) 标签 - int32 received = 5; //@go_tags(`bson:"received"`) 领取状态 默认0未领取 1已领取 -} \ No newline at end of file diff --git a/src/pb/proto/taskcond/taskcond_msg.proto b/src/pb/proto/taskcond/taskcond_msg.proto new file mode 100644 index 0000000..c8df7e0 --- /dev/null +++ b/src/pb/proto/taskcond/taskcond_msg.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +//任务完成条件推送 +message TaskcondFinishedPush { + int32 condId = 1; //达成的任务条件ID +} \ No newline at end of file diff --git a/src/pb/proto/troll/troll_db.proto b/src/pb/proto/troll/troll_db.proto new file mode 100644 index 0000000..7a8f9e0 --- /dev/null +++ b/src/pb/proto/troll/troll_db.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; +option go_package = ".;pb"; + + +// 巨怪列车 +message DBTrollTrain { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + map items = 3;// 货物 key 货物ID + map price = 4;// 货物买入价格 key 货物ID + int32 gridNum = 5; //@go_tags(`bson:"gridNum"`) 当前使用格子数量 + int32 tarinPos = 6; //@go_tags(`bson:"tarinPos"`) 火车位置 (商人位置) + int32 rangeId = 7; //@go_tags(`bson:"rangeId"`) 增长幅度 + int32 buy = 8; // 挂机进货标准/千分比 + int32 sell = 9; //挂机卖出标准/千分比 + int32 npcLv = 10;//@go_tags(`bson:"npcLv"`) npc 等级 + map npcReward = 11;//@go_tags(`bson:"npcReward"`) npc奖励 + int64 totalEarn = 12;//@go_tags(`bson:"totalEarn"`) 累计赚的钱 + int32 sellCount = 13;//@go_tags(`bson:"sellCount"`) 今天已经卖出次数 + int64 refreshTime = 14;//@go_tags(`bson:"refreshTime"`) 最后一次刷新的时间 通过这个计算下一次刷新时间 + int32 aiCount = 15;//@go_tags(`bson:"aiCount"`) AI 交易次数 + map shop= 16; // 商人的限购数量 + int64 ctime = 17; // 创建时间 + int32 circle = 18; // 循环商人的次数 + map surpriseID = 19; //@go_tags(`bson:"surpriseID"`) key商人id value惊喜货物ID + int64 resetTime = 20; //@go_tags(`bson:"resetTime"`) 每日重置时间 +} + +// 收益记录 +message DBTrollRecord{ + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + int32 gold = 3; // 收益 + int32 pos = 4; // 商人位置 + int64 time = 5; // 交易时间 +} \ No newline at end of file diff --git a/src/pb/proto/troll/troll_msg.proto b/src/pb/proto/troll/troll_msg.proto new file mode 100644 index 0000000..d766421 --- /dev/null +++ b/src/pb/proto/troll/troll_msg.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "troll/troll_db.proto"; +// 查询进度 +message TrollGetListReq { + +} +// 返回进度信息 +message TrollGetListResp { + DBTrollTrain data = 1; +} + +// 买卖货物 +message TrollBuyOrSellReq { + map items =1;//买入货物的数量(负数为卖) +} + +message TrollBuyOrSellResp { + DBTrollTrain data = 1; +} + +// afk 设置 +message TrollAfkSetReq { + int32 buy = 1; + int32 sell = 2; + int32 count = 3; // 挂机次数 +} + +message TrollAfkSetResp { + DBTrollTrain data = 1; +} + +// npv等级奖励 +message TrollNpcRewardReq { + int32 rewardId = 1; +} + +message TrollNpcRewardResp { + DBTrollTrain data = 1; +} + +// 获取收益排行榜 +message TrollRankListReq { + +} +message RankData{ + int32 rankId = 1; // 排名 + string uid = 2; + string name = 3; // 昵称 + int64 gold = 4; // 收益金币 + int32 figure = 5; // 形象 + int32 title = 6; +} +message TrollRankListResp { + repeated RankData data = 1; +} + +// 获取收益明细 +message TrollRecordListReq { + +} + +message TrollRecordListResp { + repeated DBTrollRecord data = 1; +} +// 获取惊喜商品 +message TrollSurpriseIdReq { + +} + +// 返回进度信息 +message TrollSurpriseIdResp { + map surpriseID = 1; //@go_tags(`bson:"surpriseID"`) key商人id value惊喜货物ID +} \ No newline at end of file diff --git a/src/pb/proto/user_db.proto b/src/pb/proto/user/user_db.proto similarity index 53% rename from src/pb/proto/user_db.proto rename to src/pb/proto/user/user_db.proto index d38115a..f4a2401 100644 --- a/src/pb/proto/user_db.proto +++ b/src/pb/proto/user/user_db.proto @@ -2,12 +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 uid = 1; //@go_tags(`bson:"uid"`) 用户id + string SessionId = 2; //@go_tags(`bson:"sessionId"`) 会话id + string ServiceTag = 3; //@go_tags(`bson:"serviceTag"`) 所在服务集群 区服id string GatewayServiceId = - 4; //@go_tags(`json:"gatewayServiceId"`) 所在网关服务id - string ip = 5; //@go_tags(`json:"ip"`) 远程ip + 4; //@go_tags(`bson:"gatewayServiceId"`) 所在网关服务id + string ip = 5; //@go_tags(`bson:"ip"`) 远程ip } message DBUser { @@ -21,17 +21,24 @@ message DBUser { string lastloginip = 8; //@go_tags(`bson:"lastloginip"`) 最后一次登录时的ip int64 ctime = 9; //@go_tags(`bson:"ctime"`) 玩家创号时间戳 int64 logintime = 10; //@go_tags(`bson:"logintime"`) 最后一次登录时间 + int32 gender = 11; //@go_tags(`bson:"gender"`) 性别 0男1女 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"`) 背景 + int64 vipexp = 15; //@go_tags(`bson:"vipexp"`) vip经验 + int64 starcoin = 16; //@go_tags(`bson:"starcoin"`) 星座图币 + bool created = 17; //@go_tags(`bson:"created"`) 创角 + int32 lv = 18; //@go_tags(`bson:"lv"`) 等级 + int32 vip = 19; //@go_tags(`bson:"vip"`) vip等级 + int64 diamond = 20; //@go_tags(`bson:"diamond"`) 钻石 + int32 title = 21; //@go_tags(`bson:"title"`) 头衔 + int64 offlinetime = 22; //@go_tags(`bson:"offlinetime"`) 离线时间 + int32 figure = 23; //@go_tags(`bson:"figure"`) 主角形象 + string bgp = 24; //@go_tags(`bson:"bgp"`) 背景 + int32 ps = 25; //@go_tags(`bson:"ps"`) 体力 + int64 lastRecoverPsSec = + 26; //@go_tags(`bson:"lastRecoverPsSec"`) 上次体会恢复时间 + int32 moongold = 27; //@go_tags(`bson:"moongold"`) 纯净月髓 } message DBUserSetting { @@ -50,3 +57,14 @@ message DBUserSetting { bool xuanshang = 13; //@go_tags(`bson:"wanfa"`)悬赏玩法重置 bool saiji = 14; //@go_tags(`bson:"wanfa"`)格斗场玩法赛季重置 } + +// 签到功能 +message DBSign { + string id = 1; //@go_tags(`bson:"_id"`) ID + string uid = 2; //@go_tags(`bson:"uid"`) 用户ID + int64 signTime = 3; //@go_tags(`bson:"signTime"`) 玩家登录时间 + int32 signCount = 4; //@go_tags(`bson:"signCount"`) 玩家累计签到次数 + int32 group = 5; // 签到组id + int32 cid = 6; //记录循环签到值,客户端忽略这个字段 + int64 rTime = 7; //@go_tags(`bson:"rTime"`) 刷新时间 +} \ No newline at end of file diff --git a/src/pb/proto/user_msg.proto b/src/pb/proto/user/user_msg.proto similarity index 52% rename from src/pb/proto/user_msg.proto rename to src/pb/proto/user/user_msg.proto index 763a9ce..8bcc8cb 100644 --- a/src/pb/proto/user_msg.proto +++ b/src/pb/proto/user/user_msg.proto @@ -1,10 +1,12 @@ syntax = "proto3"; option go_package = ".;pb"; import "errorcode.proto"; -import "user_db.proto"; +import "user/user_db.proto"; import "userexpand.proto"; -import "pagoda_db.proto"; - +import "pagoda/pagoda_db.proto"; +import "viking/viking_db.proto"; +import "hunting/hunting_db.proto"; +import "serverdata.proto"; //用户登录 message UserLoginReq { string account = 1; //账号 @@ -46,16 +48,30 @@ message UserLoadResp { CacheUser data = 1; } //创角 message UserCreateReq { string NickName = 1; //昵称 + int32 figure = 2; // 模型 做展示用 + int32 gender = 3; //性别 0男1女 } message UserCreateResp { bool IsSucc = 1; } // 玩家资源变更推送 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`) 友情点 + int64 gold = 1; //@go_tags(`bson:"gold"`) 金币 + int64 exp = 2; //@go_tags(`bson:"exp"`) 经验 + int64 vipexp = 3; //@go_tags(`bson:"vipexp"`) 经验 + int64 diamond = 4; //@go_tags(`bson:"diamond"`) 钻石 + int32 friend = 5; //@go_tags(`bson:"frined`) 友情点 + int64 starcoin = 6; //@go_tags(`bson:"starcoin`) 星座币 + int32 guildcoin = 7; //@go_tags(`bson:"guildcoin`) 公会币 + int32 arenacoin = 8; //@go_tags(`bson:"arenacoin`) 竞技场币 + int32 ps = 9; //@go_tags(`bson:"ps"`) 体力 + int32 moongold = 10; //@go_tags(`bson:"moongold"`) 纯净月髓 +} +// 玩家在其它终端登录的通知 +message UserOtherTermLoginPush { string uid = 1; } + +message UserPsChangedPush { + int32 ps = 1; //@go_tags(`bson:"ps"`) 体力 } //用户设置获取 @@ -103,12 +119,12 @@ message UserModifyavatarResp { // 修改背景图片 message UserModifybgpReq { - int32 bgpId = 1; //背景图片ID + string bgpId = 1; //背景图片ID } message UserModifybgpResp { string uid = 1; - int32 bgpId = 2; //背景图片ID + string bgpId = 2; //背景图片ID } // 修改形象 @@ -130,15 +146,54 @@ message UserLvChangedPush { int32 lv = 3; } +// vip 等级变化 +message UserVipChangedPush { + string uid = 1; + int64 vipExp = 2; + int32 vipLv = 3; +} // 用户签名 message UserModifysignReq { string sign = 1; } message UserModifysignResp { string uid = 1; } // 玩家战斗记录 -message UserBattlerecordReq {} +message UserBattlerecordReq { string uid = 1; } message UserBattlerecordResp { - string uid = 1; - DBPagodaRecord pagodaRecord = 2; //爬塔战斗记录 + DBUser data = 1; + DBUserExpand ex = 2; //用户扩展 + DBPagodaRecord pagodaRecord = 3; //爬塔战斗记录 + repeated DBHuntingRank huntingRecord = 4; //狩猎战斗记录 + repeated DBVikingRank vikingRecord = 5; //维京远征战斗记录 +} + +// 玩家阵容展示设置 +message UserSettingteamReq { + repeated string heroObjIds = 2; //英雄ID +} +message UserSettingteamResp { string uid = 1; } + +//玩家阵容展示 +message UserShowteamReq {} + +message UserShowteamResp { + repeated string heroObjIds = 1; //英雄ID +} + +// 全服在线用用户session +message UserOnlineResp { repeated CacheUser users = 1; } + +// 用户数据列表 +message UserDataListResp { repeated DBUser users = 1; } + +message UserGetServerDataReq {} + +message UserGetServerDataResp { DBServerData data = 1; } + +message UserSignReq {} +// 推送签到信息 +message UserSignResp { + DBSign data = 1; + bool reward = 2; // 是否领奖 } \ No newline at end of file diff --git a/src/pb/proto/userexpand.proto b/src/pb/proto/userexpand.proto index 5f07063..49ecaa4 100644 --- a/src/pb/proto/userexpand.proto +++ b/src/pb/proto/userexpand.proto @@ -10,7 +10,7 @@ message DBUserExpand { uint32 initdataCount = 5; //今日初始累计次数 int32 chatchannel = 6; //跨服聊天频道 int32 modifynameCount = 7; //修改昵称次数 - map tujian = 8; //图鉴 + map expitem = 8; //该英雄重复获取后所获得的升星道具 int32 activeday = 11; //日活跃度 int32 activeweek = 12; //周活跃度 string sign = 13; //用户签名 @@ -20,6 +20,18 @@ message DBUserExpand { 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 -} + int32 rtaskId = 21; //@go_tags(`bson:"rtaskId"`) 当前完成的随机任务ID + repeated string teamHeroIds = 22; //@go_tags(`bson:"teamHeroIds"`) 阵容英雄IDs + string sociatyId = 23; //@go_tags(`bson:"sociatyId"`) 公会ID + int64 sociatyCd = 24; //@go_tags(`bson:"sociatyCd"`) 主动退出CD + int32 guildcoin = 25; //@go_tags(`bson:"guildcoin"`) 公会币 + int32 arenacoin = 26;//@go_tags(`bson:"arenacoin"`) 竞技场币 + int32 physicalbuynum = 27; //@go_tags(`bson:"physicalbuynum"`)体力购买次数 + int64 physicalbuyLasttime = 28;//@go_tags(`bson:"physicalbuyLasttime"`)最后购买体力事件 + int32 buyunifiedticket = 29; //@go_tags(`bson:"buyunifiedticket"`)购买统一入场门票次数 + int64 lasttimeunifiedticket = 30; //@go_tags(`bson:"lasttimeunifiedticket"`)最后购买统一入场门票时间 + int64 recovertimeunifiedticket = 31;//@go_tags(`bson:"recovertimeunifiedticket"`)同意门票恢复时间 + int32 sociatyTicketBuyNum = 32;//@go_tags(`bson:"sociatyTicketBuyNum"`) 公会boss挑战券购买次数 + int32 sociatyTicket = 33;//@go_tags(`bson:"sociatyTicket"`) 公会boss挑战券数量 + map mline = 34;//@go_tags(`bson:"mline"`) 主线关卡最大进度 key难度val是关卡ID +} \ No newline at end of file diff --git a/src/pb/proto/viking_db.proto b/src/pb/proto/viking/viking_db.proto similarity index 65% rename from src/pb/proto/viking_db.proto rename to src/pb/proto/viking/viking_db.proto index 30964d1..3c7a2c2 100644 --- a/src/pb/proto/viking_db.proto +++ b/src/pb/proto/viking/viking_db.proto @@ -1,15 +1,15 @@ syntax = "proto3"; option go_package = ".;pb"; -import "battle_msg.proto"; +import "battle/battle_msg.proto"; //维京远征 message DBViking { string id = 1; //@go_tags(`bson:"_id"`) ID string uid = 2; //@go_tags(`bson:"uid"`) 用户ID - int32 challengeCount = 3; //@go_tags(`bson:"challengeCount"`) 挑战次数 - map boss = 4; // key boos 类型 value 难度 - int32 buyCount = 5;//@go_tags(`bson:"buyCount"`) 购买次数 - int64 cTime = 6; //@go_tags(`bson:"cTime"`) 修改时间 - map bossTime = 7; //@go_tags(`bson:"bossTime"`) + map boss = 3; // key boos 类型 value 难度 + int32 buyCount = 4;//@go_tags(`bson:"buyCount"`) 购买次数 + int64 cTime = 5; //@go_tags(`bson:"cTime"`) 修改时间 + map bossTime = 6; //@go_tags(`bson:"bossTime"`) + int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) // 开始恢复的时间 } // 维京远征排行榜 @@ -24,4 +24,4 @@ message DBVikingRank { int32 leadpos = 8; //队长位置 repeated LineUp line = 9; // 阵容数据 int32 costTime = 10; //@go_tags(`bson:"costTime"`) 闯关耗时 单位s -} \ No newline at end of file +} diff --git a/src/pb/proto/viking/viking_msg.proto b/src/pb/proto/viking/viking_msg.proto new file mode 100644 index 0000000..9eadcb9 --- /dev/null +++ b/src/pb/proto/viking/viking_msg.proto @@ -0,0 +1,62 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "viking/viking_db.proto"; +import "battle/battle_msg.proto"; +import "comm.proto"; +message VikingGetListReq { + +} + +message VikingGetListResp { + DBViking data = 1; +} + +// 挑战 +message VikingChallengeReq { + int32 bossId = 1; // boos 类型 + int32 difficulty = 2; // 难度 + BattleFormation battle = 3; + bool autoBuy = 4;// 自动购买 +} + +message VikingChallengeResp { + BattleInfo info = 1; + int32 bossId = 2; // boos 类型 + int32 difficulty = 3; // 难度 +} + +message VikingChallengeOverReq { + int32 bossId = 1; // boos 类型 + int32 difficulty = 2; // 难度 + BattleReport report = 3; //战报 + repeated int32 star = 4;// 自动出售装备的星级 +} + +// 客户端通知服务器打赢了 +message VikingChallengeOverResp { + DBViking data = 1; + repeated UserAtno asset = 2;// 推送atno + repeated string sell = 3; // 自动出售的装备 + map heroexp = 4;// 英雄获得经验 +} + + +// 购买 +message VikingBuyReq { + int32 count = 1;// 购买次数 +} + +message VikingBuyResp { + DBViking data = 1; +} + +// 排行榜 +message VikingRankListReq{ + int32 boosType = 1; // boss 类型 + bool friend = 2; // 是否是好友榜 +} + +message VikingRankListResp{ + repeated DBVikingRank ranks = 1; // 排行数据 有序的 注意boss类型 +} + diff --git a/src/pb/proto/viking_msg.proto b/src/pb/proto/viking_msg.proto deleted file mode 100644 index 0ef7db9..0000000 --- a/src/pb/proto/viking_msg.proto +++ /dev/null @@ -1,47 +0,0 @@ -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 leadpos = 3; //队长位置 - repeated string teamids = 4; //阵容信息 -} - -message VikingChallengeResp { - BattleInfo info = 1; - int32 bossType = 2; // boos 类型 - int32 difficulty = 3; // 难度 -} - -message VikingChallengeOverReq { - int32 bossType = 1; // boos 类型 - int32 difficulty = 2; // 难度 - BattleReport report = 3; //战报 -} - -// 客户端通知服务器打赢了 -message VikingChallengeOverResp { DBViking data = 1; } - -// 购买 -message VikingBuyReq { - int32 count = 1; // 购买次数 -} - -message VikingBuyResp { DBViking data = 1; } - -// 排行榜 -message VikingRankListReq { - int32 boosType = 1; // boss 类型 - bool friend = 2; // 是否是好友榜 -} - -message VikingRankListResp { - repeated DBVikingRank ranks = 1; // 排行数据 有序的 注意boss类型 -} diff --git a/src/pb/proto/worldtask/worldtask_db.proto b/src/pb/proto/worldtask/worldtask_db.proto new file mode 100644 index 0000000..b5fcd24 --- /dev/null +++ b/src/pb/proto/worldtask/worldtask_db.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +message DBWorldtask { + string uid = 1; //@go_tags(`bson:"uid"`) 玩家ID + map lastTaskIds = + 2; //@go_tags(`bson:"lastTaskId"`) 上一次完成的任务 key:groupId val:任务ID + repeated Worldtask taskList = 3; //@go_tags(`bson:"taskList"`) 任务列表 +} + +message Worldtask { + int32 taskId = 1; //@go_tags(`bson:"taskIds"`) 任务ID + int32 taskType= 3; //@go_tags(`bson:"taskType"`) 任务类型 1 日/周常 2随机任务 3支线剧情 +} \ No newline at end of file diff --git a/src/pb/proto/worldtask/worldtask_msg.proto b/src/pb/proto/worldtask/worldtask_msg.proto new file mode 100644 index 0000000..7b62adf --- /dev/null +++ b/src/pb/proto/worldtask/worldtask_msg.proto @@ -0,0 +1,54 @@ +syntax = "proto3"; +option go_package = ".;pb"; +import "battle/battle_msg.proto"; +import "worldtask/worldtask_db.proto"; + +// 我的世界任务 +message WorldtaskMineReq {} + +message WorldtaskMineResp { DBWorldtask task = 1; } + +// 完成任务 +message WorldtaskFinishReq { + int32 groupId = 1; //分组ID + int32 taskId = 2; //任务ID +} +message WorldtaskFinishResp { + int32 groupId = 1; + int32 taskId = 2; + repeated string newheros = 3; //获得的新英雄 + int32 olv = 4; //以前的等级 +} + +//任务完成条件达成的推送 +message WorldtaskNexttaskPush { + int32 nextTaskId = 1; //下一个任务ID +} + +// 开始战斗 +message WorldtaskBattleStartReq { + int32 battleConfId = 1; //战斗配表ID + BattleFormation battle = 2; //战斗类型 +} + +message WorldtaskBattleStartResp { + BattleInfo info = 1; //战斗信息 +} + +// 战斗完成 +message WorldtaskBattleFinishReq { + int32 taskId = 1; //任务ID + int32 battleConfId = 2; //战斗配表ID + BattleReport report = 3; //战报 +} + +message WorldtaskBattleFinishResp { + int32 taskId = 1; //任务ID + repeated string newheros = 2; //获得的新英雄 + int32 olv = 3; //以前的等级 +} + +// 当前完成的任务列表推送 +message WorldtaskFinishIdsPush { + repeated Worldtask taskList = 1; //完成的任务 key:groupId val:任务ID +} \ No newline at end of file