| | |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.system.dao.BannerMapper; |
| | | import com.stylefeng.guns.modular.system.dto.BannerVo; |
| | | import com.stylefeng.guns.modular.system.model.Banner; |
| | | import com.stylefeng.guns.modular.system.service.IBannerService; |
| | | import com.stylefeng.guns.modular.system.warpper.res.BannerRes; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2023/11/7 16:41 |
| | | * <p> |
| | | * banner 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author 无关风月 |
| | | * @since 2024-02-06 |
| | | */ |
| | | @Service |
| | | public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements IBannerService { |
| | | |
| | | |
| | | /** |
| | | * 获取banner |
| | | * @param position |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<BannerRes> getBanners(Integer position) { |
| | | return this.baseMapper.getBanners(position); |
| | | } |
| | | |
| | | @Override |
| | | public List<BannerVo> list(Integer position,Integer sort) { |
| | | return this.baseMapper.list(position,sort); |
| | | } |
| | | } |