
com.github.fosin.cdp.mvc.result.ResultCode Maven / Gradle / Ivy
package com.github.fosin.cdp.mvc.result;
/**
* @author fosin
*/
public enum ResultCode {
/**
* 成功标志
*/
SUCCESS(1, "success"),
/**
* 失败标志
*/
FAILURE(-1, "failure"),
/**
* 既不成功也不失败标志
*/
NO_ACTION(100,"no_action"),
/**
* 无效的令牌
*/
INVALID_TOKEN(50008,"invalid_token"),
/**
* 用户在其他地点登录
*/
RELOGIN(500012,"relogin"),
/**
* 无效的令牌
*/
EXPIRED_TOKEN(50008,"expired_token");
/**
* 提示消息
*/
private String msg;
/**
* 状态码
*/
private int code;
ResultCode(int code, String msg) {
this.code = code;
this.msg = msg;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy