feat: 新增支付宝分账和微信服务

This commit is contained in:
bootx
2024-12-09 22:34:15 +08:00
parent 68ec92a00e
commit 181993c4d3
19 changed files with 439 additions and 36 deletions

View File

@@ -2,6 +2,7 @@ package org.dromara.daxpay.service.bo.allocation;
import lombok.Data;
import lombok.experimental.Accessors;
import org.dromara.daxpay.core.enums.AllocationStatusEnum;
/**
* 分账操作结果
@@ -14,4 +15,9 @@ public class AllocStartResultBo {
/** 通道分账号 */
private String outAllocNo;
/**
* 分账状态
* @see AllocationStatusEnum
*/
private String status;
}

View File

@@ -18,25 +18,27 @@ import java.util.List;
@Getter
@Setter
public abstract class AbsAllocationStrategy implements PaymentStrategy{
private AllocOrder transaction;
private AllocOrder order;
private List<AllocDetail> details;
/**
* 初始化参数
*/
public void initParam(AllocOrder transaction, List<AllocDetail> details) {
this.transaction = transaction;
public void initParam(AllocOrder order, List<AllocDetail> details) {
this.order = order;
this.details = details;
}
/**
* 操作前处理, 校验和初始化支付配置
*/
public abstract void doBeforeHandler();
public void doBeforeHandler(){
};
/**
* 分账启动
* 开始分账
*/
public abstract AllocStartResultBo start();