feat 转账演示联调

This commit is contained in:
DaxPay
2024-06-24 16:23:12 +08:00
parent d42da8fd62
commit 53808352fb
3 changed files with 11 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
- [x] 增加转账接口功能
- [x] 转账订单前端页面
- [ ] DEMO增加转账演示功能
- [x] DEMO增加获取OpenID功能
- [x] 手动发起分账重试参数修正
- [x] 细分各种支付异常类和编码(部分+初版)
- [x] 支付宝支持JSAPI方式支付
@@ -42,6 +43,7 @@
- [x] 支付和退款达到终态不可以再回退回之前的状态
- [x] 修复支付关闭参数名称不正确问题
- [X] 去除消息通知模块
- [x] 优化认证授权地址配置, 拆分为支持单独配置
- [x] 退款回调消息字段不一致导致验签不通过问题
2.0.9: 消息通知改版和系统优化

View File

@@ -4,8 +4,10 @@ import cn.bootx.platform.common.core.rest.PageResult;
import cn.bootx.platform.common.core.rest.Res;
import cn.bootx.platform.common.core.rest.ResResult;
import cn.bootx.platform.common.core.rest.param.PageParam;
import cn.bootx.platform.common.core.util.ValidationUtil;
import cn.daxpay.single.core.code.PaymentApiCode;
import cn.daxpay.single.core.param.payment.transfer.TransferParam;
import cn.daxpay.single.core.result.transfer.TransferResult;
import cn.daxpay.single.service.annotation.InitPaymentContext;
import cn.daxpay.single.service.core.order.transfer.service.TransferOrderQueryService;
import cn.daxpay.single.service.core.payment.transfer.service.TransferService;
@@ -16,6 +18,8 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDateTime;
/**
* 转账订单控制器
* @author xxm
@@ -58,9 +62,10 @@ public class TransferOrderController {
@InitPaymentContext(PaymentApiCode.TRANSFER)
@Operation(summary = "手动发起转账")
@PostMapping("/transfer")
public ResResult<Void> transfer(@RequestBody TransferParam param){
transferService.transfer(param);
return Res.ok();
public ResResult<TransferResult> transfer(@RequestBody TransferParam param){
param.setReqTime(LocalDateTime.now());
ValidationUtil.validateParam(param);
return Res.ok(transferService.transfer(param));
}
@InitPaymentContext(PaymentApiCode.TRANSFER)

View File

@@ -41,7 +41,7 @@ public class TransferParam extends PaymentCommonParam {
/** 转账金额 */
@NotNull(message = "转账金额必填")
@Min(value = 1, message = "转账金额至少为0.01")
@Min(value = 1, message = "转账金额至少为0.01")
@Schema(description = "转账金额")
private Integer amount;