package com.ruoyi.web.modules.merchant.facade.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.modules.merchant.domain.BizMerchant;
import com.ruoyi.web.modules.merchant.facade.IMerchantFacade;
import com.ruoyi.web.modules.merchant.mapper.BizMerchantMapper;
import com.ruoyi.web.modules.merchant.service.IMerchantService;
import com.ruoyi.web.modules.merchant.vo.OpenShopCheckVO;

@Service
public class MerchantFacadeImpl implements IMerchantFacade
{
    @Autowired
    private IMerchantService merchantService;

    @Autowired
    private BizMerchantMapper merchantMapper;

    @Override
    public OpenShopCheckVO checkOpenShop(Long merchantId)
    {
        return merchantService.openShopCheck(merchantId);
    }

    @Override
    public List<BizMerchant> listSelectableMerchants()
    {
        return merchantMapper.selectSelectableList();
    }
}
