| | |
| | | package com.example.jz.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.example.jz.modle.PageParam; |
| | | import com.example.jz.modle.entity.Announcement; |
| | | import com.example.jz.modle.vo.AnnouncementVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 公告表(Announcement)表服务接口 |
| | |
| | | */ |
| | | public interface AnnouncementService extends IService<Announcement> { |
| | | |
| | | /** |
| | | * @Description 查询公共宣传通告id |
| | | * @Param [size, current, content, status, groupId] |
| | | * @return com.example.jz.modle.PageParam<com.example.jz.modle.entity.Announcement> |
| | | **/ |
| | | PageParam<AnnouncementVo> getAnnouncements(Integer size, Integer current, String content, Integer status,Integer groupId); |
| | | |
| | | /** |
| | | * @Description 发布/下架 |
| | | * @Param [id] |
| | | * @return java.lang.Integer |
| | | **/ |
| | | void updateStatus(Integer id,Integer status); |
| | | |
| | | /** |
| | | * @Description 添加 |
| | | * @Param [groupId, announcement] |
| | | * @return java.lang.Integer |
| | | **/ |
| | | Integer add(Integer groupId, Announcement announcement); |
| | | |
| | | AnnouncementVo getAnnouncementsById(Integer id); |
| | | } |
| | | |