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


import cn.iocoder.yudao.module.jx.domain.DriveSchoolNews;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 校内新闻Mapper接口
 *
 * @author ruoyi
 * @date 2024-05-10
 */
@Mapper
public interface DriveSchoolNewsMapper
{
    /**
     * 查询校内新闻
     *
     * @param id 校内新闻主键
     * @return 校内新闻
     */
    public DriveSchoolNews selectDriveSchoolNewsById(Long id);

    /**
     * 查询校内新闻列表
     *
     * @param driveSchoolNews 校内新闻
     * @return 校内新闻集合
     */
    public IPage<DriveSchoolNews> selectDriveSchoolNewsList(@Param("entity") DriveSchoolNews driveSchoolNews, Page<DriveSchoolNews> page);
    public List<DriveSchoolNews> selectDriveSchoolNewsListAll(@Param("entity") DriveSchoolNews driveSchoolNews);

    /**
     * 新增校内新闻
     *
     * @param driveSchoolNews 校内新闻
     * @return 结果
     */
    public int insertDriveSchoolNews(DriveSchoolNews driveSchoolNews);

    /**
     * 修改校内新闻
     *
     * @param driveSchoolNews 校内新闻
     * @return 结果
     */
    public int updateDriveSchoolNews(DriveSchoolNews driveSchoolNews);

    /**
     * 删除校内新闻
     *
     * @param id 校内新闻主键
     * @return 结果
     */
    public int deleteDriveSchoolNewsById(Long id);

    /**
     * 批量删除校内新闻
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDriveSchoolNewsByIds(Long[] ids);
}
