syntax = "proto3";
option go_package = ".;pb";
// go:generate stringer -type ErrorCode -linecomment
enum ErrorCode {
  Success = 0;                  //成功
  GatewayException = 1;         //网关执行异常
  NoFindService = 10;           //没有找到远程服务器
  NoFindServiceHandleFunc = 11; //远程服务器未找到执行方法
  RpcFuncExecutionError = 12;   //Rpc方法执行错误
  CacheReadError = 13;          //缓存读取失败
  SqlExecutionError = 14;       //数据库执行错误
  ReqParameterError = 15;       //请求参数错误
  SignError = 16;               //签名串错误
  InsufficientPermissions = 17; //权限不足
  NoLogin = 18;                 //未登录
  UserSessionNobeing = 19;      //用户不存在
  StateInvalid = 20;            //无效状态
  DBError = 21;                 //数据库操作失败
  SystemError = 22;             //通用错误
  DecodeError = 23;             //加密串解码错误
  TimestampTimeout = 24;        //加密串时间戳超时
  PbError = 25;                 // pb错误
  AgentUidEmpty = 26;           // AgentUid空
  Exception = 100;              //程序执行异常
  Unknown = 101;                //未知错误
  ResNoEnough = 102;            //资源不足
  ConfigurationException = 103; //配置异常
  ConfigNoFound = 104;          //配置未找到
  UserLogined = 105;            //已在其它终端登录
  NoOpened = 106;               //模块未开放
  DataNotFound = 107;           //数据为找到

  // 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;      //友情点不足
  UserSociatyCoinNoEnough = 1015; //公会币不足
  UserArenaCoinNoEnough = 1016;   //竞技场币不足
  UserVitNoEnough = 1017;         //体力不足
  UserVitLimit = 1018;            //体力达到最大上限
  UserMoongoldNoEnough=1019; //纯净月髓不足
  UserOffline = 1020; //玩家不在线
  UserNofound = 1021; //未查询到玩家
  UserSign = 1022; //签到状态不对
  OpenCondErr = 1023; //功能开启条件未达到
  OpenCondActivate = 1024; //功能开启条件已激活
  UserTalent1NoEnough = 1025; //阵营1天赋点
  UserTalent2NoEnough = 1026; //阵营2天赋点
  UserTalent3NoEnough = 1027; //阵营3天赋点
  UserTalent4NoEnough = 1028; //阵营4天赋点
  UserMerchantNoEnough = 1029; //虚拟币不足

  // friend
  FriendNotSelf = 1100;         //不能是自己
  FriendSelfMax = 1101;         //超出好友最大数量
  FriendTargetMax = 1102;       //超出目标好友最大数量
  FriendSelfNoData = 1103;      //无好友记录
  FriendTargetNoData = 1104;    //无目标好友记录
  FriendYet = 1105;             //已是好友
  FriendApplyYet = 1106;        //已申请该好友
  FriendSelfBlackYet = 1107;    //已在自己黑名单中
  FriendTargetBlackYet = 1108;  //已在对方的黑名单中
  FriendApplyError = 1109;      //申请失败
  FriendBlackMax = 1110;        //黑名单最大数量
  FriendSearchNameEmpty = 1111; //查询昵称为空
  FriendZaned = 1112;           //已点赞
  FriendZanreceived = 1113;     //已领取点赞
  FriendZanSelf = 1114;         //不能给自己点赞
  FriendPointLimit = 1115;      //友情点上线
  FriendNoreceived = 1116;      //未更换助战没有可领取的奖励
  FriendQiecuoTimeout = 1117; //切磋请求超时
  FriendQiecuoRequested = 1118; //已发送切磋请求
  FriendQiecuoNoRequest = 1119; //无切磋请求
  FriendQiecuoing = 1120; //好友切磋中
  FriendQiecuoTargetPk = 1121; //目标已经在战斗
  FriendTicketNoEnough = 1122; //挑战券
  // item
  ItemsNoEnough = 1200;        //背包物品不足
  ItemsNoFoundGird = 1201;     //背包未找到物品格子
  ItemsGridNumUpper = 1202;    //背包格子数量已达上限
  ItemsGirdAmountUpper = 1203; //背包格子容量已达上限
  ItemsUseNotSupported = 1204; //暂不支持使用
  ItemsUseNoCanSell = 1205;    //道具不支持出售
  ItemsBuyPsUpperLimit = 1206; //体力购买达到上限

