ResultStatus.java 869 B

1234567891011121314151617181920212223242526
  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 ERROR_TOKEN = 1100; //token有误,错误的token 或者 过期的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. /**
  16. * 1200多错误码
  17. */
  18. public static final Integer ERROR_PARA = 1200;//错误参数等
  19. public static final Integer FAILED_RESP = 1201;//返回出错
  20. }