CommonEnum.java 1.06 KB
Newer Older
yuquan.zhu committed
1 2 3 4 5 6 7 8 9 10 11 12 13
package cn.timer.api.config.enums;

import lombok.Getter;

/**
 * @author Tang
 * @version V1.0
 * @Description: 枚举通用类
 * @date 2019 11-12
 */
@Getter
public enum CommonEnum {

14
	NULL_STR(0,""),
yuquan.zhu committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

	/**
	 * 0 关闭
	 */
	U_STS_OFF(0, "关闭"),

	/**
	 * 1 开启
	 */
	U_STS_ON(1, "开启"),
	
	/**
	 * 顶级部门上级
	 */
	DEPT_UP_ID(0, "顶级部门上级"),

	/**
	 * 顶级部门上级
	 */
	DEPT_TYPE_ON(0, "打开"),
	
	/**
	 * 企业认证状态
	 */
39 40 41 42
	AUTH_TYPE_NOHADREVIEW(0,"未认证"),
	AUTH_TYPE_UNDEREVIEW(1,"认证中"),
	AUTH_TYPE_SUCCESS(2,"认证成功"),
	AUTH_TYPE_FAILURE(3,"认证失败"),
yuquan.zhu committed
43
	
44 45 46 47 48 49 50 51 52 53 54 55
	/**
	 * 企业系统版本试用
	 */
	LEVEL_PROBATION(0,"试用"),
	/**
	 * 企业系统版本标准
	 */
	LEVEL_STANDARD(1,"标准"),
	/**
	 * 企业系统版本专业
	 */
	LEVEL_PROFESSION(2,"专业"),
yuquan.zhu committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
	
	/**
	 * 顶级部门上级
	 */
	DEPT_TYPE_OFF(1,"关闭"),
	
	;

	private Integer type;

	private String desc;

	CommonEnum(Integer type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	public Integer getType() {
		return this.type;
	}
}