上传协议更新

This commit is contained in:
liwei1dao 2022-08-01 13:47:41 +08:00
parent 8184c90396
commit bc53964894
14 changed files with 213 additions and 172 deletions

View File

@ -412,6 +412,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
StateInvalid: 20, StateInvalid: 20,
DBError: 21, DBError: 21,
SystemError: 22, SystemError: 22,
DecodeError: 23,
TimestampTimeout: 24,
PbError: 25,
AgentUidEmpty: 26,
Exception: 100, Exception: 100,
Unknown: 101, Unknown: 101,
ResNoEnough: 102, ResNoEnough: 102,
@ -423,12 +427,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
GoldNoEnough: 1003, GoldNoEnough: 1003,
DiamondNoEnough: 1004, DiamondNoEnough: 1004,
RoleCreated: 1005, RoleCreated: 1005,
NameExist: 1006, UserNickNameExist: 1006,
VeriCodeNoValid: 1007, VeriCodeNoValid: 1007,
VeriCodeExpired: 1008, VeriCodeExpired: 1008,
UserResetData: 1009, UserResetData: 1009,
ModifynameCount: 1010, UserModiNameCount: 1010,
MailErr: 1011, UserNickNameEmpty: 1011,
FriendNotSelf: 1100, FriendNotSelf: 1100,
FriendSelfMax: 1101, FriendSelfMax: 1101,
FriendTargetMax: 1102, FriendTargetMax: 1102,
@ -471,6 +475,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
DrawCardTypeNotFound: 1322, DrawCardTypeNotFound: 1322,
EquipmentOnFoundEquipment: 1400, EquipmentOnFoundEquipment: 1400,
EquipmentLvlimitReached: 1401, EquipmentLvlimitReached: 1401,
EquipmentIsWorn: 1402,
MainlineNotFindChapter: 1500, MainlineNotFindChapter: 1500,
MainlineIDFailed: 1501, MainlineIDFailed: 1501,
MainlineNotFound: 1502, MainlineNotFound: 1502,
@ -486,8 +491,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
TaskActiveNoenough: 1606, TaskActiveNoenough: 1606,
TaskNoFinished: 1607, TaskNoFinished: 1607,
TaskFinished: 1608, TaskFinished: 1608,
TaskTagEmpty: 1609,
TaskIdEmpty: 1610,
ShopGoodsIsSoldOut: 1700, ShopGoodsIsSoldOut: 1700,
ShopNoSurplusRefreshNum: 1701 ShopNoSurplusRefreshNum: 1701,
MailErr: 1800
} }
}, },
google: { google: {
@ -924,6 +932,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
GMCmdReq: {
fields: {
Cmod: {
type: "string",
id: 1
}
}
},
GMCmdResp: {
fields: {
IsSucc: {
type: "bool",
id: 1
}
}
},
SkillData: { SkillData: {
fields: { fields: {
skillID: { skillID: {
@ -1435,6 +1459,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
Amount: { Amount: {
type: "uint32", type: "uint32",
id: 2 id: 2
},
Select: {
type: "int32",
id: 3
} }
} }
}, },
@ -2523,6 +2551,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
UserModifysignReq: {
fields: {
sign: {
type: "string",
id: 1
}
}
},
UserModifysignResp: {
fields: {
uid: {
type: "string",
id: 1
}
}
},
Hair: { Hair: {
fields: { fields: {
resId: { resId: {
@ -2642,6 +2686,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
keyType: "int32", keyType: "int32",
type: "Figure", type: "Figure",
id: 10 id: 10
},
activeday: {
type: "int32",
id: 11
},
activeweek: {
type: "int32",
id: 12
},
sign: {
type: "string",
id: 13
} }
} }
}, },

View File

@ -3,68 +3,49 @@ option go_package = ".;pb";
import "chat_db.proto"; import "chat_db.proto";
// //
message ChatMessagePush{ message ChatMessagePush { DBChat chat = 1; }
DBChat chat = 1;
}
// //
message ChatCrossChannelReq { message ChatCrossChannelReq {}
}
// //
message ChatCrossChannelResp { message ChatCrossChannelResp { int32 channelId = 1; }
int32 channelId = 1;
}
// //
message ChatChanageChannelReq { message ChatChanageChannelReq { int32 channelId = 1; }
int32 channelId = 1;
}
// //
message ChatChanageChannelResp { message ChatChanageChannelResp {
int32 channelId = 1; int32 channelId = 1;
bool isSucc = 2; bool isSucc = 2;
} }
// //
message ChatGetListReq { message ChatGetListReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
} }
// //
message ChatGetListResp { message ChatGetListResp { repeated DBChat chats = 1; }
repeated DBChat chats = 1;
}
// //
message ChatSpanGetListReq { message ChatSpanGetListReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
int32 channelId = 2; //id int32 channelId = 2; //id
} }
// //
message ChatSpanGetListResp { message ChatSpanGetListResp { repeated DBChat chats = 1; }
repeated DBChat chats = 1;
}
// //
message ChatSendReq { message ChatSendReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
string targetId = 2; //id string targetId = 2; //id
string content = 3; // string content = 3; //
} }
// //
message ChatSendResp { message ChatSendResp {}
}
// //
message ChatSpanSendReq { message ChatSpanSendReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
string content = 2; // string content = 2; //
} }
// //
message ChatSpanSendResp { message ChatSpanSendResp {}
}

