package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdWithdrawalTax;
import com.hzs.common.domain.system.config.ext.BdWithdrawalTaxExt;
import com.hzs.system.config.IWithdrawalTaxServiceApi;
import com.hzs.system.config.service.IBdWithdrawalTaxService;
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 WithdrawalTaxServiceProvider implements IWithdrawalTaxServiceApi {

    @Autowired
    private IBdWithdrawalTaxService withdrawalTaxService;

    /**
     * @description: 根据国家查询个税明细
     * @author: zhang jing
     * @date: 2022/9/27 16:14
     * @param: [pkCountry]
     * @return: com.hzs.common.core.domain.R<java.util.List<com.hzs.common.domain.system.config.BdWithdrawalTax>>
     **/
    @Override
    public R<BdWithdrawalTaxExt> queryWithdrawalTax(Integer pkCountry) {
        return R.ok(withdrawalTaxService.queryWithdrawalTax(pkCountry));
    }
}
