zss
2 天以前 68d4b9484a3d1874703d79d87f8015998213d9a8
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.ruoyi.project.system.service;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.project.system.domain.SysNotice;
 
/**
 * 公告 服务层
 *
 * @author ruoyi
 */
public interface ISysNoticeService extends IService<SysNotice>
{
    /**
     * 查询公告信息
     *
     * @param noticeId 公告ID
     * @return 公告信息
     */
    public SysNotice selectNoticeById(Long noticeId);
 
    /**
     * 查询公告列表
     *
     * @param notice 公告信息
     * @return 公告集合
     */
    public IPage<SysNotice> selectNoticeList(SysNotice notice, Page page);
 
    /**
     * 新增公告
     *
     * @param notice 公告信息
     * @return 结果
     */
    public int insertNotice(SysNotice notice);
 
    /**
     * 修改公告
     *
     * @param notice 公告信息
     * @return 结果
     */
    public int updateNotice(SysNotice notice);
 
    /**
     * 删除公告信息
     *
     * @param noticeId 公告ID
     * @return 结果
     */
    public int deleteNoticeById(Long noticeId);
 
    /**
     * 批量删除公告信息
     *
     * @param noticeIds 需要删除的公告ID
     * @return 结果
     */
    public int deleteNoticeByIds(Long[] noticeIds);
 
    Long getCount(Long consigneeId);
 
    int readAll();
 
    /**
     * 通过角色 发送提醒
     * @param title 标题
     * @param message 内容
     * @param needPushRoles 发送的角色
     * @param jumpPath 跳转地址
     */
    void simpleNoticeByRoles(final String title, final String message, final Long tenantId,final List<String> needPushRoles,
                                      final String jumpPath);
 
    /**
     * 通过权限 发送提醒
     * @param title 标题
     * @param message 消息
     * @param needPerms 发送的权限者 已包含上级
     * @param jumpPath 跳转地址
     */
    void simpleNoticeByPerms(final String title, final String message, final Long tenantId,final List<String> needPerms,
                                      final String jumpPath);
 
    /**
     * 通过指定人发送提醒
     * @param title 标题
     * @param message 消息
     * @param tenantId 租户id
     * @param jumpPath 跳转地址
     */
    void simpleNoticeByUser(final String title, final String message, final List<Long> consigneeId, final Long tenantId, final String jumpPath);
 
    /**
     * 通过所有人 发送提醒
     * @param title 标题
     * @param message 消息
     * @param jumpPath 跳转地址
     */
    void simpleNoticeAll(final String title, final String message,final Long tenantId,final String jumpPath);
 
    void insertBatch(final List<SysNotice> notices);
}