mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-09 22:09:05 +00:00
ref 支付网关方式重构
This commit is contained in:
70
daxpay-single/daxpay-single-admin/pom.xml
Normal file
70
daxpay-single/daxpay-single-admin/pom.xml
Normal file
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>daxpay-single</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>daxpay-single-admin</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!-- 业务服务模块 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>daxpay-single-service</artifactId>
|
||||
<version>${dax.version}</version>
|
||||
</dependency>
|
||||
<!-- 安全认证 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>service-iam</artifactId>
|
||||
<version>${bootx-platform.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--若使用redisTemplate作为分布式锁底层,则需要引入-->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>lock4j-redis-template-spring-boot-starter</artifactId>
|
||||
<version>${lock4j.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 基础API -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>service-baseapi</artifactId>
|
||||
<version>${bootx-platform.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 安全认证 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>service-iam</artifactId>
|
||||
<version>${bootx-platform.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 消息通知 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>service-notice</artifactId>
|
||||
<version>${bootx-platform.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 文件管理 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>common-starter-file</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- websocket模块 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>common-websocket</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
</project>
|
@@ -0,0 +1,15 @@
|
||||
package cn.bootx.platform.daxpay;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
||||
|
||||
/**
|
||||
* 管理端
|
||||
* @author xxm
|
||||
* @since 2023/12/14
|
||||
*/
|
||||
@ConfigurationPropertiesScan
|
||||
@MapperScan(annotationClass = Mapper.class)
|
||||
public class DaxPaySingleGatewayApp {
|
||||
}
|
@@ -0,0 +1,65 @@
|
||||
package cn.bootx.platform.daxpay.openapi.controller;
|
||||
|
||||
import cn.bootx.platform.common.core.annotation.IgnoreAuth;
|
||||
import cn.bootx.platform.common.core.rest.Res;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 统一支付接口
|
||||
* @author xxm
|
||||
* @since 2023/12/15
|
||||
*/
|
||||
@IgnoreAuth
|
||||
@Tag(name = "统一支付接口")
|
||||
@RestController
|
||||
@RequestMapping("/unipay")
|
||||
@RequiredArgsConstructor
|
||||
public class UniPayController {
|
||||
|
||||
@Operation(summary = "统一下单")
|
||||
@PostMapping("/pay")
|
||||
public ResResult<Void> pay(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "简单下单")
|
||||
@PostMapping("/simplePay")
|
||||
public ResResult<Void> simplePay(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "订单撤销")
|
||||
@PostMapping("/cancel")
|
||||
public ResResult<Void> cancel(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "订单关闭")
|
||||
@PostMapping("/close")
|
||||
public ResResult<Void> close(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "统一退款")
|
||||
@PostMapping("/refund")
|
||||
public ResResult<Void> refund(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "简单退款")
|
||||
@PostMapping("/simpleRefund")
|
||||
public ResResult<Void> simpleRefund(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "支付状态同步")
|
||||
@PostMapping("/syncPay")
|
||||
public ResResult<Void> syncPay(){
|
||||
return Res.ok();
|
||||
}
|
||||
@Operation(summary = "退款状态同步")
|
||||
@PostMapping("/syncRefund")
|
||||
public ResResult<Void> syncRefund(){
|
||||
return Res.ok();
|
||||
}
|
||||
}
|
@@ -0,0 +1 @@
|
||||
cn.bootx.platform.daxpay.DaxPaySingleGatewayApp
|
Reference in New Issue
Block a user