/** * Copyright (c) 2018 人人开源 All rights reserved. * * https://www.renren.io * * 版权所有,侵权必究! */ package com.zt.modules.sys.enums; import com.zt.common.annotation.Dictionary; import com.zt.common.constant.IDictionary; /** * 菜单类型枚举 * * @author hehz * @since 1.0.0 */ @Dictionary(type = "menu_type", name = "菜单类型") public enum MenuType implements IDictionary { PLATFORM(3, "平台"), SYSTEM(2, "系统"), MENU(0, "菜单"), BUTTON(1, "按钮"); private Integer value; private String name; MenuType(int value, String name) { this.value = value; this.name = name; } @Override public Integer getValue() { return value; } @Override public String getName() { return name; } }