  // hero
  HeroNoExist = 1300;             //英雄不存在
  HeroNoEnough = 1301;            //英雄数量不足
  HeroMaxLv = 1302;               //英雄达到最大等级
  HeroInitCreat = 1303;           //初始化英雄
  HeroColorErr = 1304;            // 品质不匹配
  HeroSkillUpErr = 1305;          // 技能升级失败
  HeroMaxResonate = 1306;         // 达到最大共鸣次数
  HeroNoResonate = 1307;          // 没有共鸣
  HeroNotNeedResonate = 1308;     // 不需要重置共鸣
  HeroNoEnergy = 1309;            // 没有能量点数
  HeroCreate = 1310;              // 创建卡失败
  HeroEquipUpdate = 1311;         // 更新装备失败
  HeroMaxAwaken = 1312;           // 达到最大觉醒等级
  HeroIsLock = 1313;              // 英雄被锁定不能被消耗
  HeroMaxCount = 1314;            // 英雄达到最大数量
  HeroCostTypeErr = 1315;         // 消耗英雄参数不匹配
  HeroStarErr = 1316;             // 不满足升星条件
  HeroTypeErr = 1317;             // 升级英雄类型不对
  HeroExpTypeErr = 1318;          // 技能升级卡类型不对
  HeroAddMaxExp = 1319;           // 升级经验卡溢出 检查传入的数量
  HeroStarLvErr = 1320;           // 升星等级不够
  HeroMaxStarLv = 1321;           // 达到最大升星等级
  DrawCardTypeNotFound = 1322;    // 抽卡类型不匹配
  HeroMaxSkillLv = 1323;          // 达到最大技能等级
  HeroAlreadyKongFuStatus = 1324; // 已经是练功状态
  HeroLvNoEnough = 1325;          // 英雄等级不足
  HeroIsRegister = 1326;          // 英雄已经登记过

  // equipment
  EquipmentOnFoundEquipment = 1400; // 未找到武器
  EquipmentLvlimitReached = 1401;   // 武器等级已达上限
  EquipmentIsWorn = 1402;           // 武器已经穿戴
  EquipmentNoCanSell = 1403;        // 装备不能出售
  EquipmentSuiteNotFound = 1404;    // 套装未找到

  // mainMainline
  MainlineNotFindChapter = 1500; // 没有找到主线关卡信息
  MainlineIDFailed = 1501;       // 关卡ID 错误
  MainlineNotFound = 1502;       // 主线关卡不存在
  MainlinePreNotFound = 1503;    // 前置关卡不匹配
  MainlineRepeatReward = 1504;   // 重复领奖
  MainlineCompleteReward = 1505; // 通关才能领奖
  MainlineNoEnoughStar = 1506;   // 扫荡通关星级不够

  // task
  TaskInit = 1600;           //初始化失败
  TaskReset = 1601;          //重置任务失败
  TaskHandle = 1602;         //任务处理失败
  TaskReceived = 1603;       //已领取
  TaskActiveInit = 1604;     //初始化活跃度失败
  TaskActiveNofound = 1605;  //未找到用户活跃度配置
  TaskActiveNoenough = 1606; //活跃值未达标
  TaskNoFinished = 1607;     //任务未完成
  TaskFinished = 1608;       //已完成
  TaskTagEmpty = 1609;       //任务类型空
  TaskIdEmpty = 1610;        //任务ID空
  TaskNotFound = 1611;       //未找到用户任务

  // shop
  ShopGoodsIsSoldOut = 1700;      //商品已售罄
  ShopNoSurplusRefreshNum = 1701; //剩余刷新次数已用完
  // mail
  MailErr = 1800; // 邮件不存在
  // pagoda
  PagodaNotFound = 1900;     // 找不到塔数据
  PagodaLevlErr = 1901;      // 挑战关卡数据不匹配
  PagodaGetRewardErr = 1902; // 重复领取
  PagodaConditionErr = 1903; // 条件不足
  PagodaUnlock = 1904; // 未解锁 前置条件不足
  // martialhall
  MartialhallNotUnlocked = 2000; //没有解锁
  MartialhallInUse = 2001;       //已经在使用
  MartialhallUnlocked = 2002;    //已解锁
  MartialhallNoUnlocked = 2003;  //有未解锁柱子
  MartialhallAtlasError = 2004; // 武馆图鉴领取错误
  MartialhallAtlasNoReward = 2005; // 武馆图鉴不满足领取条件
  // 美食馆
  GourmetMoreOrderTime = 2101; // 超过订单时长
  GourmetSkillMaxLv = 2102;    // 技能已经达到满级

