io.gitee.putaoo.easypay.feign.WxpayApi Maven / Gradle / Ivy
package io.gitee.putaoo.easypay.feign;
import io.gitee.putaoo.easypay.constant.WxConstant;
import io.gitee.putaoo.easypay.domain.wx.response.WxOrderQueryResponse;
import io.gitee.putaoo.easypay.domain.wx.response.WxPayResponse;
import io.gitee.putaoo.easypay.domain.wx.response.WxRefundResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.Map;
@FeignClient(name = "wxpayApi",url = WxConstant.URL)
public interface WxpayApi {
/**
* 统一下单
* @param body
* @return
*/
@PostMapping("/pay/unifiedorder")
WxPayResponse unifiedorder(@RequestBody Map body);
/**
* 付款码支付
* @param body
* @return
*/
@PostMapping("/pay/micropay")
WxPayResponse micropay(@RequestBody Map body);
/**
* 申请退款
* @param body
* @return
*/
@PostMapping("/secapi/pay/refund")
WxRefundResponse refund(@RequestBody Map body);
/**
* 订单查询
* @param body
* @return
*/
@PostMapping("/pay/orderquery")
WxOrderQueryResponse orderquery(@RequestBody Map body);
/**
* 企业付款到用户银行卡
* @param body
* @return
*/
@PostMapping("/mmpaysptrans/pay_bank")
WxPayResponse payBank(@RequestBody Map body);
}