code.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. package code
  2. var (
  3. OK int32 = 0 // is ok
  4. Error int32 = 1 // error
  5. PIDError int32 = 10000 // pid错误
  6. LoginError int32 = 10201 // 登录异常
  7. AccountAuthFail int32 = 10202 // 帐号授权失败
  8. AccountBindFail int32 = 10203 // 帐号绑定失败
  9. AccountTokenValidateFail int32 = 10204 // token验证失败
  10. AccountNameIsExist int32 = 10205 // 帐号已存在
  11. AccountRegisterError int32 = 10206 //
  12. AccountGetFail int32 = 10207 //
  13. ActivityNotOpenError int32 = 10208 // 活动不存在
  14. PassWordIsExist int32 = 10209 //已设置过密码
  15. PassWordIsError int32 = 10210 //钱包密码错误
  16. PassWordTooManyErrors int32 = 10211 //密码错误次数过多请24小时后在尝试
  17. PassWordSettingError int32 = 10212 //密码设置错误
  18. PasswordInconsistencyError int32 = 10213 //两次密码输入不一致
  19. PlayerDenyLogin int32 = 10301 // 玩家禁止登录
  20. PlayerDuplicateLogin int32 = 10302 // 玩家重复登录
  21. PlayerNameExist int32 = 10303 // 玩家角色名已存在
  22. PlayerCreateFail int32 = 10304 // 玩家创建角色失败
  23. PlayerNotLogin int32 = 10305 // 玩家未登录
  24. PlayerIdError int32 = 10306 // 玩家id错误
  25. PlayerItemNumError int32 = 10307 // 玩家物品不够
  26. PlayerSignInError int32 = 10308 // 玩家重复签到
  27. InviteEmpoweringOthersError int32 = 10309 // 已为他人助力
  28. XAccountAlreadyExistsError int32 = 10310 // 已绑定账号
  29. TonWallAlreadyExistsError int32 = 10311 // tonwall已绑定账号
  30. NotEnoughItemsError int32 = 10312 //物品不够
  31. TonWallNotExistsError int32 = 10313 // 未绑定钱包
  32. )