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
| /**
| * 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;
| }
|
| }
|
|