package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdWithdrawalSpecial;
import com.hzs.system.config.IWithdrawalSpecialServiceApi;
import com.hzs.system.config.service.IBdWithdrawalSpecialService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


@DubboService
public class WithdrawalSpecialServiceProvider implements IWithdrawalSpecialServiceApi {

    @Autowired
    private IBdWithdrawalSpecialService withdrawalSpecialService;

    /**
     * @description: 根据国家查询提现设置特殊配置
     * @author: zhang jing
     * @date: 2022/9/27 16:24
     * @param: [pkCountry]
     * @return: com.hzs.common.core.domain.R<java.util.List<com.hzs.common.domain.system.config.BdWithdrawalSpecial>>
     **/
    @Override
    public R<List<BdWithdrawalSpecial>> queryWithdrawalSpecial(Integer pkCountry) {
        return R.ok(withdrawalSpecialService.queryWithdrawalSpecial(pkCountry));
    }

    /**
     * @description: 根据会员编号查询提现特殊配置
     * @author: zhang jing
     * @date: 2022/9/27 16:34
     * @param: [pkCountry, memberCode]
     * @return: com.hzs.common.core.domain.R<com.hzs.common.domain.system.config.BdWithdrawalSpecial>
     **/
    @Override
    public R<BdWithdrawalSpecial> getWithdrawalSpecial(Integer pkCountry, String memberCode) {
        return R.ok(withdrawalSpecialService.getWithdrawalSpecial(pkCountry,memberCode));
    }


}
