1
sunshine
2024-11-05 92a9e53e82c74d36a72eb92f93777bbb16e2db73
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.customerinfo;
 
import io.swagger.annotations.ApiModel;
 
/**
 * 微粒贷额度信息
 *
 * @author weikangdi
 * @create 2021/12/8
 */
@ApiModel(value = "客户资产信息-微粒贷额度枚举")
public enum MicroLoanEnum {
 
    MicroLoanEnum_1(0, "无"),
    MicroLoanEnum_2(1, "0-2万"),
    MicroLoanEnum_3(2, "2万以上");
 
    private Integer code;
    private String value;
 
    MicroLoanEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
 
    public static String value(Integer code) {
        if (code != null) {
            for (MicroLoanEnum m : MicroLoanEnum.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;
    }
}