code review:钱包实现

This commit is contained in:
YunaiV
2023-08-28 18:54:40 +08:00
parent 9077f14bae
commit 6132443d26
21 changed files with 220 additions and 138 deletions

View File

@@ -9,14 +9,17 @@ import cn.iocoder.yudao.framework.pay.core.client.impl.AbstractPayClient;
import java.util.Map;
// TODO @jason其它模块主要是无法 pay client 初始化存在问题,所以我感觉,是不是可以搞个 PayClientInitializer 接口。这样PayClientFactory 去 get 这个支付模式对应的 PayClientInitializer通过它来创建。具体注入的地方可以在 PayChannel init 方法那;
/**
* 代理支付 Client 的抽象类。用于支付 Client 由其它模块实现, 例如钱包支付
* 代理支付 Client 的抽象类。
*
* 用于支付 Client 由其它模块实现,例如钱包支付
*
* @author jason
*/
public abstract class DelegatePayClient<Config extends PayClientConfig> extends AbstractPayClient<PayClientConfig> {
public abstract class DelegatePayClient<Config extends PayClientConfig> extends AbstractPayClient<PayClientConfig> {
private final DelegatePayClient<Config> delegate;
private final DelegatePayClient<Config> delegate;
public DelegatePayClient(Long channelId, String channelCode, PayClientConfig config) {
super(channelId, channelCode, config);