package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdTransfer;
import com.hzs.system.config.ITransferServiceApi;
import com.hzs.system.config.ITransferServiceApi;
import com.hzs.system.config.service.IBdTransferService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @description: 转账配置的dubbo服务类
 * @author: zhang jing
 * @date: 2022/9/28 15:26
 * @param:
 * @return:
 **/
@DubboService
public class TransferServiceProvider implements ITransferServiceApi {

    @Autowired
    private IBdTransferService withdrawalService;

    /**
     * @description: 根据国家查询转账配置列表
     * @author: zhang jing
     * @date: 2022/9/28 10:34
     * @param: [pkCountry]
     * @return: com.hzs.common.core.domain.R<java.util.List<com.hzs.common.domain.system.config.BdTransfer>>
     **/
    @Override
    public R<BdTransfer> queryTransfer(Integer pkCountry) {
        return R.ok(withdrawalService.queryTransfer(pkCountry));
    }
}
