linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
src/main/java/org/springblade/modules/pay/service/IWxPayService.java
@@ -3,12 +3,34 @@
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);
   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;
   String refundsNotify(HttpServletRequest request, HttpServletResponse response);
   String nativeNotify(HttpServletRequest request, HttpServletResponse response);
}