package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdWithdrawalProcess;
import com.hzs.system.config.IWithdrawalProcessServiceApi;
import com.hzs.system.config.service.IBdWithdrawalProcessService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Description: 提现配置的dubbo服务类
 * @Author: zhang jing
 * @Time: 2022/9/9 14:11
 * @Classname: GradeServiceProvider
 * @PackageName: com.hzs.system.config.provider
 */
@DubboService
public class WithdrawalProcessServiceProvider implements IWithdrawalProcessServiceApi {

    @Autowired
    private IBdWithdrawalProcessService withdrawalProcessService;


    /**
     * @description: 根据国家查询提现手续费配置
     * @author: zhang jing
     * @date: 2022/11/2 17:22
     * @param: [pkCountry]国家
     * @return: java.util.List<com.hzs.common.core.domain.R<com.hzs.common.domain.system.config.BdWithdrawalProcess>>
     **/
    @Override
    public R<BdWithdrawalProcess> queryBdWithdrawalProcess(Integer pkCountry) {
        return R.ok(withdrawalProcessService.queryBdWithdrawalProcess(pkCountry));
    }
}
