初始化 pay 的表(支付部分,不包括退款等)

This commit is contained in:
YunaiV
2019-03-12 00:43:35 +08:00
parent 3526a49945
commit af60c18509
8 changed files with 421 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
package cn.iocoder.mall.pay.api.constant;
/**
* 支付通道
*/
public enum PayChannel {
WEIXIN_APP(100, "wx", "微信 App 支付"),
WEIXIN_PUB(100, "wx", "微信 JS API 支付"),
ALIPAY(200, "alipay", "微信支付");
/**
* 渠道编号
*/
private Integer id;
/**
* 编码
*/
private String code;
/**
* 渠道名
*/
private String name;
PayChannel(Integer id, String code, String name) {
this.id = id;
this.code = code;
this.name = name;
}
public Integer getId() {
return id;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
}