package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdWithdrawalAuto;
import com.hzs.system.config.IWithdrawalAutoServiceApi;
import com.hzs.system.config.service.IBdWithdrawalAutoService;
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 WithdrawalAutoServiceProvider implements IWithdrawalAutoServiceApi {

    @Autowired
    private IBdWithdrawalAutoService withdrawalAutoService;

    /**
     * @description: 根据国家查询自动提现明细列表
     * @author: zhang jing
     * @date: 2022/9/27 15:20
     * @param: [pkCountry]
     * @return: com.hzs.common.core.domain.R<java.util.List<com.hzs.common.domain.system.config.BdWithdrawalAuto>>
     **/
    @Override
    public R<List<BdWithdrawalAuto>> queryWithdrawalAuto(Integer pkCountry) {
        return R.ok(withdrawalAutoService.queryWithdrawalAuto(pkCountry));
    }
}
