From 18118188e370e45f6e1bd43e5b33fd4c4a156655 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Mon, 08 Apr 2024 16:01:44 +0800
Subject: [PATCH] 微信支付+获取用户的openid

---
 src/main/java/org/springblade/modules/pay/service/IWxPayService.java |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/springblade/modules/pay/service/IWxPayService.java b/src/main/java/org/springblade/modules/pay/service/IWxPayService.java
index bac42f4..dc12258 100644
--- a/src/main/java/org/springblade/modules/pay/service/IWxPayService.java
+++ b/src/main/java/org/springblade/modules/pay/service/IWxPayService.java
@@ -3,20 +3,35 @@
 import com.baomidou.mybatisplus.extension.service.IService;
 import org.springblade.modules.pay.entity.WxPayInfo;
 
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.security.GeneralSecurityException;
 import java.util.Map;
 
 public interface IWxPayService extends IService<WxPayInfo> {
 
-	/**
-	 * 获取openId
-	 * @param code
-	 * @return
-	 */
-    Object getOpenId(String code);
-
-	Map<String, String> jsapiPay(Long productId) throws IOException;
+	Object getOpenId(String code);
 
 	void processOrder(Map<String, Object> bodyMap) throws GeneralSecurityException;
+
+	void cancelOrder(String orderNo) throws Exception;
+
+	String queryOrder(String orderNo) throws Exception;
+
+	void checkOrderStatus(String orderNo) throws Exception;
+
+	void refund(String orderNo, String reason) throws Exception;
+
+	String queryRefund(String orderNo) throws Exception;
+
+	void checkRefundStatus(String refundNo) throws Exception;
+
+	void processRefund(Map<String, Object> bodyMap) throws Exception;
+
+	Map<String, String> jsapiPay(Long productId) throws IOException, Exception;
+
+	String refundsNotify(HttpServletRequest request, HttpServletResponse response);
+
+	String nativeNotify(HttpServletRequest request, HttpServletResponse response);
 }

--
Gitblit v1.9.3