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
| package com.stylefeng.guns.modular.system.service;
|
| import com.baomidou.mybatisplus.service.IService;
| import com.stylefeng.guns.modular.system.model.SystemNotice;
|
| import java.util.List;
| import java.util.Map;
|
| public interface ISystemNoticeService extends IService<SystemNotice> {
|
|
| /**
| * 添加系统消息
| * @param userType
| * @param content
| * @param userId
| * @throws Exception
| */
| void addSystemNotice(Integer userType, String content, Integer userId, Integer noticeType) throws Exception;
|
|
| /**
| * 获取未阅读数据
| * @param uid
| * @return
| * @throws Exception
| */
| int queryNoReadNoticeNum(Integer uid) throws Exception;
|
| /**
| * 获取消息列列表
| * @param type
| * @param pageNum
| * @param size
| * @param uid
| * @return
| */
| List<Map<String, Object>> queryList(Integer type, Integer pageNum, Integer size, Integer uid);
|
|
| /**
| * 阅读操作
| * @param id
| * @param uid
| * @throws Exception
| */
| void readSystemNotice(Integer id, Integer uid) throws Exception;
|
|
| /**
| * 删除公告或消息
| * @param id
| * @param uid
| * @throws Exception
| */
| void delSystemNotice(Integer id, Integer uid) throws Exception;
|
|
| /**
| * 清空公告或消息
| * @param uid
| * @throws Exception
| */
| void clearSystemNotice(Integer uid) throws Exception;
| }
|
|