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

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.modules.template.facade.IAttrTemplateFacade;
import com.ruoyi.web.modules.template.service.IAttrTemplateService;
import com.ruoyi.web.modules.template.vo.AttrTemplateDetailVO;
import com.ruoyi.web.modules.template.vo.AttrTemplateOptionVO;

/**
 * 属性模版 Facade 实现
 */
@Service
public class AttrTemplateFacadeImpl implements IAttrTemplateFacade
{
    @Autowired
    private IAttrTemplateService attrTemplateService;

    @Override
    public List<AttrTemplateOptionVO> listOptionsByShopId(Long shopId)
    {
        return attrTemplateService.selectOptionsByShopId(shopId);
    }

    @Override
    public AttrTemplateDetailVO getDetailForGoods(Long templateId, Long shopId)
    {
        return attrTemplateService.selectDetailForGoods(templateId, shopId);
    }
}
