diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index 05ec274..3744b35 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -5,6 +5,11 @@ option optimize_for = SPEED; // 嵌套的proto 必须在当前 proto 之前声明 + message ErrorResponse{ + optional int32 errCode =1 ; // 错误码,默认为0 + optional string errMsg =2 ; // 错误信息 + } + message Player{ optional int32 uid = 1; optional string nickName = 2; diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index fe5c660..55d938d 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -37,3 +37,8 @@ import "CommonProto.proto"; repeated string heroIds = 2; //队伍英雄id repeated int32 pokemonIds = 3; // 异妖id } + + + message UpHeroLevelRequest{ + optional string heroId = 1; //升级或突破的英雄id + } diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 25edfea..2f8830f 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -73,6 +73,8 @@ enum MessageType{ TEAM_POS_SAVE_REQUEST = 11902; //保存阵容 TEAM_POS_SAVE_RESPONSE = 11903; // U 12000 + UP_HERO_LEVEL_REQUEST = 12001; // 升级或突破 + UP_HERO_LEVEL_RESPONSE = 12002; // V 12100 // W 12200 // X 12300