package com.yuchen.saas.park.api.feign.service.pay;

import com.yuchen.saas.park.api.entity.park.PmgBatParkXCPayInfo;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 肖润飞
 * @CreateTime: 2022/11/15 16:31
 * @Description: 发票相关
 * @Version: 1.0
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallbackFactory = XCPayInfoFeignServiceFallback.class
)
public interface XCPayInfoFeignService {

    /**
     * 根据园区ID获取厦门银行支付配置信息
     * @param parkId 园区ID
     * @return
     */
    @GetMapping("/xcPayInfo/get")
    R<PmgBatParkXCPayInfo> get(@RequestParam Long parkId);

    /**
     * 根据商户编号获取厦门银行支付信息
     * @param oidPartner 商户编号
     * @return
     */
    @GetMapping("/xcPayInfo/getByOidPartner")
    R<PmgBatParkXCPayInfo> getByOidPartner(@RequestParam String oidPartner);
}
