syntax = "proto3"; package pb; import "platform.proto"; option go_package = "../../pb"; enum ErrNo { SUCCESS = 0; // 成功 Server_Except = 1; // 服务器异常;server except TokenError = 2; // token错误;token error TokenExpire = 3; // token已过期;token expired Account_NotExists = 4; // 账户不存在或密码错误;account not exists or password error Duplicate_Login = 5; // 重复登录;duplicate login Server_Maintain = 8; // 服务器维护;server maintaining NickName_Exists = 10; // 昵称已存在;nick name already exists NickName_TooShort = 11; // 昵称太短;nick name too short NickName_TooLong = 12; // 昵称太长;nick name too long Password_TooShort = 13; // 密码太短;password too short Password_TooLong = 14; // 密码太长;password too long AccountBind = 15; // 账号已绑定;account bound Already Charge_Fail = 20; // 拉取订单失败;charge fail Lower_Age = 21; // 充值年龄不足;not old enough Cash_NotEnough = 22; // 退出金额不足;cash not enough Withdrawing = 23; // 已在退出中,不能退出;withdraw in progress RequestParam_Error = 50; // 请求参数错误;required param error Server_ConfigError = 51; // 服务器配置信息错误;server configure error Reward_IDNotExists = 52; // 奖励ID不存在;reward id not found Reward_AlreadyGet = 53; // 该奖励已经领取;that reward already get Reward_ConditionUnCompelete = 54; // 奖励条件未达成;reward condition uncompelete SeasonWheel_NotExists = 55; // 奖券不存在;season lottery ticket not exist SeasonWheel_Expire = 56; // 奖券已过期;season lottery ticket alearay expired ReplayRecord_NotExist = 60; // 回放记录不存在;replay record not exist // 游戏相关错误码从100开始 CompetitionID_NotExists = 100; // 比赛ID不存在;match id not found Competition_Over = 101; // 比赛已结束;compete already over Competition_PriceNotEnough = 102; // 入场费不足;Insufficient entry fee Competition_Matching = 103; // 已经在匹配队列中;already in match queue Competition_Gaming = 104; // 已经在比赛中;already in game Competition_OtherGame = 105; // 已经在其他游戏中;in other game Competition_NotFound = 106; // 比赛未找到, 比赛ID错误或者游戏已结束;match not found or compete already over Competition_NotInCmp = 107; // 不在比赛中;not in game Competition_GameOver = 108; // 个人副本游戏已结束;gameover Competition_Pause = 109; // 游戏已暂停;game pause Competition_ParamError = 110; // 请求参数错误;game required param error MatchID_NotExist = 111; // 匹配ID不存在;match id not found Match_Timeout = 112; // 匹配超时;match timeout Competition_AuthFail = 113; // 比赛结果不合法;match result auth fail Competition_Busy = 114; // 比赛繁忙;competition busy HTTP_SUCCESS = 200; // Web使用 // 活动 ActivityInvalid = 201; // 不在活动时间;activity invalid ActivityDraw = 202; // 活动奖励已领取;activity reward draw ActivityNotFinished = 203; // 活动未完成;activity not finished DiamondNotEnough = 204; // 钻石不足;gems not enough } // 用户数据 message UserData { uint32 Uid = 1; // uid string Nick = 2; // 昵称 string Avatar = 3; // 头像 int64 Cash = 4; // 现金 int64 BindCash = 5; // 绑定现金 int64 Tickets = 6; // 门票 int32 Sex = 7; // 性别,0保密, 1男, 2女 string AreaCode = 8; // 区域编号 string Signature = 9; //签名 int64 Birth = 10; // 生日 int32 Dan = 11; // 段位 } // 玩家货币变化通知 message PlayerCurrencyChangeNotify { repeated CurrencyPair list = 1; int32 Event = 2; // 事件 } message DuplicateLoginResp { ErrNo Err = 1; string Message = 2; }