协议上传

This commit is contained in:
meixiongfeng 2023-08-08 09:55:58 +08:00
parent 4a0729edb1
commit 0dcd73e24b
49 changed files with 732 additions and 357 deletions

View File

@ -13,15 +13,17 @@ message DBPlayerBattleFormt {
message ArenaPlayer {
string uid = 1;
string name = 2;
string avatar = 3; //@go_tags(`bson:"avatar"`)
// 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; //
int32 sex = 5; //
string skin = 6; //
int32 dan = 7; //
int32 integral = 8;
int32 rank = 9; //
DBPlayerBattleFormt defend = 10; //
bool isai = 11; //ai
int32 mformatid = 12; // AIId
int32 changeintegral = 13; //
}
enum BattleRecordState {
@ -66,28 +68,29 @@ message DBArenaBattleRecord {
message DBArenaUser {
string uid = 1; //id
string name = 2; //
string avatar = 3; //@go_tags(`bson:"avatar"`)
// 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<int32, DBNpc> npc = 23; // npc Cd
int32 prededuction = 24; //
int32 sex = 6; //
string skin = 7; //
int32 dan = 8; //
DBPlayerBattleFormt attack = 9; //
DBPlayerBattleFormt defend = 10; //
int32 streak = 11; //
int32 attackrate = 12; //
int32 defendrate = 13; //
int32 rank = 14; //
int32 buynum = 15; //
repeated DBArenaBattleRecord record = 16; //
int64 lastrtickettime = 17; //
int32 attackwinuum = 18; //
int32 attacktotaluum = 19; //
int32 defendwinuum = 20; //
int32 defendtotaluum = 21; //
repeated double loc = 22; // 使
bool isdef = 23; //
map<int32, DBNpc> npc = 24; // npc Cd
int32 prededuction = 25; //
}
// npc数据

View File

@ -29,6 +29,10 @@ enum PlayType {
sociaty = 12; //
friendsmeet = 13; //
practicenpc = 14; //NPC
race = 15; //
cycle = 16; //
guildgve = 17; //gve
stone = 18; //
}
//
@ -43,6 +47,12 @@ enum DBBattleComp {
red = 1; //
bule = 2; //
}
//
message DySkillData {
int32 skillID = 1;
int32 skillLv = 2;
int32 param =3;
}
message BattleRole {
int32 tid = 1; // id
@ -55,8 +65,8 @@ message BattleRole {
int32 mainSuitSkill = 8; ///@go_tags(`bson:"mainSuitSkill"`)
int32 subSuitSkill = 9; ///@go_tags(`bson:"subSuitSkill"`)
repeated SkillData normalSkill = 10; //@go_tags(`bson:"normalSkill"`)
repeated SkillData equipSkill = 11; //@go_tags(`bson:"equipSkill"`)
int32 PandaBuff = 12; //buff技能id
repeated SkillData equipSkill = 11; //@go_tags(`bson:"equipSkill"`)
repeated DySkillData battleBeforeSkill = 12; //@go_tags(`bson:"battleBeforeSkill"`)
map<int32, int32> property = 13; //
bool ishelp = 14; //
int32 isboos = 15; //boos

View File

@ -20,15 +20,17 @@ message BattleFormation {
message BattleEVEReq {
PlayType ptype = 1; //
string title = 2; //
BattleFormation format = 3; //
repeated int32 sysformat = 4; //
repeated int32 backupformat = 5; //
repeated int32 buleformat = 6; //
int32 rulesid = 3; //id
BattleFormation format = 4; //
repeated int32 sysformat = 5; //
repeated int32 backupformat = 6; //
repeated int32 buleformat = 7; //
}
// pve ( 使 )
message BattlePVEReq {
PlayType ptype = 1; //
string title = 2; //
int32 rulesid = 3; //id
BattleFormation format = 4; //
repeated int32 mformat = 5; //
}
@ -43,6 +45,7 @@ message PVPFormation {
message BattlePVPReq {
PlayType ptype = 1; //
string title = 2; //
int32 rulesid = 3; //id
PVPFormation redformat = 4; //
PVPFormation buleformat = 5; //
}
@ -51,6 +54,7 @@ message BattlePVPReq {
message BattleRTPVPReq {
PlayType ptype = 1; //
string title = 2; //
int32 rulesid = 3; //id
string redCompId = 6; //id
repeated BattleFormation redformat = 7; //
string blueCompId = 8; //id
@ -62,10 +66,11 @@ message BattleRTPVPReq {
message BattleLPVEReq {
PlayType ptype = 1; //
string title = 2; //
string scene = 3; //
BattleFormation format = 4; //
int32 monsterleadpos = 5; //
repeated BattleRole monsters = 6; //
int32 rulesid = 3; //id
string scene = 4; //
BattleFormation format = 5; //
int32 monsterleadpos = 6; //
repeated BattleRole monsters = 7; //
}
@ -73,6 +78,7 @@ message BattleLPVEReq {
message BattlePVBReq {
PlayType ptype = 1; //
string title = 2; //
int32 rulesid = 3; //id
repeated BattleFormation format = 4; //
repeated int32 mformat = 5; //
}
@ -81,7 +87,7 @@ message BattlePVBReq {
message BattleInfo {
string id = 1; //id
string title = 2; //
int32 rulesid = 3; //id
int32 rulesid = 3; //id
BattleType btype = 4; //
PlayType ptype = 5; //
string redCompId = 6; //id
@ -108,7 +114,8 @@ message BattleReport {
int32 death = 7; //
int32 round = 8; //
int32 harm = 9; //
repeated BattleRole alive = 10; //
int32 score = 10; //
repeated BattleRole alive = 11; //
}
//
@ -171,7 +178,6 @@ message BattleFinishPush {
int32 winSide = 2;
}
//
message BattleConcedeReq {
string battleid = 1;
@ -190,4 +196,14 @@ message BattleStateInfo
BattleInfo info = 1;
repeated BattleCmd outCmds = 2;
repeated BattleCmd inputCmds = 3;
}
message StroneBattleReq {
repeated DySkillData diBuff = 1;
repeated int32 format = 2;
repeated BattleRole role = 3;
int32 leadpos = 4;
BattleType Btype = 5;
PlayType Ptype = 6;
int32 BattleEvents = 7;
}

View File

@ -40,13 +40,15 @@ message ComSkillInfo{
int32 maxCd = 3;
int32 cd = 4;
bool showEffect = 5;//CD恢复特效
bool CanEmit = 6; //
}
//
message ComStartAction{
int32 from = 1; //
int32 target = 2; //
int32 curRound = 3;
repeated ComSkillInfo skillInfo = 4;
int32 curRound = 3; //
bool canAtk = 4; //
repeated ComSkillInfo skillInfo = 5;
}
//CD
@ -106,6 +108,7 @@ message ComModifyHealth{
float num = 6;
int32 nhp = 7;
int32 mhp = 8;
bool dmg = 9; // -0
}
//
message ComTeachTask{
@ -154,9 +157,20 @@ enum EffectTipsType {
Not_Gain = 4; //
Not_Control = 5; //
Not_Action = 6; //
Purification = 7; //
Disperse = 8; //
Gain_round = 9;//
}
//
message ComChainEffect
{
repeated int32 roles = 1;
}
//
message ComShieldInfo
{
int32 rid = 1; //id
int32 value = 2; //
int32 curValue = 3; //
}

View File

@ -5,14 +5,15 @@ message Goods{
int32 period = 1; //
int32 curPeriod = 2; //
int32 price = 3; //
int64 time = 4; //
}
message CityInfo{
repeated int32 like = 1; // ID
repeated int32 unlike = 2; // ID
map<int32,int32> count = 3; //
int64 rtime = 4; //
repeated string special = 1; //
map<string,int32> count = 2; //
repeated string exspecial = 3; //
int32 exspecialPCT = 4; ///
repeated string nextexspecial = 5; //
int32 nextexspecialPCT = 6;
}
message BagInfo{//
@ -23,16 +24,32 @@ message BagInfo{// 背包信息
message DBCaravan {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 useCount = 3; //@go_tags(`bson:"usecount"`) 使
map<int32,BagInfo> items = 4; //
map<int32,Goods> goods = 5; // key ID
//int32 useCount = 3; //@go_tags(`bson:"useCount"`) 使
map<string,BagInfo> items = 4; //
map<string,Goods> goods = 5; // key ID
map<int32,CityInfo> city = 6; //
int32 lv = 7;//
int64 profit= 8;//
int64 resettime = 9;//
int64 resettime = 9;//
int32 curcity = 10;//
int32 taskid = 11; // worldtask
int32 eventid = 12; // ID(id)
int64 tasktime = 13; //
int32 baglimit = 14; //
int64 citystime = 15; // 0
map<string,int32> oldprice = 16; // key ID
int64 rtime = 17; //
map<int32,bool> group = 18; //
map<int32,bool> reward = 19; //
int64 itemtime = 20; //
}
message CaravanRankInfo{
string uid = 1;
string name = 2;
int32 userlv = 3;
string avatar = 4; //@go_tags(`bson:"avatar"`)
int32 rank = 5; //
int32 merchantmoney = 6; //
int32 caravanLv = 7; //
}

View File

@ -1,4 +1,4 @@
syntax = "proto3";
syntax = "proto3";
option go_package = ".;pb";
import "caravan/caravan_db.proto";
import "comm.proto";
@ -9,12 +9,13 @@ message CaravanGetListReq {
//
message CaravanGetListResp {
DBCaravan data = 1;
bool taskTimeOut = 2; //
}
message CaravanBuyOrSellReq {
int32 city = 1; // id
map<int32,int32> items = 2;
map<string,int32> items = 2;
bool isBuy = 3; // true false
}
@ -42,6 +43,7 @@ message CaravanGetStoryReq {
message CaravanGetStoryResp {
DBCaravan data = 1;
bool bSuccess = 2; //
}
//
@ -49,4 +51,25 @@ message CaravanTaskCompletePush {
DBCaravan data = 1;
bool bSuccess = 2; //
repeated UserAssets reward = 3; //
}
}
message CaravanRankListReq{
}
message CaravanRankListResp{
repeated CaravanRankInfo list = 1;
CaravanRankInfo userinfo = 2; //
}
//
message CaravanRefreshCityReq{
}
message CaravanRefreshCityResp{
map<string,Goods> goods = 1; // key ID
map<int32,CityInfo> city = 2; //
map<string,int32 > Oldprice = 3;
int64 resettime = 4;//
}

View File

@ -18,6 +18,7 @@ enum ChatType {
EquipmentShare = 4; //
ItemShare = 5; //
Parkour = 6; //
Questionnaire = 7; //
}
message DBChat {

View File

@ -1,5 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "buried/buried_db.proto";
message DBCombatUser {
string uid = 1; //uid
@ -11,6 +12,8 @@ message DBCombatLevel {
map<string,string> data = 2; //
repeated int32 passmanster= 3; //
repeated int32 passdrop= 4; //
bool pass = 5; //
int32 progress = 6; //
repeated ConIProgress passmaintask = 5; //线
repeated ConIProgress passpertask = 6; //
int32 Progress = 7; //
int32 pass = 8; // 0 1 2
}

View File

@ -1,29 +1,37 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "comm.proto";
import "combat/combat_db.proto";
import "buried/buried_db.proto";
import "battle/battle_msg.proto";
//
message CombatInReq {
int32 id = 1; //id
int32 level = 1; //id
}
//
message CombatInResp {
DBCombatLevel level = 2; //
DBCombatLevel level = 1; //
}
//
message CombatAskReq {
int32 level = 1; //id
}
message CombatAskResp {
LevelProgressItem level = 1; //id
}
message CombatUpdateLevelReq {
int32 level = 1; //id
int32 level = 1; //id
map<string,string> data = 2; //
}
message CombatUpdateLevelResp {
bool succ = 1; //
int32 level = 2; //id
int32 level = 1; //id
}
//
@ -35,10 +43,9 @@ message CombatChallengeReq {
//
message CombatChallengeResp {
ErrorCode code = 1; //
int32 level = 2; //id
int32 manster = 3;
BattleInfo info = 4;
int32 level = 1; //id
int32 manster = 2;
BattleInfo info = 3;
}
//
@ -46,12 +53,13 @@ message CombatChallengeReceiveReq {
int32 level = 1; //id
int32 manster = 2;
BattleReport report = 3; //
}
}
//
message CombatChallengeReceiveResp {
bool issucc = 1;
int32 level = 2; //id
bool pass = 3; //
int32 level = 1; //id
int32 manster = 2;
repeated UserAssets atns = 3; //
}
//
@ -62,8 +70,24 @@ message CombatDropReq {
//
message CombatDropResp {
ErrorCode code = 1; //
repeated UserAssets atns = 2; //
int32 level = 3; //id
bool pass = 4; //
}
int32 level = 1; //id
repeated UserAssets atns = 2; //
}
//
message LevelProgressItem {
int32 level = 1; //id
repeated ConIProgress passmaintask = 2; //线
repeated ConIProgress passpertask = 3; //
int32 Progress = 4; //
int32 pass = 5; // 0 1 2
repeated UserAssets mainaward = 6; //
repeated UserAssets peraward = 7; //
}
//
message CombatProgressPush{
repeated LevelProgressItem levels = 1;
}

View File

@ -4,19 +4,23 @@ import "errorcode.proto";
import "google/protobuf/any.proto";
message ErrorData {
string title = 1;
int32 dataint = 2;
string datastring = 3;
ErrorCode code = 1;
string title = 2;
int32 dataint = 3;
string datastring = 4;
UserAssets atn = 5;
string message = 6;
}
//1
message UserMessage {
string MainType = 1; // :user user的模块
string SubType = 2; // :login user的模块中
uint32 MsgId = 1; //id
string MainType = 2; // :user user的模块
string SubType = 3; // :login user的模块中
// api_login
string servicePath = 3; // \worker\worker0
google.protobuf.Any data = 4;
string sec = 5; //
string servicePath = 4; // \worker\worker0
google.protobuf.Any data = 5;
string sec = 6; //
}
//
@ -33,10 +37,8 @@ message AgentMessage {
// RPC
message RPCMessageReply {
ErrorCode Code = 1;
string ErrorMessage = 2;
ErrorData ErrorData = 3;
repeated UserMessage Reply = 4;
ErrorData ErrorData = 1;
repeated UserMessage Reply = 2;
}
//Uid请求

View File

@ -28,14 +28,24 @@ message DB_Equipment {
string uId = 3; //@go_tags(`bson:"uid"`) Id
string heroId = 4; //@go_tags(`bson:"heroId"`) id ''
int32 lv = 5; //@go_tags(`bson:"lv"`)
int32 keepFailNum = 6; //@go_tags(`bson:"keepFailNum"`)
int32 star = 6; //@go_tags(`bson:"star"`)
int32 keepFailNum = 7; //@go_tags(`bson:"keepFailNum"`)
EquipmentAttributeEntry mainEntry =
7; //@go_tags(`bson:"mainEntry"`)
8; //@go_tags(`bson:"mainEntry"`)
repeated EquipmentAttributeEntry adverbEntry =
8; //@go_tags(`bson:"adverbEntry"`)
uint32 overlayNum = 9; //@go_tags(`bson:"overlayNum"`)
bool isInitialState = 10; //@go_tags(`bson:"isInitialState"`)
bool islock = 11; //@go_tags(`bson:"islock"`)
9; //@go_tags(`bson:"adverbEntry"`)
uint32 overlayNum = 10; //@go_tags(`bson:"overlayNum"`)
bool isInitialState = 11; //@go_tags(`bson:"isInitialState"`)
bool islock = 12; //@go_tags(`bson:"islock"`)
repeated EquipmentSkillEntry adverbskill =
12; //@go_tags(`bson:"adverbskill"`)
13; //@go_tags(`bson:"adverbskill"`)
}
//
message DB_EquipmentSuit {
int32 suitid = 1;
repeated string eids = 3;
int32 str = 4;
int32 lv = 5;
bool effect = 6;
}

View File

@ -24,6 +24,7 @@ message EquipmentEquipReq {
//
message EquipmentEquipResp {
repeated DB_Equipment Equipments = 1; //
repeated DB_EquipmentSuit Suits = 2; //
}
//
@ -36,6 +37,7 @@ message EquipmentUpgradeReq {
message EquipmentUpgradeResp {
bool IsSucc = 1;
repeated DB_Equipment Equipment = 2;
repeated DB_EquipmentSuit Suits = 3; //
}
//sailitem

View File

@ -1,6 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
// go:generate stringer -type ErrorCode -linecomment
// pb目录下执行 go generate (stringer go install golang.org/x/tools/cmd/stringer) errorcode_strings.go
// ps: errorcode.pb.go中的String()
//go:generate stringer -type ErrorCode -linecomment
enum ErrorCode {
Success = 0; //
GatewayException = 1; //
@ -29,6 +31,7 @@ enum ErrorCode {
UserLogined = 105; //
NoOpened = 106; //
DataNotFound = 107; //
ExternalModule = 108; //
// user
SecKeyInvalid = 1000; //
@ -61,6 +64,10 @@ enum ErrorCode {
UserTalent3NoEnough = 1027; //3
UserTalent4NoEnough = 1028; //4
UserMerchantNoEnough = 1029; //
UserLvNoEnough = 1030; //
UserStarCoinNoEnough = 1031; //
UserNickSensitive = 1032; //
UserDepositNoEnough = 1033; //
// friend
FriendNotSelf = 1100; //
@ -123,6 +130,11 @@ enum ErrorCode {
HeroAlreadyKongFuStatus = 1324; //
HeroLvNoEnough = 1325; //
HeroIsRegister = 1326; //
HeroDayDrwaMax = 1327; //
HeroRepeatReward = 1328; //
HeroDrawOutTime = 1329; //
HeroDrawCD = 1330; // cd
HeroDrawCountErr = 1331; //
// equipment
EquipmentOnFoundEquipment = 1400; //
@ -165,6 +177,9 @@ enum ErrorCode {
PagodaGetRewardErr = 1902; //
PagodaConditionErr = 1903; //
PagodaUnlock = 1904; //
PagodaTimeError = 1905; ///
PagodaMaxCount = 1906; ///
// martialhall
MartialhallNotUnlocked = 2000; //
MartialhallInUse = 2001; //使
@ -191,6 +206,7 @@ enum ErrorCode {
VikingBoosType = 2302; // BOSS
VikingBuyMaxCount = 2303; //
VikingMaxChallengeCount = 2304; //
VikingStagePsErr = 2305;//
// moonfantasy
MoonfantasyHasExpired = 2401; // boos
@ -285,6 +301,10 @@ enum ErrorCode {
SociatyTaskNoFinished = 3041; //
SociatyTaskReceived = 3042; //
SociatyApplyLvLimit = 3043; //
SociatyApplyCancel = 3044; //
SociatyNoticeTextLen = 3045;
SociatyNameInscriptionWords = 3046; //
SociatyNoticeInscriptionWords = 3047; //
// arena
ArenaTicketBuyUp = 3101; //
@ -303,6 +323,9 @@ enum ErrorCode {
TrollRepeatedReward = 3305; //
TrollCity = 3306; //
TrollTask = 3307; //
TrollItemNoEnough = 3308; //
TrollCityUnSellItem = 3309; //
TrollCityUnRecovery = 3310; //
// horoscope
HoroscopeNotTurnedOn = 3401; //
HoroscopeRestCDNoEnd = 3402; //cd未结束
@ -332,6 +355,7 @@ enum ErrorCode {
WorldtaskChapterUnFinished =3808; //
WorldtaskChapterReceived =3809; //
WorldtaskNoProcess = 3810; //
WorldtaskBattleCreate = 3811; //
// academy
AcademyTaskNoCompleteTask = 3901; //
@ -374,7 +398,7 @@ enum ErrorCode {
PracticePillarMaxLv = 4304; //
PracticeYouQiecuoing = 4305; //
PracticeTargetQiecuoing = 4306; //
PracticeUseLimit = 4307; //使
//parkour
ParkourMemberFull = 4401; //
ParkourInviteOverdue = 4402; //
@ -391,4 +415,28 @@ enum ErrorCode {
OldtimesLevelOver = 4603;//
OldtimesPreLevelNoFinished = 4604; //
OldtimesNoAllFinished = 4605; //
//
PassonHeroNumNotEnough = 4701; //
PassonHeroUnavailable = 4702; //
PassonSeatStateErr = 4703; //
//
WarorderNoOpen = 4801; //
// stonehenge
StonehengeRepeatedSelectHero = 4901;//
StonehengeRepeatedSelectBUff = 4902;// buff
StonehengePortalErr = 4903;//
StonehengeEnterRoomFailed = 4904;//
StonehengeRepeatedReward = 4905;//
StonehengeGotoRoomFailed = 4906;//
//
ActivityOver = 5001; //
ActivityUnOpened = 5002;//
ActivityRepatReward = 5003; //
ActivityNotIntime = 5004; //
ActivityInvalid = 5005; //
ActivityCantReward = 5006; //
}

View File

@ -187,4 +187,9 @@ message FriendStopResp{
message FriendQiecuonotifyPush{
string uid = 1; //)
int32 notifyType = 2; //1 2 3
}
message RPCFriendNumReq {
string uid = 1;
repeated string cond = 2;
}

View File

@ -1,6 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
import "equipment/equipment_db.proto";
enum HeroType {
HeroTypeNil = 0;
@ -24,21 +25,17 @@ message DBHero {
repeated int32 skins = 14; // ID
bool block = 15; //
repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID
int32 sameCount = 17; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 18; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 19; // go_tags(`bson:"suiteExtId"`) Id
map<string, int32> juexProperty = 20; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 21; //@go_tags(`bson:"status"`) (1 )
int32 suite1Star = 22; //@go_tags(`bson:"suite1Star"`)
int32 suite2Star = 23; //@go_tags(`bson:"suite2Star"`)
int32 suite1Lv = 24; //@go_tags(`bson:"suite1Lv"`)
int32 suite2Lv = 25; //@go_tags(`bson:"suite2Lv"`)
map<string, int32> talentProperty = 26; //@go_tags(`bson:"talentProperty"`) //
repeated SkillData equipSkill = 27; //@go_tags(`bson:"equipSkill"`)
map<string, int32> horoscopeProperty = 28; //@go_tags(`bson:"horoscopeProperty"`) //
int32 fulllvenr = 29; //@go_tags(`bson:"fulllvenr"`) // 使
string kongfuUid = 30; //@go_tags(`bson:"kongfuUid"`)//
map<string, int32> fetters = 31; //@go_tags(`bson:"fetters"`) //
map<string, int32> juexProperty = 17; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 18; //@go_tags(`bson:"status"`) (1 )
repeated DB_EquipmentSuit suits = 19; //@go_tags(`bson:"suits"`)
map<string, int32> talentProperty = 20; //@go_tags(`bson:"talentProperty"`) //
repeated SkillData equipSkill = 21; //@go_tags(`bson:"equipSkill"`)
map<string, int32> horoscopeProperty = 22; //@go_tags(`bson:"horoscopeProperty"`) //
int32 fulllvenr = 23; //@go_tags(`bson:"fulllvenr"`) // 使
string kongfuUid = 24; //@go_tags(`bson:"kongfuUid"`)//
map<string, int32> fetters = 25; //@go_tags(`bson:"fetters"`) //
int32 sameCount = 26; //@go_tags(`bson:"sameCount"`) //
bool ispasson = 27; //
}
@ -46,21 +43,26 @@ message DBHero {
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<string,int32> condition = 7; // key rechargelogin value
map<string,int32> star5Hero = 8;// totalcount 5 key id
int32 totalcount = 9;//
int32 daycount = 10; //
int32 onebuy = 11; //
int32 tenbuy = 12; //
int32 inevitable = 13;//2-305
int32 inevitable1 = 14;//30-505
map<int32,int32> race = 15; // key value count
int64 mtime = 3; //
int32 drawcount = 4; //
map<string,int32> condition = 5; // key rechargelogin value
map<string,int32> star5Hero = 6;// totalcount 5 key id
int32 totalcount = 7;//
int32 daycount = 8; //
map<int32,int32> race = 11; //key对应的数据 2. 3-6hero表1/2/3/4 7
map<int32,int32> baodi4 = 12; // 4 key value count
map<int32,int32> baodi5 = 13; // 5 key value count
map<int32,int32> count = 14; // key value count
map<int32,bool> peach = 15;//
map<string,int64> limit = 16; // key:id value
string limitHero = 17; // 0
map<string,int64> wish = 18; // key:id value
string wishHero = 19; // (0 )
bool peachreward = 20;//
}
//
message DBHeroTalent {
string id = 1; //@go_tags(`bson:"_id"`) ID id

View File

@ -51,7 +51,7 @@ message HeroStrengthenUpStarResp {
//
message HeroStrengthenUpSkillReq {
string heroObjID = 1; // ID
repeated string item = 2;//
map<string,int32> item = 2;// key itemid value
}
//
@ -97,17 +97,28 @@ message HeroGetSpecifiedResp {
DBHero hero = 1; //
}
//
/*
drawType: 2. 3-6hero表1/2/3/4 7 8
drawCount: 1 10 ( 1 10)
consume: 0 A 1 B
*/
message HeroDrawCardReq {
int32 drawType = 1; // 0
int32 drawCount = 2;//
int32 consume = 3;
}
message AtnoData{
repeated UserAtno atno = 1;
}
message HeroDrawCardResp {
repeated AtnoData data = 1;
UserAtno wish = 2; //
DBHeroRecord record = 3; //
}
//
@ -119,10 +130,7 @@ message HeroDrawCardFloorReq {
}
//
message HeroDrawCardFloorResp {
int32 star4 = 1;
int32 star5 = 2;
int32 onebuy = 3; //
int32 tenbuy = 4; //
DBHeroRecord record = 1;
}
//
@ -179,4 +187,26 @@ message HeroBuyResp{
//
message HeroFirstGetPush {
repeated string heroId = 1; //id
}
//
message HeroPeachRewardReq{
int32 rewardCid = 1; // id
bool bAllGet = 2 ; //
}
message HeroPeachRewardResp{
map<int32,bool> peach = 1;//
repeated UserAtno atno = 2; //
}
//
message HeroAppointHeroReq{
int32 drawType = 1; // 0 1
string heroid = 2;//
}
message HeroAppointHeroResp{
int32 drawType = 1; // 0 1
string heroid = 2;//
}

View File

@ -3,7 +3,8 @@ option go_package = ".;pb";
//
message DBHoroscope {
string uid = 1; //@go_tags(`bson:"_id"`)
map<int32, int32> nodes = 2; // key:id value:
int64 lastrest = 3; //
string id= 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //uid
map<int32, int32> nodes = 3; // key:id value:
int64 lastrest = 4; //
}

View File

@ -6,10 +6,8 @@ message DBHunting {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,int32> boss = 3; // key boss value
int32 buyCount = 4;//@go_tags(`bson:"buyCount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`)
map<string,int32> bossTime = 6; //@go_tags(`bson:"bossTime"`)
int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) //
map<string,int32> bossTime = 4; //@go_tags(`bson:"bossTime"`)
map<int32,int32> ps = 5;//
}
//

View File

@ -2,6 +2,7 @@ syntax = "proto3";
option go_package = ".;pb";
import "hunting/hunting_db.proto";
import "battle/battle_msg.proto";
import "comm.proto";
message HuntingGetListReq {
}
@ -15,6 +16,7 @@ message HuntingChallengeReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
BattleFormation battle = 3;
bool autoBuy = 4;//
}
message HuntingChallengeResp {
@ -27,11 +29,18 @@ message HuntingChallengeOverReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
BattleReport report = 3; //
repeated int32 star = 4;//
bool auto = 5; //
}
//
message HuntingChallengeOverResp {
DBHunting data = 1;
repeated UserAtno asset = 2;// atno
repeated string sell = 3; //
int32 userExp = 4;
map<string,int32> heroexp = 5;//
}
//

View File

@ -6,10 +6,11 @@ option go_package = ".;pb";
message DB_UserItemData {
string gridId = 1; //@go_tags(`bson:"_id"`) Id
string uId = 2; //@go_tags(`bson:"uid"`) id
string itemId = 3; //@go_tags(`bson:"itemId"`) Id
string itemId = 3; //@go_tags(`bson:"itemId"`) Id
uint32 amount = 4; //@go_tags(`bson:"amount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`)
int64 eTime = 6; //@go_tags(`bson:"eTime"`)
bool isNewItem = 7; //@go_tags(`bson:"isNewItem"`)
int64 lastopt = 8; //@go_tags(`bson:"lastopt"`)
int32 change= 5; //@go_tags(`bson:"change"`)
int64 cTime = 6; //@go_tags(`bson:"cTime"`)
int64 eTime = 7; //@go_tags(`bson:"eTime"`)
bool isNewItem = 8; //@go_tags(`bson:"isNewItem"`)
int64 lastopt = 9; //@go_tags(`bson:"lastopt"`)
}

View File

@ -22,7 +22,7 @@ message ItemsChangePush {
message ItemsUseItemReq {
string GridId = 1; //Id
uint32 Amount = 2; //使
int32 Select = 3; //
int32 Select = 3; // ( id,/ 0 1)
}
//使

View File

@ -40,11 +40,15 @@ message MlineChallengeResp {
message MlineChallengeOverReq {
int32 stageId = 1; // ID
BattleReport report = 3; //
}
message MlineChallengeOverResp {
DBMline data = 1; //
repeated UserAssets reward = 2; //
int32 userExp = 3;
int32 heroExp = 4;
int32 stageId = 5; // ID
}
//

View File

@ -9,4 +9,9 @@ message DBSystemNotify {
bool istop = 4; //
int64 ctime = 5; //
int64 rtime = 6; //
}
//
enum NotifyEvent {
Notify_1001 = 0;
}

View File

@ -7,12 +7,13 @@ import "google/protobuf/any.proto";
//
message NotifyErrorNotifyPush {
string ReqMainType = 1; // :user user的模块
string ReqSubType = 2; // :login user的模块中
uint32 MsgId = 1; //id
string ReqMainType = 2; // :user user的模块
string ReqSubType = 3; // :login user的模块中
// api_login
ErrorCode Code = 3; // errorcode.proto
google.protobuf.Any arg = 4; //
ErrorData err = 5; //
ErrorCode Code = 4; // errorcode.proto
google.protobuf.Any arg = 5; //
ErrorData err = 6; //
}
//
@ -22,4 +23,9 @@ message NotifyGetListReq {}
message NotifyGetListResp {
int64 LastReadTime = 1; //
repeated DBSystemNotify SysNotify = 2; //
}
//
message NotifyEventPush {
}

View File

@ -16,4 +16,5 @@ message Chapter{
message Level{
int32 lid = 1; //@go_tags(`bson:"lid"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2 3
int32 progress = 3; //@go_tags(`bson:"progress"`)
}

View File

@ -9,9 +9,7 @@ message DBPagoda {
map<int32,bool> reward = 4; //
int32 type = 5;
bool complete = 6; //
int32 passCheckID = 7; // ID
int32 vipPassCheckID = 8; // vip战令领奖ID
map<int32,int32> data = 9; // key value
map<int32,int32> data = 7; // key value
}
@ -28,4 +26,32 @@ message DBPagodaRecord {
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
int32 tab = 11; //
}
//
message DBRacePagodaRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 floor = 3; //
int32 type = 4; //
string nickname = 5;//
string skin = 6; // -
int32 sex = 7; //
int32 lv = 8; //
int64 overtime = 9;//
}
message DBPagodaRace {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,RaceData> race = 3;//
}
//
message RaceData{
int32 race = 1; // ID 0: 1: 1
repeated int32 task = 2; //
int64 rtime = 3; //
int32 defeat = 4; //
int64 endtime = 5; //
int32 curfloor = 6; //
}

View File

@ -76,4 +76,43 @@ message PagodaWarOrderReq{
message PagodaWarOrderResp{
DBPagoda data = 1;
repeated UserAssets itmes = 2;//
}
//
message PagodaChallengeRaceReq{
int32 race = 1; //0 1 1 ...
int32 cid = 2;// circularcamptower id
BattleFormation battle = 3;
}
message PagodaChallengeRaceResp{
BattleInfo info = 1;
int32 cid = 2; // id
}
// Over
message PagodaChallengeRaceOverReq{
int32 cid = 1;// circularcamptower id
BattleReport report = 2; //
}
message PagodaChallengeRaceOverResp{
RaceData race = 1;
repeated UserAtno reward = 2;
}
//
message PagodaGetRaceReq{
}
message PagodaGetRaceResp{
map<int32,RaceData> race = 1;//
}
//
message PagodaCrossRaceRankListReq{
int32 raceid = 1; // id
}
message PagodaCrossRaceRankListResp{
repeated DBRacePagodaRecord ranks = 1;
}

View File

@ -9,7 +9,7 @@ message DBPayOrder {
int64 ctime = 4;
}
//
//
message DBUserPay {
string uid = 1; //id
map<string, int32> record = 2; //
@ -26,4 +26,26 @@ message PayDailyItem {
message DBPayDaily {
string uid = 1; //id
map<int32, PayDailyItem> items = 2; //
}
//
message DBActivityGiftbag {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,ActivityGiftbagItem> activitys = 3; //
}
//
message ActivityGiftbagItem {
int64 opentime = 1;
int32 days = 2; //
map<int32, PayActivityGiftbagItem> items = 3; //
}
//
message PayActivityGiftbagItem {
int32 id = 1; //id
int32 buyunm = 2; //
int32 totalbuynum = 3; //
int64 lastrefresh = 4; //
}

View File

@ -45,3 +45,24 @@ message PayDeliveryResp {
string msg = 2;
string data = 3;
}
//
message PayGetActivityReq {
int32 atype = 1; //
}
message PayGetActivityResp {
ActivityGiftbagItem info = 1;
}
//
message PayActivityBuyReq {
int32 id = 1;
}
message PayActivityResp {
bool isucc = 1;
repeated UserAssets items = 2;
}

View File

@ -14,6 +14,8 @@ message DBPracticePillar {
int64 start = 8; //
int64 end = 9; //
int64 expend = 10; //
int32 usenum = 11; //使
int64 lastusetime = 12; //使
}
//
@ -29,7 +31,17 @@ message DBPracticeStatuer {
int32 figure = 2;
string name = 3;
string unionname = 4;
int64 end = 5;
int32 sex = 5;
string skin = 6;
int64 end = 7;
}
//
message DBPracticeRes{
string pid = 1;
int32 state = 2; //0 使 1 使
int32 usenum = 3; //使
int64 lastusetime = 4; //使
}
//
@ -39,19 +51,20 @@ message DBPracticeRoom {
int32 gymaction = 3; //
int32 gymrefresh = 4; //
int64 lastrefresh = 5; //
map<int32,int32> full = 6; //
map<string,int32> knapsack = 7; //
DBPracticePillar pillar1 = 8; //1
DBPracticePillar pillar2 = 9; //2
DBPracticePillar pillar3 = 10; //3
DBPracticePillar pillarf = 11; //
repeated DBPracticeStatuer statuers= 12; //
int32 currnpc = 13; //npc
int32 npcstate = 14; //npc状态 0 1 2 3 CD中
int64 refresh = 15; //
int32 battlenum = 16; //
int32 captain = 17; //
repeated BattleRole formation = 18; //
int64 lastgymtime = 6; //
map<int32,int32> full = 7; //
map<string,DBPracticeRes> knapsack = 8; //
DBPracticePillar pillar1 = 9; //1
DBPracticePillar pillar2 = 10; //2
DBPracticePillar pillar3 = 11; //3
DBPracticePillar pillarf = 12; //
repeated DBPracticeStatuer statuers= 13; //
int32 currnpc = 14; //npc
int32 npcstate = 15; //npc状态 -1 0 1 2 3 CD中
int64 refresh = 16; //
int32 battlenum = 17; //
int32 captain = 18; //
repeated BattleRole formation = 19; //
}
message DBPracticeQiecuoInvite {
@ -59,7 +72,6 @@ message DBPracticeQiecuoInvite {
int64 timestamp = 2;
}
//
message DBPracticeQiecuoRecord{
string id = 1; //@go_tags(`bson:"_id"`) id

View File

@ -4,7 +4,7 @@ import "errorcode.proto";
import "practice/practice_db.proto";
import "battle/battle_msg.proto";
import "pvp/pvp_db.proto";
import "comm.proto";
///
@ -72,14 +72,14 @@ message PracticeExpulsionReq {
}
message PracticeExpulsionResp {
DBPracticePillar pillar = 1;
map<string,int32> knapsack = 2; //
map<string,DBPracticeRes> knapsack = 2; //
}
///
message PracticeBeExpulsionPush{
string fuid = 1;
DBPracticePillar pillar = 2;
map<string,int32> knapsack = 3; //
map<string,DBPracticeRes> knapsack = 3; //
}
@ -87,10 +87,11 @@ message PracticeBeExpulsionPush{
message PracticeReceiveReq {
int32 index = 1; //id
string friend = 2; //id
bool buy =3; //
}
message PracticeReceiveResp {
DBPracticePillar pillar = 1;
map<string,int32> knapsack = 2; //
map<string,DBPracticeRes> knapsack = 2; //
}
///
@ -137,6 +138,7 @@ message PracticeGetGymBuffReq {
///buff请求
message PracticeGetGymBuffResp {
int32 buffid = 1;
repeated UserAssets award = 2; //
}

View File

@ -1,11 +1,20 @@
syntax = "proto3";
option go_package = ".;pb";
message ReddotItem {
int32 rid = 1; //id
bool activated = 2; //
int64 nextchanagetime = 3; // 0
int32 progress = 4; //
int32 total = 5; //
}
//
message ReddotGetAllReq {}
message ReddotGetAllResp {
map<int32,bool> reddot = 1; //
map<int32,ReddotItem> reddot = 1; //
}
//
@ -14,5 +23,10 @@ message ReddotGetReq {
}
message ReddotGetResp {
map<int32,bool> reddot = 1; //
map<int32,ReddotItem> reddot = 1; //
}
//
message ReddotChangePush {
repeated ReddotItem rids = 1;
}

View File

@ -13,4 +13,5 @@ message RtaskTestReq {
message RtaskTestResp {
bool flag = 1;
repeated int32 rtaskIds = 2;
int32 rtaskType = 3;
}

View File

@ -13,12 +13,18 @@ enum ShopType {
SmithyShop =7;
}
message UserShopGood {
int32 id = 1; //id
int32 gid = 2; //Id
int32 buy = 3; //
}
message UserShopData {
int64 LastRefreshTime = 1; //
int32 ManualRefreshNum = 2; //
repeated int32 Items = 3; //
map<int32, int32> buy = 4; //
repeated UserShopGood Items = 3; //
map<int32, DB_Equipment> preview = 5; //
int32 leftfreerefreshnum = 6; //
}
message DBShop {
@ -34,12 +40,3 @@ message DBShop {
UserShopData heroShop = 10; //@go_tags(`bson:"heroShop"`)
UserShopData smithyShop = 11; //@go_tags(`bson:"smithyShop"`)
}
// message DBShopItem {
// string id = 1; //@go_tags(`bson:"_id"`) id
// string uid = 2; //@go_tags(`bson:"uid"`) id
// int32 goodsId = 3; //@go_tags(`bson:"goodsId"`) Id
// map<int32, int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
// map<int32, int64> lastBuyTime =
// 5; //@go_tags(`bson:"lastBuyTime"`)
// }

View File

@ -6,12 +6,13 @@ 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; //
int32 gid = 1; //id
int32 GoodsId = 2; //id
repeated UserAssets Items = 3; //
repeated UserAssets Consume = 4; //
int32 Sale = 5; //
int32 LeftBuyNum = 6; //
DB_Equipment preview = 7; //
}
//
@ -26,12 +27,14 @@ message ShopGetListResp {
bool IsManualRefresh = 2; //
repeated ShopItem Goods = 4; //
int32 SurplusRefreshNum = 5; //
int64 lastrefreshtime = 6; //
int32 leftfreerefreshnum = 7; //
}
//
message ShopBuyReq {
ShopType ShopType = 1; //
int32 GoodsId = 2; //Id
int32 gid = 2; //Id
int32 BuyNum = 3; //
}

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "buried/buried_db.proto";
message Mastery{
int32 lv =1;
@ -24,6 +24,7 @@ message CustomerInfo{
int32 customerId = 1; //ID
int32 suitId = 2; //ID
int32 equipCount = 3;//
string uuid = 4; //ID
}
message DBCustomer{
@ -72,4 +73,5 @@ message DBTujianTask {
message TujianTask{
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 received = 2; //@go_tags(`bson:"received"`) 0 1 2
ConIProgress cond = 3; //@go_tags(`bson:"cond"`)
}

View File

@ -1,6 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_msg.proto";
import "buried/buried_db.proto";
message DBSociaty {
string id = 1; //@go_tags(`bson:"_id"`) ID
@ -45,7 +46,6 @@ message SociatyMember {
SociatyJob job = 2; //@go_tags(`bson:"job"`)
int64 ctime = 3; //@go_tags(`bson:"ctime"`)
int32 contribution = 4; //@go_tags(`bson:"contribution"`)
map<int32, ChallengeTeam> teams = 5; //@go_tags(`bson:"teams"`) BOSS
}
//
@ -74,6 +74,7 @@ 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
ConIProgress cond = 4; //@go_tags(`bson:"cond"`)
}
//

View File

@ -215,6 +215,12 @@ message SociatyPAgreePush {
string sociatyId = 2;
}
//
message SociatyPDischangePush{
string uid = 1; //ID
string sociatyId = 2;
}
// BOSS入口
message SociatyBMainReq {}

View File

@ -1,5 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "buried/buried_db.proto";
message DBTask {
string id = 1; //@go_tags(`bson:"_id"`) ID
@ -13,12 +14,13 @@ message DBTask {
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 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"`)
ConIProgress cond = 11; //@go_tags(`bson:"cond"`)
}
message DBActivity {
@ -49,6 +51,7 @@ message rtaskData {
map<int32, int32> data = 1; //@go_tags(`bson:"data"`)
int32 rtype = 2; //@go_tags(`bson:"rtype"`)
int64 timestamp = 3; //@go_tasg(`bson:"timestamp"`)
int32 flag = 4; //@go_tasg(`bson:"flag"`) flag:1
}
//
message DBRtaskRecord {

View File

@ -2,9 +2,6 @@ syntax = "proto3";
option go_package = ".;pb";
import "task/task_db.proto";
message TaskGetrecordReq {}
message TaskGetrecordResp { DBRtaskRecord record = 1; }
//
message TaskSendReq {
int32 taskType = 1; //

View File

@ -1,37 +0,0 @@
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<int32,int32> items = 3;// key ID
map<int32,int32> 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<int32,int32> 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<int32,int32> shop= 16; //
int64 ctime = 17; //
int32 circle = 18; //
map<int32,int32> 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; //
}

View File

@ -1,74 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "troll/troll_db.proto";
//
message TrollGetListReq {
}
//
message TrollGetListResp {
DBTrollTrain data = 1;
}
//
message TrollBuyOrSellReq {
map<int32,int32> 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<int32,int32> surpriseID = 1; //@go_tags(`bson:"surpriseID"`) key商人id value惊喜货物ID
}

View File

@ -8,10 +8,11 @@ message CacheUser {
string GatewayServiceId =
4; //@go_tags(`bson:"gatewayServiceId"`) id
string ip = 5; //@go_tags(`bson:"ip"`) ip
int64 timestamp = 6; //@go_tags(`bson:"timestamp"`)
}
message DBUser {
string id = 1; //@go_tags(`bson:"_id"`) ID
string id = 1; //@go_tags(`bson:"id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
string uuid = 3; //@go_tags(`bson:"uuid"`) uuid
string binduid = 4; //@go_tags(`bson:"binduid"`)
@ -43,11 +44,19 @@ message DBUser {
int32 talent2 = 29; //@go_tags(`bson:"talent2"`) 2
int32 talent3 = 30; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 31; //@go_tags(`bson:"talent4"`) 4
int32 merchantmoney=32; //@go_tags(`bson:"merchantmoney"`) )
repeated string perlist = 33; //@go_tags(`bson:"perlist"`) ,,
string defper1 = 34; //@go_tags(`bson:"defper1"`)
string defper2 = 35; //@go_tags(`bson:"defper2"`)
string defper3 = 36; //@go_tags(`bson:"defper3"`)
int32 merchantmoney=32; //@go_tags(`bson:"merchantmoney"`) )
repeated string skins = 33; //@go_tags(`bson:"skins"`) ,,
string curSkin = 34; //@go_tags(`bson:"curSkin"`)
string curAction = 35; //@go_tags(`bson:"curAction"`)
string curBg = 36; //@go_tags(`bson:"curBg"`)
int32 area = 37; //@go_tags(`bson:"area"`)
int32 channel = 38; //@go_tags(`bson:"channel"`)
int32 vcode = 39; //@go_tags(`bson:"vcode"`)
string vname = 40; //@go_tags(`bson:"vname"`)
int32 caravanLv = 41;//@go_tags(`bson:"caravanlv"`)
int64 deposit = 42; //@go_tags(`bson:"deposit"`)
int64 profit = 43; //@go_tags(`bson:"profit"`)
int64 integral = 44; //@go_tags(`bson:"integral"`)
}
message DBUserSetting {
@ -58,7 +67,6 @@ message DBUserSetting {
bool wuli = 6; //@go_tags(`bson:"wuli"`)
bool music = 7; //@go_tags(`bson:"music"`)
bool effect = 8; //@go_tags(`bson:"effect"`)
bool guaji = 9; //@go_tags(`bson:"guaji"`)
bool fuben = 10; //@go_tags(`bson:"fuben"`)
bool tansuo = 11; //@go_tags(`bson:"tansuo"`)
@ -77,4 +85,10 @@ message DBSign {
int32 day = 6; //
repeated int32 puzzle= 7; //@go_tags(`bson:"puzzle"`) // 0 1
int32 tips = 8; //
}
message DBRandomName{
string name_cn = 1;//@go_tags(`bson:"name_cn"`)
int32 gender = 2; //@go_tags(`bson:"gender"`)
int32 status = 3; // @go_tags(`bson:"status"`) 0使1使
}

View File

@ -12,6 +12,10 @@ import "comm.proto";
message UserLoginReq {
string account = 1; //
string sid = 2; //
int32 area = 3; //
int32 channel = 4; //
int32 vcode = 5; //
string vname = 6; //
}
message UserLoginResp {
@ -50,10 +54,12 @@ message UserLoadResp { CacheUser data = 1; }
message UserCreateReq {
string NickName = 1; //
int32 figure = 2; //
int32 gender = 3; // 01
int32 gender = 3; // 12
}
message UserCreateResp { bool IsSucc = 1; }
message UserCreateResp {
}
//
message UserResChangedPush {
@ -72,7 +78,8 @@ message UserResChangedPush {
int32 talent3 = 13; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 14; //@go_tags(`bson:"talent4"`) 4
int32 merchantmoney = 15;//@go_tags(`bson:"merchantmoney"`)
repeated string perlist = 16;//@go_tags(`bson:"perlist"`)
int64 integral = 16; //@go_tags(`bson:"integral"`)
// repeated string perlist = 16;//@go_tags(`bson:"perlist"`)
}
//
message UserOtherTermLoginPush { string uid = 1; }
@ -112,6 +119,7 @@ message UserModifynameResp {
string uid = 1;
uint32 count = 2; //
string name = 3;
ErrorCode code = 4;
}
//
@ -162,7 +170,7 @@ message UserVipChangedPush {
//
message UserModifysignReq { string sign = 1; }
message UserModifysignResp { string uid = 1; }
message UserModifysignResp { string sign = 1; }
//
message UserBattlerecordReq { string uid = 1; }
@ -235,15 +243,51 @@ message UserSellResResp {
//
message UserSwitchDefPerReq{
string defper1 = 1;
string defper2 = 2;
string defper3 = 3;
string curSkin = 1;
string curAction = 2;
string curBg = 3;
}
//
message UserSwitchDefPerResp{
bool issucc = 1;
string defper1 =2;
string defper2 = 3;
string defper3 = 4;
}
string curSkin =2;
string curAction = 3;
string curBg = 4;
}
message UserSkinlistPush {
repeated string skins = 1;
string curSkin = 2;
string curAction = 3;
string curBg = 4;
string avatar = 5;
}
message UserRandomNameReq {
}
message UserRandomNameResp {
string name = 1;
int32 gender = 2;
}
//
message UserDepositReq{
}
message UserDepositResp{
UserAssets atn = 1;
}
//
message UserGetdepositReq{
}
message UserGetdepositResp{
UserAssets atn = 1;
}

View File

@ -37,4 +37,6 @@ message DBUserExpand {
repeated int32 suiteId = 35;//@go_tags(`bson:"suiteId"`) Id
int32 globalbuff = 36; //@go_tags(`bson:"globalbuff"`) buff
map<int32, int32> race = 37; // key ID 1~4 value
map<string,int32> herofrag = 38;//
int32 passonlv = 39; //
}

View File

@ -6,10 +6,9 @@ message DBViking {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,int32> boss = 3; // key boos value
int32 buyCount = 4;//@go_tags(`bson:"buyCount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`)
map<string,int32> bossTime = 6; //@go_tags(`bson:"bossTime"`)
int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) //
map<string,int32> bossTime = 4; //@go_tags(`bson:"bossTime"`)
map<int32,int32> ps = 5;//
map <int32,int32> round = 6; //
}
//
@ -25,3 +24,18 @@ message DBVikingRank {
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
}
// DBVSeasonRank
message DBVSeasonRank {
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 huihe = 10; // *10
string sid =11; //@go_tags(`bson:"sid"`) id
}

View File

@ -30,6 +30,8 @@ message VikingChallengeOverReq {
int32 difficulty = 2; //
BattleReport report = 3; //
repeated int32 star = 4;//
int32 auto = 5; //
}
//
@ -37,7 +39,8 @@ message VikingChallengeOverResp {
DBViking data = 1;
repeated UserAtno asset = 2;// atno
repeated string sell = 3; //
map<string,int32> heroexp = 4;//
map<string,int32> heroexp = 4;//
int32 userExp = 5;
}
@ -60,3 +63,13 @@ message VikingRankListResp{
repeated DBVikingRank ranks = 1; // boss类型
}
//
message VikingSeasonRankReq{
int32 boosType = 1; // boss
}
message VikingSeasonRankResp{
repeated DBVSeasonRank ranks = 1; // boss类型
int64 etime = 2;
}

View File

@ -1,19 +1,24 @@
syntax = "proto3";
option go_package = ".;pb";
import "buried/buried_db.proto";
message DBWorldtask {
string uid = 1; //@go_tags(`bson:"uid"`) ID
repeated int32 taskList = 3; //@go_tags(`bson:"taskList"`)
map<int32, Worldtask> currentTask = 4; //@go_tags(`bson:"currentTask"`)
map<int32, Worldtasks> currentTasks = 4; //@go_tags(`bson:"currentTasks"`)
map<int32,int32> chapters = 5; //@go_tags(`bson:"chapters"`) key章节ID v状态 12
int64 daliyRefreshTime = 6; //@go_tags(`bson:"daliyRefreshTime"`)
int64 weekRefreshTime = 7; //@go_tags(`bson:"weekRefreshTime"`)
}
message Worldtasks{
map<int32,Worldtask> taskMap = 1; //@go_tags(`bson:"tasks"`)
}
message Worldtask {
int32 taskId = 1; //@go_tags(`bson:"taskIds"`) ID
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 taskType= 3; //@go_tags(`bson:"taskType"`) 1 / 2 3线
int32 npcStatus = 5; //@go_tags(`bson:"npcStatus"`) NPC任务完成状态0未完成 1
repeated int32 condiIds = 6; //@go_tags(`bson:"condiIds"`)
repeated ConIProgress conds = 6; //@go_tags(`bson:"conds"`)
int32 deliverNpc = 7; //@go_tags(`bson:"deliverNpc"`) NPC完成状态0未完成 1
}
}

View File

@ -2,7 +2,7 @@ syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_msg.proto";
import "worldtask/worldtask_db.proto";
import "errorcode.proto";
import "buried/buried_db.proto";
//
message WorldtaskMineReq {}
@ -11,47 +11,46 @@ message WorldtaskMineResp { DBWorldtask task = 1; }
//
message WorldtaskAcceptReq{
int32 groupId = 1;
int32 taskId = 2;
int32 taskId = 1;
}
message WorldtaskAcceptResp{
ErrorCode Code = 1;
repeated ConIProgress conds = 1; //
}
//
message WorldtaskCompletecondisPush{
//
message WorldtaskChangecondisPush{
repeated CurrentTask tasks = 1;
}
message CurrentTask{
int32 groupId = 1;
int32 taskId = 2;
repeated int32 condiIds = 3;
repeated ConIProgress conds = 3;
}
//
message WorldtaskCompleteCondiReq{
int32 groupId = 1;
int32 taskId = 2;
int32 condiId = 3;
int32 taskId = 1;
int32 condiId = 2;
}
message WorldtaskCompleteCondiResp{
ErrorCode code = 1;
int32 taskId = 2;
int32 condiId = 3;
int32 taskId = 1;
int32 condiId = 2;
}
//
message WorldtaskFinishReq {
int32 groupId = 1; //ID
int32 taskId = 2; //ID
int32 taskId = 1; //ID
}
message WorldtaskFinishResp {
ErrorCode code = 1;
int32 taskId = 2;
int32 condiId = 3;
int32 taskId = 1;
}
//
message WorldtaskNexttaskPush {
map<int32, Worldtask> nextTask = 1;
map<int32, Worldtasks> nextTask = 1;
repeated int32 finishedTaskIds = 2;//
}
@ -67,7 +66,6 @@ message WorldtaskBattleStartResp {
//
message WorldtaskBattleFinishReq {
int32 groupId = 1;
int32 taskId = 2; //ID
int32 condiId = 3; //ID
int32 battleConfId = 4; //ID
@ -89,5 +87,20 @@ message WorldtaskChapterrewardReq{
}
message WorldtaskChapterrewardResp{
ErrorCode code = 1;
int32 groupId = 1;
}
// 使
message WorldtaskTriggerReq {
int32 rtaskType = 1; //
repeated int32 params = 2; //
int32 condiId = 3; //ID
int32 groupId = 4; //
string rtaskIds = 5; //ids
}
message WorldtaskTriggerResp {
bool flag = 1;
repeated int32 rtaskIds = 2;
int32 rtaskType = 3;
}