  // rtask
  RtaskFinished = 2201;     //任务已完成
  RtaskUnFinished = 2202;   //任务未完成
  RtaskNoRtask = 2203;      //任务未开启
  RtaskRewarded = 2204;     //已获取奖励
  RtaskPreNoFinish = 2205;  //前置未完成
  RtaskCondiNoReach = 2206; //未达到限定条件
  RtaskNoLastOne = 2207;    //不是最后一个任务
  RtaskCondiNoFound = 2208; //未找到符合的条件配置

  // viking
  VikingLvErr = 2301;             // 关卡难度不匹配
  VikingBoosType = 2302;          // BOSS 类型不对
  VikingBuyMaxCount = 2303;       // 购买达到最大次数
  VikingMaxChallengeCount = 2304; // 挑战达到最大次数

  // moonfantasy  月之秘境
  MoonfantasyHasExpired = 2401;       // boos 连接已失效
  MoonfantasyJoinUp = 2402;           // boos 参与人数已达上限
  MoonfantasyDareUp = 2403;           // boos 挑战次数已达上限
  MoonfantasyBattleNoEnd = 2404;      // boos 战斗未结束
  MoonfantasyBattleNoWin = 2405;      // boos 战斗魏未胜利
  MoonfantasyNoJoin = 2406;           // boos 未加入战斗序列
  MoonfantasyNotEnoughbattles = 2407; // boos 挑战次数不足

  BattleNoFoundRecord = 2501; // 未找到记录

  LinestoryTaskFinished = 2601;      //任务已完成
  LinestoryNoReceive = 2602;         //章节奖励不能领取
  LinestoryTaskDisabledEnter = 2603; //禁止进入
  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;             // 达到最大等级
  LibraryNoData = 2802;            // 没找到羁绊数据
  LibraryActivation = 2803;        // 已经是激活状态
  LibraryReward = 2804;            // 已经领取奖励
  LibraryLvReward = 2805;          // 领奖等级没达到
  LibraryFetterTaskNoFound = 2806; //未找到羁绊任务数据
  LibraryPreTaskNoFinished = 2807; //前置任务未完成
  LibraryGiveMaxCount = 2808; //送礼达到最大次数

  // Battle
  BattleValidationFailed = 2901; //战斗校验失败
  BattleNoWin = 2902;            //战斗失败
  BattleCreateFailed = 2903;     //创建战斗失败
  BattleInCmdFailed = 2904;      //战斗指令输入失败
  BattleUserOff = 2905;          //由用户离线
  BattleCapskillCheckFailed = 2906; //战斗队长技校验失败
  BattleNoKeep = 2907;              //战斗不存在

  // sociaty
  SociatyNoFound = 3000;           //公会不存在
  SociatyAdded = 3001;             //已在公会里
  SociatyDiamondNoEnough = 3002;   //钻石不足
  SociatyNoMember = 3003;          //不是公会成员
  SociatyNoRight = 3004;           //无权限
  SociatyNoAdded = 3005;           //未加入公会
  SociatyDismiss = 3006;           //解散失败
  SociatyQuit = 3007;              //退会失败
  SociatyAgree = 3008;             //申请-同意失败
  SociatyRefuse = 3009;            //申请-拒绝失败
  SociatyLogParams = 3010;        //公会日志参数错误
  SociatyMasterNoDiss = 3011;     //会长不能被踢出
  SociatySettingJob = 3012;       //设置职位失败
  SociatySetting = 3013;          //公会修改失败
  SociatyNoAccuse = 3014;         //无需弹劾
  SociatySign = 3015;             //签到失败
  SociatySigned = 3016;           //已签到
  SociatyCDLimit = 3017;          // CD时间限制
  SociatyApplyMax = 3018;         //最大申请该公会人数
  SociatySelfSetting = 3019;      // 不能设置自己
  SociatyMemberCountLimit = 3020; //超出人数限制
  SociatyRewardReceived = 3021;   //奖励已领取
  SociatyRewardReceive = 3022;    //奖励领取失败
  SociatyResource = 3023;         //更新公会资源失败
  SociatyBelongTo = 3025;         //已是公会成员
  SociatyApplied = 3026;          //已申请
  SociatyAppyLvNoEnough = 3027;   //申请等级不满足
  SociatyTaskValidation = 3028;   //任务未完成
  SociatyActivityNoEnough = 3029; //活跃度不足
  SociatyAcitvityReceive = 3030;  //活跃度领取失败
  SociatyDismissed = 3031;        //公会已解散
  SociatyNameExist = 3032;        //公会名存在
  SociatyQuitNoAllowed = 3033;    //会长不允许退公会
  SociatyNoMaster = 3034;         //无会长
  SociatyNoFormation = 3035;      //无阵容
  SociatyTicketsNoEnough = 3036;  //挑战券不足
  SociatySportsNoinit = 3037;     //赛季未初始
  SociatySportsEnd = 3038;        //赛季已结束
  SociatyTeamUnlock = 3039;       //队伍解锁条件不满足
  SociatyTaskNoFound = 3040;      //未找到boss任务
  SociatyTaskNoFinished = 3041;   //任务未完成
  SociatyTaskReceived = 3042;     //任务奖励已领取
  SociatyApplyLvLimit = 3043; //超出最大申请等级限制

