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

import cn.iocoder.yudao.module.jx.domain.DriveSchoolNews;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

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

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

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

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

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

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