code.go 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. // webadmin
  33. ParamError int32 = 16001 // 参数错误
  34. InternalError int32 = 16002 // 内部错误
  35. DisabledUserError int32 = 16003 // 用户被禁用
  36. UserNameOrPasswordError int32 = 16004 // 用户名或者密码错误
  37. AccountExistError int32 = 16005 // 帐号已存在
  38. RoleNameExistError int32 = 16006 // 角色名称已存在
  39. RoleNotExistError int32 = 16007 // 角色不存在
  40. AccessNotExistError int32 = 16008 // 权限不存在
  41. AccessExistError int32 = 16009 // 权限已存在
  42. AccessHasUsedError int32 = 16010 // 权限已被角色使用,无法删除
  43. NoAccessError int32 = 16011 // 没有权限
  44. RoleNotExistOrDisabledUserError int32 = 16012 // 角色不存在,或者已经被禁用
  45. AdminNotExistError int32 = 16013 // 管理员不存在
  46. AdminMustNotUpdateError int32 = 16014 // admin-超级账户不能修改角色
  47. UnauthorizedError int32 = 16015 // token验证失败
  48. ForbiddenError int32 = 16016 // Ip 禁用
  49. AccountNotExistError int32 = 16017 // 帐号不存在
  50. HaveReceivedError int32 = 16018 // 已经领取过
  51. NoYetUnlockedError int32 = 16019 // 未解锁
  52. )