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
package com.agentdriving.driver.modular.system.service;
 
import com.agentdriving.driver.modular.system.model.SystemMessage;
import com.baomidou.mybatisplus.service.IService;
import com.agentdriving.driver.modular.system.warpper.SystemMessageWarpper;
 
import java.util.List;
 
 
/**
* 系统消息
* @author pzb
* @Date 2023/2/10 15:34
*/
public interface ISystemMessageService extends IService<SystemMessage> {
 
 
    /**
     * 获取个人系统消息列表
     * @param uid
     * @param pageNum
     * @param size
     * @return
     * @throws Exception
     */
    List<SystemMessageWarpper> querySystemMessageList(Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 阅读系统消息
     * @param uid
     * @param ids
     * @throws Exception
     */
    void  readSystems(Integer uid, String ids) throws Exception;
 
 
    /**
     * 添加系统消息
     * @param userId        接收用户id
     * @param userType      接收用户类型
     * @param title         标题
     * @param content       消息内容
     * @throws Exception
     */
    void addSystemMessage(Integer userId, Integer userType, String title, String content) throws Exception;
 
 
    /**
     * 清空系统消息
     * @param userId
     */
    void clearSystemMessage(Integer userId) throws Exception;
}