
package com.kxs.user.api.feign;

import com.kxs.common.core.constant.SecurityConstants;
import com.kxs.common.core.util.R;
import com.kxs.user.api.dto.kxsapp.userAccount.PayRequestDTO;
import com.kxs.user.api.dto.kxsapp.userAccount.RefundRequestDTO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.service.annotation.PostExchange;

/**
 * @author Lxq
 * @date 2023/6/22
 */
public interface RemoteYuePayService {

	/**
	 * 余额支付
	 */
	@PostExchange("/userAccount/yuePay")
	R yuePay(@RequestBody PayRequestDTO payReq);

	/**
	 * 余额退款
	 *
	 * @param refundReq 退款要求
	 * @return {@link R}
	 */
	@PostExchange("userAccount/refund")
	R refund(RefundRequestDTO refundReq, @RequestHeader(SecurityConstants.FROM) String from);

}
