CommonEnum.java 1.04 KB
Newer Older
yuquan.zhu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
package cn.timer.api.config.enums;

import lombok.Getter;

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

	/**
	 * 0 超管理员
	 */
	U_TYPE_ADMIN(0, "超管理员"),

	/**
	 * 1 子管理
	 */
	U_TYPE_C_ADMIN(1, "子管理"),

	/**
	 * 2 普通员工
	 */
	U_TYPE_EMP(2, "普通员工"),

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

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

	/**
	 * 顶级部门上级
	 */
	DEPT_TYPE_ON(0, "打开"),
	
	/**
	 * 企业认证状态
	 */
	AUTH_TYPE_UNDEREVIEW(1,"审核中"),
	AUTH_TYPE_FAILURE(2,"审核失败"),
	AUTH_TYPE_SUCCESS(3,"审核成功"),
	
	
	/**
	 * 顶级部门上级
	 */
	DEPT_TYPE_OFF(1,"关闭"),
	
	/**
	 * 审批组-其他
	 */
	SPZ_OTHER(999999,"其他")
	;

	private Integer type;

	private String desc;

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

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