支付功能

This commit is contained in:
TinyAnts
2023-03-21 14:25:09 +08:00
parent 3456eb65d4
commit 3fc536eb1c
2 changed files with 55 additions and 15 deletions

View File

@@ -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;
}
}