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
| package com.dsh.course.mapper;
|
| import com.baomidou.mybatisplus.core.mapper.BaseMapper;
| import com.dsh.course.entity.SystemNotice;
| import org.apache.ibatis.annotations.Param;
|
| import java.util.List;
| import java.util.Map;
|
| public interface SystemNoticeMapper extends BaseMapper<SystemNotice> {
|
|
| /**
| * 获取未阅读数量
| * @param uid
| * @return
| */
| Integer queryNoReadNoticeNum(@Param("uid") Integer uid, @Param("userType") Integer userType);
|
|
| /**
| * 获取消息列表
| * @param type
| * @param pageNum
| * @param size
| * @param uid
| * @return
| */
| List<Map<String, Object>> queryList(@Param("type") Integer type, @Param("pageNum") Integer pageNum,
| @Param("size") Integer size, @Param("uid") Integer uid, @Param("userType") Integer userType, @Param("language") Integer language);
|
|
| /**
| * 阅读操作
| * @param id
| * @param uid
| */
| void readSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid, @Param("userType") Integer userType);
|
|
| /**
| * 删除数据
| * @param id
| * @param uid
| */
| void delSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid, @Param("userType") Integer userType);
| }
|
|