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
53
54
55
56
57
58
59
package com.nova.sankuai.domain.enums.vipservice;
 
import io.swagger.annotations.ApiModel;
 
/**
 * @author weikangdi
 * @create 2022/3/2
 */
@ApiModel(value = "系统支付方式枚举")
public enum PayTypeEnum {
 
    LIE_XIONG(0, "烈熊支付"),
    YIN_SHENG(1, "银盛支付"),
    ALIPAY_SDK(2, "支付宝SDK集成支付"),
    WEI_YA(3, "纬雅权益支付"),
    ALIPAY_H5(4, "支付宝H5支付"),
    YIN_SHENG_FAST_PROTOCOL(5, "银盛快捷协议支付"),
    SHAN_TAI_FAST_PROTOCOL(6, "闪态快捷协议支付"),
    BAOFU_PROTOCOL(7, "宝付快捷协议支付"),
    HUIFUBAO_PROTOCOL(8, "汇付宝快捷协议支付")
    ;
 
    private Integer code;
    private String value;
 
    PayTypeEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
 
    public static String value(Integer code) {
        if (code != null) {
            for (PayTypeEnum m : PayTypeEnum.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;
    }
 
}