mirror of
https://gitee.com/dromara/dax-pay
synced 2026-08-10 14:56:06 +08:00
refactor(payment): 常规支付服务 PayService 重命名为 NormalPayService
This commit is contained in:
@@ -23,12 +23,12 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/// # 支付服务类
|
||||
/// # 常规支付服务类
|
||||
///
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class PayService {
|
||||
public class NormalPayService {
|
||||
|
||||
private final PayAssistService payAssistService;
|
||||
private final PayUniHandleService payUniHandleService;
|
||||
@@ -9,7 +9,7 @@ import cn.daxpay.open.payment.common.util.DaxRes;
|
||||
import cn.daxpay.open.payment.common.service.MerchantPermissionService;
|
||||
import cn.daxpay.open.payment.old.pay.anno.PaymentVerify;
|
||||
import cn.daxpay.open.payment.pay.service.PayCloseService;
|
||||
import cn.daxpay.open.payment.pay.service.PayService;
|
||||
import cn.daxpay.open.payment.pay.service.NormalPayService;
|
||||
import cn.daxpay.open.payment.unipay.param.trade.pay.PayCloseParam;
|
||||
import cn.daxpay.open.payment.unipay.param.trade.pay.PayParam;
|
||||
import cn.daxpay.open.payment.unipay.result.trade.pay.PayResult;
|
||||
@@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("/unipay")
|
||||
@RequiredArgsConstructor
|
||||
public class UniTradeController {
|
||||
private final PayService payService;
|
||||
private final NormalPayService normalPayService;
|
||||
private final PayCloseService payCloseService;
|
||||
private final MerchantPermissionService permConfigService;
|
||||
|
||||
@@ -42,7 +42,7 @@ public class UniTradeController {
|
||||
// 订单: 该商户没有此接口的权限
|
||||
throw new OperationFailException(CommonCode.FAIL_CODE, "error.payment.order.merchantNoApiPermission");
|
||||
}
|
||||
return DaxRes.ok(payService.pay(payParam));
|
||||
return DaxRes.ok(normalPayService.pay(payParam));
|
||||
}
|
||||
|
||||
@Operation(summary = "关闭和撤销接口")
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
/// # 支付通道路由服务
|
||||
///
|
||||
/// 实现 PayRouteFacade,供 PayService 在支付流程中调用。
|
||||
/// 实现 PayRouteFacade,供 NormalPayService 在支付流程中调用。
|
||||
/// 已指定 product 则跳过;否则按 appId 加载策略,经基础/场景模式匹配后回填 product。
|
||||
/// 调用方需保证 appId 已解析完毕。
|
||||
@Slf4j
|
||||
|
||||
Reference in New Issue
Block a user