  // 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; //奖励重复领取
  TrollCity = 3306; // 已经在该城市了
  TrollTask = 3307; // 任务没完成
  // 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不一致
  WorldtaskChapterUnFinished =3808; //章节任务未完成
  WorldtaskChapterReceived =3809; //章节奖励已领取
  WorldtaskNoProcess = 3810; //无需处理

  // academy
  AcademyTaskNoCompleteTask = 3901; //未完成任务
  // AutoBattle
  AutoBattleNoData = 4001;    //没有正在自动战斗的数据
  AutoBattleStatesErr = 4002; // 自动战斗状态错误

  // smithy
  SmithyNoReel = 4101;// 没有激活图纸信息
  SmithyNoTemperature = 4102;// 炉温不够不能打造
  SmithyStoveMaxLv = 4103;// 炉子达到最大等级
  SmithyCustomerLimit = 4104; //顾客上限
  SmithyCustomerEquipNoEnough = 4105; //装备回收数量不足
  SmithyMaxTemperature = 4106; // 炉温达上限
  SmithyLackLava = 4107; // 缺少熔岩
  SmithyAtlasMaxLv = 4108; // 图鉴奖励满级
  SmithyAtlasLackLv = 4109; // 图鉴奖励等级不足
  SmithyTaskNoFinished = 4110; //图鉴任务未完成
  SmithyTaskReceived = 4111; //图鉴任务奖励已领
  SmithyNoFoundAtlas = 4112; // 没有找到图鉴数据
  SmithyNoActivateAtlas = 4113; // 没有图鉴更新数据
  SmithyLvToolsFailed = 4114; //
  SmithyLvToolsPre = 4115; // 前置条件不足
  SmithyAtlasTypeErr = 4116; //图鉴类型错误

  // dispatch
  DispatchHeroNoReached = 4201; //英雄条件未达标
  DispatchNoFree = 4202; //免费次数用尽
  DispatchTicketNoEnough = 4203; //门票不足
  DispatchHeroAssigned = 4204; //英雄已派遣
  DispatchTaskExpired = 4205; //任务已过期
  DispatchRefreshMax = 4206; //达到最大刷新次数
  DispatchNoFinished = 4207; //任务未完成
  DispatchHeroNoEnough = 4208; //派遣英雄数量不足

  //practice
  PracticeQiecuoing = 4301; //武馆切磋中
  PracticeSent = 4302; //邀请已发送 10秒内请勿重复邀请
  PracticeInviteTimeOut = 4303; //邀请超时
  PracticePillarMaxLv = 4304; //木桩已到满级
  PracticeYouQiecuoing = 4305;  //你有切磋未完成
  PracticeTargetQiecuoing = 4306;  //目标正在切磋中

  //parkour
  ParkourMemberFull = 4401;       //队伍成员已满
  ParkourInviteOverdue = 4402;    //邀请已过期
  ParkourInviteNoPermissions = 4403;    //无权邀请
  ParkourTargetTeamed = 4404;    //目标已组队

  //reputation
  ReputationTalentFull = 4501; //天赋满级
  ReputationNoPreNodeLv= 4502;  //前置节点等级不满足

  // oldtimes
  OldtimesReceived = 4601; //章节奖励已领取
  OldtimesFinished = 4602; //章节已完成
  OldtimesLevelOver = 4603;//已通关
  OldtimesPreLevelNoFinished = 4604; //前置未完成
  OldtimesNoAllFinished = 4605; //没有全部通关
}
