add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
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
package com.dobbinsoft.fw.pay.enums;
 
/**
 * ClassName: PayChannel
 * Description: 支付渠道类型枚举
 *
 * @author: e-weichaozheng
 * @date: 2021-04-20
 */
public enum PayChannelType {
    WX("WX", "微信支付"),
    ALI("ALI", "支付宝"),
    YSF("YSF", "云闪付"),
    OFFLINE("OFFLINE", "线下支付"),
    ;
 
    private String code;
    private String msg;
 
    PayChannelType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getMsg() {
        return this.msg;
    }
 
    public static PayChannelType getByCode(String code) {
        for (PayChannelType type : values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }
 
}