青羊经侦大队-数据平台
baizonghao
2023-05-19 1c3f11dfd7493a4c4a8d41e2499477840bcc070c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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)表服务接口
 *
 * @author makejava
 * @since 2022-07-11 16:35:56
 */
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);
 
    List<Announcement> getAnnouncements(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);
 
    Integer vxAdd(Integer groupId, Announcement announcement);
 
    AnnouncementVo getAnnouncementsById(Integer id);
}