1
Sunshine
2024-11-05 1ec0f818f512186b3af02637906632264fe97119
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
package com.nova.sankuai.domain.enums.capitalInfo;
 
import io.swagger.annotations.ApiModel;
 
/**
 * @Author Lilinhong
 * @Date 2022/7/26 9:23
 */
@ApiModel(value = "弹窗统计类型")
public enum NotificationEnum {
 
    ACCESS_POPUP_HOME(1, "统计首页弹窗"),
    ACCESS_POPUP_RETURN(2, "统计返回弹窗"),
    ACCESS_CLICKED_HOME(3, "统计用户点击返回弹窗的总次数"),
    ACCESS_CLICKED_RETURN(4, "统计用户点击返回弹窗的总次数"),
    ;
 
    private Integer code;
    private String value;
 
    NotificationEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
 
    public static String value(Integer code) {
        if (code != null) {
            for (CapitalTypeEnum m : CapitalTypeEnum.values()) {
                if (m.getCode() == code.intValue()) {
                    return m.getValue();
                }
            }
        }
        return null;
    }
 
    public Integer getCode() {
        return code;
    }
 
    public void setCode(Integer code) {
        this.code = code;
    }
 
    public String getValue() {
        return value;
    }
 
    public void setValue(String value) {
        this.value = value;
    }
}