org.iartisan.runtime.api.code.ResCodeEnum Maven / Gradle / Ivy
package org.iartisan.runtime.api.code;
/**
*
* 系统返回码
*
* @author King
* @since 2017/11/6
*/
public enum ResCodeEnum {
succcess("000000", "成功"),
system_error("S00001", "系统异常"),
IllegalArgument("S00002", "参数异常"),
business_error("B00001", "业务异常");
ResCodeEnum(String code, String desc) {
this.code = code;
this.desc = desc;
}
private String code;
private String desc;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}