whyclxw
3 天以前 a4e25fc0cd113518980305af3c061892b1b24b14
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
package com.whyc.constant;
 
/**
 * 用户常量
 */
public enum UserConstant {
    ACCOUNT_TYPE_NORMAL("账号类型-长期",1),
    ACCOUNT_TYPE_TEMP("账号类型-临时",2),
 
    ACCOUNT_STATUS_ACTIVE("账号状态-激活",1),
    ACCOUNT_STATUS_HIBERNATE("账号状态-休眠",2),
    ACCOUNT_STATUS_LOCK("账号状态-锁定",3),
    ACCOUNT_STATUS_LOCK_FAIL("账号状态-锁定-连续失败",4),
    ACCOUNT_STATUS_CANCEL("账号状态-注销",0),
 
    ;
    private String label;
    private Integer value;
 
    UserConstant(String label, Integer value) {
        this.label = label;
        this.value = value;
    }
 
    public String getLabel() {
        return label;
    }
 
    public void setLabel(String label) {
        this.label = label;
    }
 
    public Integer getValue() {
        return value;
    }
 
    public void setValue(Integer value) {
        this.value = value;
    }
}