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: PayPlatform
 * Description: TODO
 *
 * @author: e-weichaozheng
 * @date: 2021-04-20
 */
public enum PayPlatformType {
    APP(1, "APP"),
    WEB(2, "Web"),
    MP(3, "小程序"),
    MICRO(4, "当面付"),
    WAP(5, "手机网站支付(微信只支持微信浏览器)");
 
 
    private int code;
    private String msg;
 
    PayPlatformType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public int getCode() {
        return this.code;
    }
 
    public String getMsg() {
        return this.msg;
    }
 
    public static PayPlatformType getByCode(int code) {
        for (PayPlatformType type : values()) {
            if (type.getCode() == code) {
                return type;
            }
        }
        return null;
    }
}