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;

/**
 * 提现配置的dubbo服务类
 */
@DubboService
public class WithdrawalAutoServiceProvider implements IWithdrawalAutoServiceApi {

    @Autowired
    private IBdWithdrawalAutoService withdrawalAutoService;

    @Override
    public R<List<BdWithdrawalAuto>> queryWithdrawalAuto(Integer pkCountry) {
        return R.ok(withdrawalAutoService.queryWithdrawalAuto(pkCountry));
    }
}
