package com.ruoyi.cai.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.cai.domain.Banner;
import com.ruoyi.cai.mapper.BannerMapper;
import com.ruoyi.cai.service.BannerService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 轮播Service业务层处理
 *
 * @author 77
 * @date 2023-12-21
 */
@Service
public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements BannerService {

    @Override
    public List<Banner> index() {
        List<Banner> list = this.list(Wrappers.lambdaQuery(Banner.class));
        return list;
    }
}
