程序包 com.walker.web

Enum Class ResponseCode

java.lang.Object
java.lang.Enum<ResponseCode>
com.walker.web.ResponseCode
所有已实现的接口:
Serializable, Comparable<ResponseCode>, Constable

public enum ResponseCode extends Enum<ResponseCode>
响应代码定义。
作者:
时克英
  • 枚举常量详细资料

    • EXCEPTION

      public static final ResponseCode EXCEPTION
      对后台普通异常,前端仅返回一个提示,而且不会弹出到界面,主要用于接口反馈。
    • SUCCESS

      public static final ResponseCode SUCCESS
    • ERROR

      public static final ResponseCode ERROR
    • RE_LOGIN

      public static final ResponseCode RE_LOGIN
    • TOKEN_ACQUIRED

      public static final ResponseCode TOKEN_ACQUIRED
    • TOKEN_REFRESH

      public static final ResponseCode TOKEN_REFRESH
    • PARAM_NOT_VALID

      public static final ResponseCode PARAM_NOT_VALID
    • PARAM_IS_BLANK

      public static final ResponseCode PARAM_IS_BLANK
    • PARAM_TYPE_ERROR

      public static final ResponseCode PARAM_TYPE_ERROR
    • PARAM_NOT_COMPLETE

      public static final ResponseCode PARAM_NOT_COMPLETE
    • USER_NOT_LOGIN

      public static final ResponseCode USER_NOT_LOGIN
    • USER_ACCOUNT_EXPIRED

      public static final ResponseCode USER_ACCOUNT_EXPIRED
    • USER_CREDENTIALS_ERROR

      public static final ResponseCode USER_CREDENTIALS_ERROR
    • USER_CREDENTIALS_EXPIRED

      public static final ResponseCode USER_CREDENTIALS_EXPIRED
    • USER_ACCOUNT_DISABLE

      public static final ResponseCode USER_ACCOUNT_DISABLE
    • USER_ACCOUNT_LOCKED

      public static final ResponseCode USER_ACCOUNT_LOCKED
    • USER_ACCOUNT_NOT_EXIST

      public static final ResponseCode USER_ACCOUNT_NOT_EXIST
    • USER_ACCOUNT_ALREADY_EXIST

      public static final ResponseCode USER_ACCOUNT_ALREADY_EXIST
    • USER_ACCOUNT_USE_BY_OTHERS

      public static final ResponseCode USER_ACCOUNT_USE_BY_OTHERS
    • NO_PERMISSION

      public static final ResponseCode NO_PERMISSION
    • NO_AUTHENTICATION

      public static final ResponseCode NO_AUTHENTICATION
  • 方法详细资料

    • values

      public static ResponseCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResponseCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getCode

      public Integer getCode()
    • setCode

      public void setCode(Integer code)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getMessageByCode

      public static String getMessageByCode(Integer code)
      根据code获取message
      参数:
      code -
      返回: