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
| package com.sinata.common.enums;
|
| import com.sinata.common.enums.base.enums.BaseEnum;
|
| /**
| * 公告消息类型枚举
| */
| public enum EnumNoticeMessageType implements BaseEnum {
|
| NOTICE(0,"公告"),
| ORDER_STATUS(1,"订单状态"),
| MERCHANT_REMIND(2,"商家提醒"),
| FEEDBACK_DEAL(3,"反馈处理"),
| REPORT_DEAL(4,"举报处理"),
| ENTRY_INFORMATION(5,"入驻信息"),
| CONTRIBUTION_DIVIDENDS(6,"贡献值分红"),
| DIVIDEND_STOCK_DIVIDENDS(7,"分红股分红"),
| CITY_AGENT_DIVIDENDS(8,"城市代理分红"),
| ;
|
| public final int index;
| public final String mark;
|
| EnumNoticeMessageType(int index, String mark) {
| this.index = index;
| this.mark = mark;
| }
|
| public int getIndex() {
| return index;
| }
|
| public String getMark() {
| return mark;
| }
|
| /**
| * 通过index查询说明
| */
| public static String getMarkByIndex(Integer index) {
| if (index != null) {
| for (EnumNoticeMessageType obj : values()) {
| if (obj.getIndex() == index) {
| return obj.getMark();
| }
| }
| }
| return null;
| }
| }
|
|