package com.xxfc.platform.campsite.biz;

import com.xxfc.platform.campsite.dto.CampsiteShopCarouselDTO;
import com.xxfc.platform.campsite.dto.CampsiteShopCarouselDetailDTO;
import org.springframework.stereotype.Service;

import com.xxfc.platform.campsite.entity.CampsiteShopCarousel;
import com.xxfc.platform.campsite.mapper.CampsiteShopCarouselMapper;
import com.github.wxiaoqi.security.common.biz.BaseBiz;

import java.util.List;

/**
 * 店铺轮播表
 *
 * @author libin
 * @email 18178966185@163.com
 * @date 2019-06-17 10:28:48
 */
@Service
public class CampsiteShopCarouselBiz extends BaseBiz<CampsiteShopCarouselMapper,CampsiteShopCarousel> {

    /**
     * 根据店铺id查询轮播图
     * @param id
     * @return
     */
    public List<CampsiteShopCarouselDetailDTO> findByCampsiteShopId(Integer id) {
        return mapper.findCarousesByShopId(id);
    }
}