package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdWithdrawal;
import com.hzs.system.config.IWithdrawalServiceApi;
import com.hzs.system.config.service.IBdWithdrawalService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

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

    @Autowired
    private IBdWithdrawalService withdrawalService;

    @Override
    public R<BdWithdrawal> queryWithdrawal(Integer pkCountry) {
        return R.ok(withdrawalService.queryWithdrawal(pkCountry));
    }

    @Override
    public R<List<BdWithdrawal>> queryWithdrawalByIsAuto() {
        return R.ok(withdrawalService.queryWithdrawalByIsAuto());
    }

}
