feat 分账前后端调试

This commit is contained in:
xxm1995
2024-04-16 20:47:24 +08:00
parent 22d1dd5bf3
commit b3594d08fb
35 changed files with 519 additions and 336 deletions

View File

@@ -0,0 +1,22 @@
package cn.bootx.platform.daxpay.code;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 支付分账明细处理结果
* @author xxm
* @since 2024/4/16
*/
@Getter
@AllArgsConstructor
public enum AllocationDetailResultEnum {
PENDING("pending", "待分账"),
SUCCESS("success", "分账成功"),
FAIL("fail", "分账失败"),
;
private final String code;
private final String name;
}

View File

@@ -0,0 +1,23 @@
package cn.bootx.platform.daxpay.code;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 支付分账订单处理结果
* @author xxm
* @since 2024/4/16
*/
@Getter
@AllArgsConstructor
public enum AllocationOrderResultEnum {
ALL_PENDING("all_pending", "全部成功"),
ALL_SUCCESS("all_success", "全部成功"),
PART_SUCCESS("part_success", "部分成功"),
ALL_FAILED("all_failed", "全部失败"),
;
private final String code;
private final String name;
}

View File

@@ -0,0 +1,25 @@
package cn.bootx.platform.daxpay.code;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 分账状态枚举
* @author xxm
* @since 2024/4/7
*/
@Getter
@AllArgsConstructor
public enum AllocationOrderStatusEnum {
ALLOCATION_PROCESSING("allocation_processing", "分账处理中"),
ALLOCATION_END("allocation_end", "分账完成"),
ALLOCATION_FAILED("allocation_failed", "分账失败"),
FINISH("finish", "完结"),
FINISH_FAILED("finish_failed", "完结失败"),
;
final String code;
final String name;
}

View File

@@ -1,29 +0,0 @@
package cn.bootx.platform.daxpay.code;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 分账状态枚举
* @author xxm
* @since 2024/4/7
*/
@Getter
@AllArgsConstructor
public enum AllocationStatusEnum {
// 待分账
WAITING("waiting", "待分账"),
PARTIAL_PROCESSING("partial_processing", "分账处理中"),
PARTIAL_SUCCESS("partial_success", "部分分账完成"),
FINISH_PROCESSING("finish_processing", "分账完结处理中"),
FINISH_SUCCESS("finish_success", "分账完成"),
PARTIAL_FAILED("partial_failed", "部分分账完成"),
FINISH_FAILED("finish_failed", "分账失败"),
CLOSED("closed", "分账关闭"),
UNKNOWN("unknown", "分账状态未知");
final String code;
final String name;
}

View File

@@ -0,0 +1,20 @@
package cn.bootx.platform.daxpay.code;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 支付订单分账状态
* @author xxm
* @since 2024/4/16
*/
@Getter
@AllArgsConstructor
public enum PayOrderAllocationStatusEnum {
WAITING("waiting", "待分账"),
ALLOCATION("allocation", "已分账"),
;
final String code;
final String name;
}

View File

@@ -1,6 +1,6 @@
package cn.bootx.platform.daxpay.result.pay;
import cn.bootx.platform.daxpay.code.AllocationStatusEnum;
import cn.bootx.platform.daxpay.code.AllocationOrderStatusEnum;
import cn.bootx.platform.daxpay.code.RefundSyncStatusEnum;
import cn.bootx.platform.daxpay.code.PaySyncStatusEnum;
import cn.bootx.platform.daxpay.result.CommonResult;
@@ -26,7 +26,7 @@ public class SyncResult extends CommonResult {
* 支付网关同步状态
* @see PaySyncStatusEnum
* @see RefundSyncStatusEnum
* @see AllocationStatusEnum
* @see AllocationOrderStatusEnum
*/
@Schema(description = "支付网关同步状态")
private String gatewayStatus = FAIL.getCode();