将支付成功、退款成功的 MQ 消费逻辑进行迁移

This commit is contained in:
YunaiV
2020-11-30 01:28:30 +08:00
parent 63b4c27c8f
commit 04f53da686
15 changed files with 163 additions and 433 deletions

View File

@@ -0,0 +1,30 @@
package cn.iocoder.mall.payservice.enums.refund;
import lombok.Getter;
/**
* 支付退款状态枚举
*/
@Getter
public enum PayRefundStatus {
WAITING(1, "处理中"),
SUCCESS(2, "成功"),
FAILURE(3, "失败"), // 例如说,支付单超时
;
/**
* 状态
*/
private final Integer value;
/**
* 名字
*/
private final String name;
PayRefundStatus(Integer value, String name) {
this.value = value;
this.name = name;
}
}