package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.ext.BdBonusItemsExt;
import com.hzs.common.domain.system.config.ext.BdShopExt;
import com.hzs.system.config.IBonusItemsServiceApi;
import com.hzs.system.config.IShopServiceApi;
import com.hzs.system.config.service.IBdBonusItemsService;
import com.hzs.system.config.service.IBdShopService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @description: 奖项配置
 * @author: zhang jing
 * @date: 2022/11/10 17:02
 * @param:
 * @return:
 **/
@DubboService
public class ShopServiceProvider implements IShopServiceApi {

    @Autowired
    private IBdShopService shopService;

    /**
     * @description: 根据国家查询奖项配置列表
     * @author: zhang jing
     * @date: 2022/9/29 15:17
     * @param: [pkCountry]
     * @return: com.hzs.common.core.domain.R<java.util.List<com.hzs.common.domain.system.config.BdAwards>>
     **/
    @Override
    public R<List<BdShopExt>> queryShop(Integer pkCountry) {
        return R.ok(shopService.queryShop(pkCountry));
    }

}
