ResultStatus.java 998 B

123456789101112131415161718192021222324252627
  1. package com.yihu.jw.restmodel;
  2. public class ResultStatus {
  3. /**
  4. * 1000多错误码 用户,应用相关的
  5. */
  6. public static final Integer USER_NO_EXIST = 1000;//用户不存在
  7. public static final Integer APP_NO_EXIST = 1001;//应用不存在
  8. /**
  9. * 1100多错误码 与授权相关的
  10. */
  11. public static final Integer EXPIRE = 1100; //过期的token
  12. public static final Integer NULL_TOKEN = 1101;// token为空
  13. public static final Integer INVALID_GRANT = 1102; //授权失败,看具体报错信息,如验证码错误,密码错误等, [登陆时候,用户不存在/应用不存在,归位此类,方便前端判断]
  14. public static final Integer NO_PERMI = 1103; //无权限访问
  15. public static final Integer INVALID_TOKEN = 1104;//被踢了 ,账号在别处登陆
  16. /**
  17. * 1200多错误码
  18. */
  19. public static final Integer ERROR_PARA = 1200;//错误参数等
  20. public static final Integer FAILED_RESP = 1201;//返回出错
  21. }