package com.ruoyi.payment.api.feignClient; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.payment.api.factory.WxPaymentFallbackFactory; import com.ruoyi.payment.api.model.WxPaymentRefundModel; import com.ruoyi.payment.api.vo.NotifyV3PayDecodeRespBody; import com.ruoyi.payment.api.vo.PaymentOrder; import com.ruoyi.payment.api.vo.WxRefundNotifyResp; import io.swagger.annotations.ApiOperation; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import javax.servlet.http.HttpServletRequest; import java.util.Map; /** * 充电订单服务 * @author ruoyi */ @FeignClient(contextId = "WxPaymentClient", value = ServiceNameConstants.PAYMENT_SERVICE, fallbackFactory = WxPaymentFallbackFactory.class) public interface WxPaymentClient { /** * 查询支付订单信息 * @param orderId * @return */ @PostMapping("/wx/query/queryOrderInfo") R queryOrderInfo(@RequestParam("orderId") String orderId); /** * 订单支付 * @param paymentOrder * @return */ @PostMapping("/wx/orderPay") R> orderPay(@RequestBody PaymentOrder paymentOrder); /** * 关闭订单 * @param outTradeNo */ @PostMapping("/wx/pay/close") void close(String outTradeNo); @ApiOperation("订单退款") @PostMapping(value = "/wx/refundOrderR") public R refundOrderR(@RequestBody WxPaymentRefundModel model); }