Constant.java 876 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
package com.govmade.common.utils;

/**
 * 常量类
 * 
 * @author Fred
 * @email fangtaosh@qq.com
 * @date 2018年8月3日
 */
public class Constant {
Fred's avatar
Fred committed
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
	/** 超级管理员ID */
	public static final int SUPER_ADMIN = 1;

	/**
	 * 菜单类型
	 * 
	 * @author Fred
	 * @email fangtaosh@qq.com
	 * @date 2018年8月3日
	 */
	public enum MenuType {
		/**
		 * 目录
		 */
		CATALOG(0),
		/**
		 * 菜单
		 */
		MENU(1),
		/**
		 * 按钮
		 */
		BUTTON(2);

Fred's avatar
Fred committed
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
		private Integer value;

		MenuType(Integer value) {
			this.value = value;
		}

		public Integer getValue() {
			return value;
		}
	}

	/**
	 * 删除状态
	 * 
	 */
	public enum DeleteState {
		/**
		 * 删除
		 */
		DELETE(0),
		/**
		 * 正常
		 */
		NORMAL(1);

		private Integer value;
62

Fred's avatar
Fred committed
63
		private DeleteState(Integer value) {
64 65 66 67 68 69 70 71
			this.value = value;
		}

		public int getValue() {
			return value;
		}
	}
}