| | |
| | | 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.RefundReq; |
| | | import com.ruoyi.payment.api.model.RefundResp; |
| | | import com.ruoyi.payment.api.vo.AliPaymentReq; |
| | | import com.ruoyi.payment.api.vo.AliPaymentResp; |
| | | import com.ruoyi.payment.api.vo.AliQueryOrder; |
| | | 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; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/ali/payment") |
| | | R<AliPaymentResp> payment(AliPaymentReq req); |
| | | R<AliPaymentResp> payment(@RequestBody AliPaymentReq req); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/ali/query") |
| | | R<AliQueryOrder> query(String outTradeNo); |
| | | R<AliQueryOrder> query(@RequestParam("outTradeNo") String outTradeNo); |
| | | |
| | | /** |
| | | * 关闭订单 |
| | | * @param outTradeNo |
| | | */ |
| | | @PostMapping("/ali/close") |
| | | void close(String outTradeNo); |
| | | void close(@RequestParam("outTradeNo") String outTradeNo); |
| | | /** |
| | | * 后台退款 远程调用 |
| | | */ |
| | | @PostMapping("/ali/refund") |
| | | public R<RefundResp> refund(@RequestBody RefundReq dto); |
| | | } |