派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
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
package com.qxueyou.scc.msg.service;
 
import java.util.List;
import java.util.Map;
 
import com.qxueyou.scc.base.model.Result;
import com.qxueyou.scc.msg.model.MsgInfo;
 
/**
 * 消息服务
 * 
 * @author kevin
 *
 */
public interface IMsgInfoService {
    /**
     * 查询消息列表
     */
    List<MsgInfo> list(Short type,Integer pageSize,Integer pageNum);
    
    /**
     * 查询消息列表数量
     */
    int listCount(Short type);
    
    /**
     *  删除消息
     * @param msgIds
     * @return
     */
    Result deleteUserMsg(String [] msgIds);
 
    /**
     * 清空个人消息
     * @param type
     * @return
     */
    Result deleteAllUserMsg(Short type);
    
    /**
     *  修改已读标志位
     * @param msgId
     * @return
     */
    Result updateReadStatus(String [] msgIds);
    
    
    /**
     *  修改已读标志位
     * @param type
     * @return
     */
    Result updateUserAllReadStatus(Short type);
    
    /**
     * 发送消息给多个用户
     * @param userIdsToArr
     * @param Type
     * @param msg
     * @return
     */
    public Result doSendTextMsgToUsers(String[] userIdsToArr,short Type,String msg); 
 
    /**
     * 发送带属性参数的消息给用户
     * @param userIdsToArr
     * @param Type
     * @param msg
     * @param attrs
     * @return
     */
    public Result doSendTextMsgToUsers(String[] userIdsToArr,short Type,String msg,Map<String,String> attrs);
    
    /**
     * 分批发送通知
     * @param userIdList
     * @param Type
     * @param content
     * @param extra
     */
    public void doSendTextMsgToUsersLoop(List<String> userIdList,short Type,String content, Map<String,String> extra);
    
    /**
     * 获取最近的提醒消息
     * @return
     */
    public MsgInfo readLastRemindMsg();
    
    /**
     * 按类型查询未读消息
     * @return
     */
    Map<String, Object> queryUnReadMsgCountByType();
    
    /**
     * 查询未读消息总数
     * @return
     */
    int queryUnReadTotalCount();
    
}