feat: 退款审批
This commit is contained in:
@@ -22,6 +22,10 @@ public class ServiceNameConstants
|
||||
*/
|
||||
public static final String FILE_SERVICE = "wfc-file";
|
||||
|
||||
/**
|
||||
* 支付服务的serviceid
|
||||
*/
|
||||
public static final String PAYMENT_SERVICE = "wfc-payment";
|
||||
|
||||
/**
|
||||
* 用户平台模块的 service_id
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package org.wfc.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @description: 订单状态枚举
|
||||
* @author: cyc
|
||||
* @since: 2024-12-23
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum OrderStatusEnum {
|
||||
|
||||
UNPAID(0, "未支付"),
|
||||
PAID(1, "已支付"),
|
||||
CANCELLED(2, "已取消"),
|
||||
REFUNDING(3, "退款中"),
|
||||
REFUNDED(4, "已退款"),
|
||||
;
|
||||
private final Integer code;
|
||||
private final String desc;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package org.wfc.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @description: 支付方式枚举
|
||||
* @author: cyc
|
||||
* @since: 2025-03-27
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum PaymentTypeEnum {
|
||||
|
||||
BALANCE(0, "余额"),
|
||||
ALIPAY(1, "支付宝"),
|
||||
WX_PAY(2, "微信");
|
||||
|
||||
private final Integer code;
|
||||
private final String desc;
|
||||
|
||||
public static PaymentTypeEnum getByCode(Integer code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (PaymentTypeEnum typeEnum : PaymentTypeEnum.values()) {
|
||||
if (typeEnum.getCode().equals(code)) {
|
||||
return typeEnum;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.wfc.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @description: 退款状态枚举
|
||||
* @author: cyc
|
||||
* @since: 2025-03-26
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum RefundStatusEnum {
|
||||
|
||||
PENDING(0, "待审批"),
|
||||
PASSED(1, "已通过"),
|
||||
REJECTED(2, "已驳回"),
|
||||
EXPIRED(3, "已过期");
|
||||
|
||||
private final Integer code;
|
||||
private final String desc;
|
||||
}
|
||||
Reference in New Issue
Block a user