View File

@ -3,37 +3,36 @@ option go_package = ".;pb";
import "equipment_db.proto"; import "equipment_db.proto";
// //
message EquipmentGetListReq { message EquipmentGetListReq {}
}
// //
message EquipmentGetListResp { message EquipmentGetListResp {
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
} }
// //
message EquipmentChangePush { message EquipmentChangePush {
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
} }
// //
message EquipmentEquipReq{ message EquipmentEquipReq {
string HeroCardId = 1; //Id string HeroCardId = 1; //Id
repeated string EquipmentId = 2; //Id 0-5 repeated string EquipmentId = 2; //Id 0-5
} }
// //
message EquipmentEquipResp{ message EquipmentEquipResp {
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
} }
// //
message EquipmentUpgradeReq{ message EquipmentUpgradeReq {
string EquipmentId = 1; //Id string EquipmentId = 1; //Id
} }
// //
message EquipmentUpgradeResp{ message EquipmentUpgradeResp {
bool IsSucc = 1; bool IsSucc = 1;
repeated DB_Equipment Equipment = 2; // repeated DB_Equipment Equipment =
2; //
} }

View File

@ -9,13 +9,17 @@ enum ErrorCode {
CacheReadError = 13; // CacheReadError = 13; //
SqlExecutionError = 14; // SqlExecutionError = 14; //
ReqParameterError = 15; // ReqParameterError = 15; //
SignError = 16; // SignError = 16; //
InsufficientPermissions = 17; // InsufficientPermissions = 17; //
NoLogin = 18; // NoLogin = 18; //
UserSessionNobeing = 19; // UserSessionNobeing = 19; //
StateInvalid = 20; // StateInvalid = 20; //
DBError = 21; // DBError = 21; //
SystemError = 22; // SystemError = 22; //
DecodeError = 23; //
TimestampTimeout = 24; //
PbError = 25; // pb错误
AgentUidEmpty = 26; // AgentUid空
Exception = 100; // Exception = 100; //
Unknown = 101; // Unknown = 101; //
ResNoEnough = 102; // ResNoEnough = 102; //
@ -23,18 +27,18 @@ enum ErrorCode {
ConfigNoFound = 104; // ConfigNoFound = 104; //
// user // user
SecKeyInvalid = 1000; // SecKeyInvalid = 1000; //
SecKey = 1001; // SecKey = 1001; //
BindUser = 1002; // BindUser = 1002; //
GoldNoEnough = 1003; // GoldNoEnough = 1003; //
DiamondNoEnough = 1004; // DiamondNoEnough = 1004; //
RoleCreated = 1005; // RoleCreated = 1005; //
NameExist = 1006; // UserNickNameExist = 1006; //
VeriCodeNoValid = 1007; // VeriCodeNoValid = 1007; //
VeriCodeExpired = 1008; // VeriCodeExpired = 1008; //
UserResetData = 1009; // UserResetData = 1009; //
ModifynameCount = 1010; // UserModiNameCount = 1010; //
MailErr = 1011; // UserNickNameEmpty = 1011; //
// friend // friend
FriendNotSelf = 1100; // FriendNotSelf = 1100; //
@ -58,39 +62,41 @@ enum ErrorCode {
ItemsUseNotSupported = 1204; //使 ItemsUseNotSupported = 1204; //使
// hero // hero
HeroNoExist = 1300; // HeroNoExist = 1300; //
HeroNoEnough = 1301; // HeroNoEnough = 1301; //
HeroMaxLv = 1302; // HeroMaxLv = 1302; //
HeroInitCreat = 1303; // HeroInitCreat = 1303; //
HeroColorErr = 1304; // HeroColorErr = 1304; //
HeroSkillUpErr = 1305; // HeroSkillUpErr = 1305; //
HeroMaxResonate = 1306; // HeroMaxResonate = 1306; //
HeroNoResonate = 1307; // HeroNoResonate = 1307; //
HeroNotNeedResonate = 1308; // HeroNotNeedResonate = 1308; //
HeroNoEnergy = 1309; // HeroNoEnergy = 1309; //
HeroCreate = 1310; // HeroCreate = 1310; //
HeroEquipUpdate = 1311; // HeroEquipUpdate = 1311; //
HeroMaxAwaken = 1312; // HeroMaxAwaken = 1312; //
HeroIsLock = 1313; // HeroIsLock = 1313; //
HeroMaxCount = 1314; // HeroMaxCount = 1314; //
HeroCostTypeErr = 1315; // HeroCostTypeErr = 1315; //
HeroStarErr = 1316; // HeroStarErr = 1316; //
HeroTypeErr = 1317; // HeroTypeErr = 1317; //
HeroExpTypeErr = 1318; // HeroExpTypeErr = 1318; //
HeroAddMaxExp = 1319; // HeroAddMaxExp = 1319; //
HeroStarLvErr = 1320; // HeroStarLvErr = 1320; //
HeroMaxStarLv = 1321; // HeroMaxStarLv = 1321; //
DrawCardTypeNotFound = 1322; // DrawCardTypeNotFound = 1322; //
// equipment // equipment
EquipmentOnFoundEquipment = 1400; // EquipmentOnFoundEquipment = 1400; //
EquipmentLvlimitReached = 1401; // EquipmentLvlimitReached = 1401; //
EquipmentIsWorn = 1402; // 穿
// mainMainline // mainMainline
MainlineNotFindChapter = 1500; // 线 MainlineNotFindChapter = 1500; // 线
MainlineIDFailed = 1501; // ID MainlineIDFailed = 1501; // ID
MainlineNotFound = 1502; // 线 MainlineNotFound = 1502; // 线
MainlinePreNotFound = 1503; // MainlinePreNotFound = 1503; //
MainlineRepeatReward = 1504; // MainlineRepeatReward = 1504; //
MainlineCompleteReward = 1505; // MainlineCompleteReward = 1505; //
// task // task
@ -103,8 +109,12 @@ enum ErrorCode {
TaskActiveNoenough = 1606; // TaskActiveNoenough = 1606; //
TaskNoFinished = 1607; // TaskNoFinished = 1607; //
TaskFinished = 1608; // TaskFinished = 1608; //
TaskTagEmpty = 1609; //
TaskIdEmpty = 1610; //ID空
// shop // shop
ShopGoodsIsSoldOut = 1700; // ShopGoodsIsSoldOut = 1700; //
ShopNoSurplusRefreshNum = 1701; // ShopNoSurplusRefreshNum = 1701; //
// mail
MailErr = 1800; //
} }

11
src/pb/proto/gm_msg.proto Normal file
View File

@ -0,0 +1,11 @@
syntax = "proto3";
option go_package = ".;pb";
///gm
message GMCmdReq {
string Cmod = 1;
}
///gm
message GMCmdResp {
bool IsSucc = 1;
}

View File

@ -30,4 +30,5 @@ message DBHero {
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id
bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) true bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) true
//map<string, int32> energyProperty = 24; //@go_tags(`bson:"energyProperty"`)
} }

