package com.zhentao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.entity.Announcement;

import java.util.List;

/**
 * 公告服务接口
 */
public interface AnnouncementService {
    
    /**
     * 分页查询公告列表
     */
    Page<Announcement> getAnnouncementList(int current, int size, Integer status);
    
    /**
     * 获取所有启用的公告
     */
    List<Announcement> getActiveAnnouncements();
    
    /**
     * 根据ID获取公告
     */
    Announcement getAnnouncementById(Long id);
    
    /**
     * 创建公告
     */
    boolean createAnnouncement(Announcement announcement);
    
    /**
     * 更新公告
     */
    boolean updateAnnouncement(Announcement announcement);
    
    /**
     * 删除公告
     */
    boolean deleteAnnouncement(Long id);
    
    /**
     * 批量删除公告
     */
    boolean batchDeleteAnnouncements(List<Long> ids);
    
    /**
     * 更新公告状态
     */
    boolean updateAnnouncementStatus(Long id, Integer status);
}

