cn.cliveyuan.robin.base.common.ApiErrorCode Maven / Gradle / Ivy
package cn.cliveyuan.robin.base.common;
/**
* @author Clive Yuan
* @date 2020/12/24
*/
public enum ApiErrorCode {
/**
* 成功
*/
SUCCESS(0, "success"),
/**
* 失败
*/
FAIL(-1, "fail");
private final int code;
private final String msg;
ApiErrorCode(int code, String msg) {
this.code = code;
this.msg = msg;
}
public int getCode() {
return code;
}
public String getMsg() {
return msg;
}
}