“djh”
2024-12-05 eee41a5fb58e6547a43929430f4b72908119db6e
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
53
54
package com.gkhy.testFourierSpecialGasMonitor.domain.account.enums;
 
import java.util.HashMap;
import java.util.Map;
 
public enum UserIdTypeEnum {
    TYPE_JUMIN_SHENFENZHENG((byte)1,"居民身份证"),
    ;
 
    private Byte type;
    private String dec;
 
    UserIdTypeEnum(Byte type, String dec) {
        this.type = type;
        this.dec = dec;
    }
 
    public Byte getType() {
        return type;
    }
 
    public void setType(Byte type) {
        this.type = type;
    }
 
    public static Map<Byte, UserIdTypeEnum> getMap() {
        return map;
    }
 
    public static void setMap(Map<Byte, UserIdTypeEnum> map) {
        UserIdTypeEnum.map = map;
    }
 
    public String getDec() {
        return dec;
    }
 
    public void setDec(String dec) {
        this.dec = dec;
    }
 
    static Map<Byte, UserIdTypeEnum> map;
 
    static {
        map = new HashMap<>();
        for(UserIdTypeEnum e : UserIdTypeEnum.values()){
            map.put(e.type,e);
        }
    }
 
    public static UserIdTypeEnum prase(Byte type){
        return map.get(type);
    }
}