package cn.iocoder.yudao.module.jx.mapper;


import cn.iocoder.yudao.module.jx.domain.DriveSchoolSeparate;
import cn.iocoder.yudao.module.jx.domain.DriveSchoolSwiper;
import cn.iocoder.yudao.module.jx.domain.DriveSchoolTeachingJournal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 驾校-轮播图Mapper接口
 *
 * @author ruoyi
 * @date 2024-03-19
 */
@Mapper
public interface DriveSchoolSwiperMapper
{
    /**
     * 查询驾校-轮播图
     *
     * @param id 驾校-轮播图主键
     * @return 驾校-轮播图
     */
    public DriveSchoolSwiper selectDriveSchoolSwiperById(Long id);

    /**
     * 查询驾校-轮播图列表
     *
     * @param driveSchoolSwiper 驾校-轮播图
     * @return 驾校-轮播图集合
     */
    List<DriveSchoolSwiper> selectDriveSchoolSwiperList(DriveSchoolSwiper driveSchoolSwiper);


    /**
     * 新增驾校-轮播图
     *
     * @param driveSchoolSwiper 驾校-轮播图
     * @return 结果
     */
    public int insertDriveSchoolSwiper(DriveSchoolSwiper driveSchoolSwiper);

    /**
     * 修改驾校-轮播图
     *
     * @param driveSchoolSwiper 驾校-轮播图
     * @return 结果
     */
    public int updateDriveSchoolSwiper(DriveSchoolSwiper driveSchoolSwiper);

    /**
     * 删除驾校-轮播图
     *
     * @param id 驾校-轮播图主键
     * @return 结果
     */
    public int deleteDriveSchoolSwiperById(Long id);

    /**
     * 批量删除驾校-轮播图
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDriveSchoolSwiperByIds(Long[] ids);

    /**
     * 分页查询驾校-轮播图
     *
     * @param
     * @return 结果
     */
    IPage<DriveSchoolSwiper> selectDriveSchoolSwiperPage(@Param("entity")DriveSchoolSwiper entity , Page<DriveSchoolSwiper> page);
}
