puzhibing
2023-02-15 2811bab657aab4145b65a45a824fb63e93b58e30
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
package com.stylefeng.guns.modular.system.dao;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.modular.system.model.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 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 id
     * @param uid
     */
    void readSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid);
 
 
    /**
     * 删除数据
     * @param id
     * @param uid
     */
    void delSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid);
}