【修改】 名称替换

This commit is contained in:
DESKTOP-932OMT8\REN
2025-05-21 17:28:26 +08:00
parent 3bd8a424ec
commit b5f18ba897
1212 changed files with 1262 additions and 1270 deletions

View File

@@ -9,7 +9,7 @@ import org.springframework.context.annotation.Bean;
/**
* 支付配置类
*
* @author 芋道源码
* @author 朋辰
*/
@AutoConfiguration
public class ExamPayAutoConfiguration {

View File

@@ -13,7 +13,7 @@ import java.util.Map;
/**
* 支付客户端,用于对接各支付渠道的 SDK实现发起支付、退款等功能
*
* @author 芋道源码
* @author 朋辰
*/
public interface PayClient {

View File

@@ -8,7 +8,7 @@ import jakarta.validation.Validator;
* 支付客户端的配置,本质是支付渠道的配置
* 每个不同的渠道,需要不同的配置,通过子类来定义
*
* @author 芋道源码
* @author 朋辰
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
// @JsonTypeInfo 注解的作用Jackson 多态

View File

@@ -5,7 +5,7 @@ import pc.exam.pp.framework.pay.core.enums.channel.PayChannelEnum;
/**
* 支付客户端的工厂接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface PayClientFactory {

View File

@@ -10,7 +10,7 @@ import java.time.LocalDateTime;
/**
* 渠道支付订单 Response DTO
*
* @author 芋道源码
* @author 朋辰
*/
@Data
public class PayOrderRespDTO {

View File

@@ -14,7 +14,7 @@ import java.util.Map;
/**
* 统一下单 Request DTO
*
* @author 芋道源码
* @author 朋辰
*/
@Data
public class PayOrderUnifiedReqDTO {

View File

@@ -23,7 +23,7 @@ import static pc.exam.pp.framework.common.util.json.JsonUtils.toJsonString;
/**
* 支付客户端的抽象类,提供模板方法,减少子类的冗余代码
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public abstract class AbstractPayClient<Config extends PayClientConfig> implements PayClient {

View File

@@ -20,7 +20,7 @@ import static pc.exam.pp.framework.pay.core.enums.channel.PayChannelEnum.*;
/**
* 支付客户端的工厂实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class PayClientFactoryImpl implements PayClientFactory {

View File

@@ -18,7 +18,7 @@ import lombok.extern.slf4j.Slf4j;
*
* // TODO 芋艿:未详细测试,因为手头没 App
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class AlipayAppPayClient extends AbstractAlipayPayClient {

View File

@@ -26,7 +26,7 @@ import static pc.exam.pp.framework.pay.core.client.impl.alipay.AlipayPayClientCo
*
* 文档:<a href="https://opendocs.alipay.com/open/194/105072">当面付</a>
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class AlipayBarPayClient extends AbstractAlipayPayClient {

View File

@@ -12,7 +12,7 @@ import jakarta.validation.constraints.NotNull;
* 支付宝的 PayClientConfig 实现类
* 属性主要来自 {@link com.alipay.api.AlipayConfig} 的必要属性
*
* @author 芋道源码
* @author 朋辰
*/
@Data
public class AlipayPayClientConfig implements PayClientConfig {

View File

@@ -19,7 +19,7 @@ import static pc.exam.pp.framework.pay.core.client.impl.alipay.AlipayPayClientCo
*
* 文档:<a href="https://opendocs.alipay.com/apis/02890k">扫码支付</a>
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class AlipayQrPayClient extends AbstractAlipayPayClient {

View File

@@ -16,7 +16,7 @@ import lombok.extern.slf4j.Slf4j;
*
* 文档:<a href="https://opendocs.alipay.com/apis/api_1/alipay.trade.wap.pay">手机网站支付接口</a>
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class AlipayWapPayClient extends AbstractAlipayPayClient {

View File

@@ -48,7 +48,7 @@ import static pc.exam.pp.framework.pay.core.client.impl.weixin.WxPayClientConfig
/**
* 微信支付抽象类,实现微信统一的接口、以及部分实现(退款)
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientConfig> {

View File

@@ -22,7 +22,7 @@ import static pc.exam.pp.framework.common.util.json.JsonUtils.toJsonString;
*
* // TODO 芋艿:未详细测试,因为手头没 App
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class WxAppPayClient extends AbstractWxPayClient {

View File

@@ -26,7 +26,7 @@ import static pc.exam.pp.framework.common.util.json.JsonUtils.toJsonString;
*
* 文档:<a href="https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_10&index=1">付款码支付</a>
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class WxBarPayClient extends AbstractWxPayClient {

View File

@@ -10,7 +10,7 @@ import lombok.Data;
* 微信支付的 PayClientConfig 实现类
* 属性主要来自 {@link com.github.binarywang.wxpay.config.WxPayConfig} 的必要属性
*
* @author 芋道源码
* @author 朋辰
*/
@Data
public class WxPayClientConfig implements PayClientConfig {

View File

@@ -23,7 +23,7 @@ import static pc.exam.pp.framework.common.util.json.JsonUtils.toJsonString;
*
* 文档:<a href="https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_1.shtml">JSAPI 下单</>
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class WxPubPayClient extends AbstractWxPayClient {

View File

@@ -11,7 +11,7 @@ import lombok.Getter;
/**
* 支付渠道的编码的枚举
*
* @author 芋道源码
* @author 朋辰
*/
@Getter
@AllArgsConstructor

View File

@@ -6,7 +6,7 @@ import lombok.Getter;
/**
* 支付 UI 展示模式
*
* @author 芋道源码
* @author 朋辰
*/
@Getter
@AllArgsConstructor

View File

@@ -8,7 +8,7 @@ import java.util.Objects;
/**
* 渠道的支付状态枚举
*
* @author 芋道源码
* @author 朋辰
*/
@Getter
@AllArgsConstructor

View File

@@ -19,7 +19,7 @@ import java.io.FileNotFoundException;
/**
* {@link PayClientFactoryImpl} 的集成测试
*
* @author 芋道源码
* @author 朋辰
*/
@Disabled
public class PayClientFactoryImplIntegrationTest {

View File

@@ -23,7 +23,7 @@ import static pc.exam.pp.framework.pay.core.client.impl.weixin.AbstractWxPayClie
/**
* {@link WxBarPayClient} 的集成测试,用于快速调试微信条码支付
*
* @author 芋道源码
* @author 朋辰
*/
@Disabled
public class WxBarPayClientIntegrationTest {

View File

@@ -20,7 +20,7 @@ import static pc.exam.pp.framework.pay.core.client.impl.weixin.AbstractWxPayClie
/**
* {@link WxNativePayClient} 的集成测试,用于快速调试微信扫码支付
*
* @author 芋道源码
* @author 朋辰
*/
@Disabled
public class WxNativePayClientIntegrationTest {