code.go 1.5 KB

12345678910111213141516171819202122232425262728
  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. PlayerDenyLogin int32 = 10301 // 玩家禁止登录
  15. PlayerDuplicateLogin int32 = 10302 // 玩家重复登录
  16. PlayerNameExist int32 = 10303 // 玩家角色名已存在
  17. PlayerCreateFail int32 = 10304 // 玩家创建角色失败
  18. PlayerNotLogin int32 = 10305 // 玩家未登录
  19. PlayerIdError int32 = 10306 // 玩家id错误
  20. PlayerItemNumError int32 = 10307 // 玩家物品不够
  21. PlayerSignInError int32 = 10308 // 玩家重复签到
  22. InviteEmpoweringOthersError int32 = 10309 // 已为他人助力
  23. XAccountAlreadyExistsError int32 = 10310 // 已绑定账号
  24. TonWallAlreadyExistsError int32 = 10311 // tonwall已绑定账号
  25. NotEnoughItemsError int32 = 10312 //物品不够
  26. TonWallNotExistsError int32 = 10313 // 未绑定钱包
  27. )