package com.njcn.pojo.advanced;

/**
 * @author njcn
 * 定义枚举列举返回的数据状态
 */
public enum EnumCode {
	ABNORMAL(-1, "后台业务抛出异常,具体查看log日志!"),
	SUCCESS(0, "后台业务正常!"),
	PARAMETERABNORMAL(1,"前台参数解析异常!");
	
	private Integer code;
	private String description;

	private EnumCode(Integer code, String description) {
		this.code = code;
		this.description = description;
	}

	public Integer getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}
}