View File

@ -131,9 +131,9 @@ message HeroLockResp {
// //
message HeroGetSpecifiedReq { message HeroGetSpecifiedReq {
string heroCoinfigID = 1; // ID string heroCoinfigID = 1; // ID
int32 Amount = 2; // int32 Amount = 2; //
int32 star = 3; // int32 star = 3; //
int32 lv = 4; // int32 lv = 4; //
} }
message HeroGetSpecifiedResp { message HeroGetSpecifiedResp {
@ -141,15 +141,13 @@ message HeroGetSpecifiedResp {
} }
// //
message HeroDrawCardReq { message HeroDrawCardReq {
int32 drawType = 1; // drawCardCost表 int32 drawType = 1; // drawCardCost表
} }
message HeroDrawCardResp { message HeroDrawCardResp {
repeated string heroes = 1; // configID repeated string heroes = 1; // configID
} }
// //
message HeroChangePush{ message HeroChangePush { repeated DBHero list = 1; }
repeated DBHero list = 1;
}

View File

@ -4,42 +4,43 @@ import "items_db.proto";
// //
message ItemsGetlistReq { message ItemsGetlistReq {
int32 IType = 1; // int32 IType = 1; //
} }
// //
message ItemsGetlistResp { message ItemsGetlistResp {
repeated DB_UserItemData Grids = 1; // repeated DB_UserItemData Grids = 1; //
} }
// //
message ItemsChangePush { message ItemsChangePush {
repeated DB_UserItemData Grids = 1; // repeated DB_UserItemData Grids = 1; //
} }
//使 //使
message ItemsUseItemReq { message ItemsUseItemReq {
string GridId = 1; //Id string GridId = 1; //Id
uint32 Amount = 2; //使 uint32 Amount = 2; //使
int32 Select = 3; //
} }
//使 //使
message ItemsUseItemResp { message ItemsUseItemResp {
string GridId = 1; //Id string GridId = 1; //Id
uint32 Amount = 2; //使 uint32 Amount = 2; //使
bool issucc = 3; // bool issucc = 3; //
} }
//sailitem //sailitem
message ItemsSellItemReq { message ItemsSellItemReq {
string GridId = 1; //Id string GridId = 1; //Id
string ItemId = 2; //Id string ItemId = 2; //Id
uint32 Amount = 3; //使 uint32 Amount = 3; //使
} }
// //
message ItemsSellItemResp { message ItemsSellItemResp {
string GridId = 1; //Id string GridId = 1; //Id
uint32 Amount = 2; //使 uint32 Amount = 2; //使
bool issucc = 3; // bool issucc = 3; //
} }

View File

@ -2,43 +2,29 @@ syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "mail_db.proto"; import "mail_db.proto";
message MailGetListReq { message MailGetListReq {}
}
// //
message MailGetListResp { message MailGetListResp { repeated DBMailData Mails = 1; }
repeated DBMailData Mails = 1;
}
// //
message MailReadMailReq { message MailReadMailReq { string ObjID = 1; }
string ObjID = 1;
}
message MailReadMailResp { message MailReadMailResp { DBMailData Mail = 1; }
DBMailData Mail = 1;
}
// //
message MailGetUserMailAttachmentReq { message MailGetUserMailAttachmentReq { string ObjID = 1; }
string ObjID = 1;
}
message MailGetUserMailAttachmentResp { message MailGetUserMailAttachmentResp { DBMailData Mail = 1; }
DBMailData Mail = 1;
}
// //
message MailDelMailReq { message MailDelMailReq { string ObjID = 1; }
string ObjID = 1;
}
message MailDelMailResp { message MailDelMailResp {
string ObjID = 1; // id string ObjID = 1; // id
} }
// //
message MailGetNewMailPush{ message MailGetNewMailPush {
DBMailData Mail = 1; // DBMailData Mail = 1; //
} }

View File

@ -3,34 +3,28 @@ option go_package = ".;pb";
import "mainline_db.proto"; import "mainline_db.proto";
// //
message MainlineGetListReq { message MainlineGetListReq {}
}
// //
message MainlineGetListResp { message MainlineGetListResp { repeated DBMainline data = 1; }
repeated DBMainline data = 1;
}
// //
message MainlineGetRewardReq { message MainlineGetRewardReq {
string chapterObj = 1; // id string chapterObj = 1; // id
} }
message MainlineGetRewardResp { message MainlineGetRewardResp {
DBMainline data = 1; // DBMainline data = 1; //
} }
// //
message MainlineChallengeReq { message MainlineChallengeReq {
string chapterObj = 1; // id string chapterObj = 1; // id
uint32 mainlineId = 2; // ID uint32 mainlineId = 2; // ID
} }
message MainlineChallengeResp { message MainlineChallengeResp {
DBMainline data = 1; // DBMainline data = 1; //
} }
// //
message MainlineNewChapterPush{ message MainlineNewChapterPush { DBMainline data = 1; }
DBMainline data = 1;
}

View File

@ -19,17 +19,17 @@ message UserShopData {
message DBShop { message DBShop {
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 uid = 2; //@go_tags(`bson:"uid"`) id
UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`) UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`)
UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`) UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`)
UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`) UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`)
UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`) UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`)
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`) UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`)
} }
message DBShopItem { message DBShopItem {
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 uid = 2; //@go_tags(`bson:"uid"`) id
int32 goodsId = 3; //@go_tags(`bson:"goodsId"`)Id int32 goodsId = 3; //@go_tags(`bson:"goodsId"`) Id
map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`) map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`) map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`)
} }

View File

@ -46,6 +46,4 @@ message TaskDoStrategyResp {
} }
// //
message TaskFinishedPush { message TaskFinishedPush { int32 taskId = 1; }
int32 taskId = 1;
}

View File

@ -39,9 +39,7 @@ message UserCreateReq {
string NickName = 1; // string NickName = 1; //
} }
message UserCreateResp { message UserCreateResp { bool IsSucc = 1; }
bool IsSucc = 1;
}
// //
message UserAddResReq { message UserAddResReq {
@ -119,4 +117,9 @@ message UserFigureResp {
string uid = 1; string uid = 1;
int32 action = 2; // int32 action = 2; //
Figure figure = 3; Figure figure = 3;
} }
//
message UserModifysignReq { string sign = 1; }
message UserModifysignResp { string uid = 1; }

View File

@ -50,4 +50,7 @@ message DBUserExpand {
map<string, bool> tujian = 8; // map<string, bool> tujian = 8; //
int32 curFigure = 9; // int32 curFigure = 9; //
map<int32, Figure> preinstall = 10; // map<int32, Figure> preinstall = 10; //
int32 activeday = 11; //
int32 activeweek = 12; //
string sign = 13; //
} }