Air
2024-11-04 29c405353029f033e187e8dc033b93385365ee43
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.nova.sankuai.domain.enums.customerinfo;
 
import io.swagger.annotations.ApiModel;
 
/**
 * @author weikangdi
 * 客户资产信息-沟通结果星级
 */
@ApiModel(value = "客户资产信息-沟通结果星级")
public enum CommunicationStarRatingEnum {
    ZERO_STARS(0, "零星"),
    ONE_STARS(1, "一星"),
    TWO_STARS(2, "二星"),
    THREE_STARS(3, "三星"),
    FOUR_STARS(4, "四星"),
    FIVE_STARS(5, "五星");
 
    private Integer code;
    private String value;
 
    CommunicationStarRatingEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
 
    public static String value(int code) {
        for (CommunicationStarRatingEnum m : CommunicationStarRatingEnum.values()) {
            if (m.getCode() == code) {
                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;
    }
}