mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-09-09 16:18:10 +08:00
支付功能
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.mdd.common.enums;
|
||||
|
||||
/**
|
||||
* 支付枚举
|
||||
*/
|
||||
public enum PaymentEnum {
|
||||
|
||||
UN_PAID(1, "未支付"),
|
||||
OK_PAID(0, "已支付"),
|
||||
|
||||
WALLET_PAY(1, "余额支付"),
|
||||
WX_PAY(2, "微信支付"),
|
||||
ALI_PAY(3, "支付宝支付");
|
||||
|
||||
/**
|
||||
* 构造方法
|
||||
*/
|
||||
private final int code;
|
||||
private final String msg;
|
||||
PaymentEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取状态码
|
||||
*
|
||||
* @author fzr
|
||||
* @return Long
|
||||
*/
|
||||
public int getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提示
|
||||
*
|
||||
* @author fzr
|
||||
* @return String
|
||||
*/
|
||||
public String getMsg() {
|
||||
return this.msg;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user