admin
2019-02-19 9192375a211cff2f91d1f65f932f97612d8dbcdb
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
package org.fanli.facade.system.service.msg;
 
import java.util.List;
 
import org.fanli.facade.system.entity.msg.SystemZnx;
import org.fanli.facade.system.entity.msg.UserSystemMsg;
import org.fanli.facade.system.entity.msg.UserSystemMsgTypeEnum;
import org.fanli.facade.system.exception.msg.UserSystemMsgException;
 
import com.yeshi.fanli.base.entity.user.UserInfo;
 
/**
 * 用户系统消息
 * 
 * @author Administrator
 *
 */
public interface UserSystemMsgService {
    /**
     * 添加系统消息
     * 
     * @param uid
     * @param title
     * @param content
     * @param timeLevel
     *            -是否紧急
     * @param sz
     *            -站内信对应表
     */
    public void addUserSystemMsg(Long uid, UserSystemMsgTypeEnum type, String title, String content, int timeTag,
            SystemZnx sz) throws UserSystemMsgException;
 
    /**
     * 同步系统站内信
     * 
     * @param uid
     */
    public void syncSystemZNX(UserInfo user);
 
    /**
     * 获取最近一次的系统消息
     * 
     * @param uid
     * @return
     */
    public UserSystemMsg getLatestUserSystemMsg(Long uid);
 
    /**
     * 用户系统消息列表
     * 
     * @param uid
     * @param page
     * @param pageSize
     * @return
     */
    public List<UserSystemMsg> listUserSystemMsg(Long uid, int page, int pageSize);
 
    /**
     * 用户系统消息数
     * 
     * @param uid
     * @return
     */
    public long countUserSystemMsg(Long uid);
 
    /**
     * 设置系统消息解决了
     * 
     * @param uid
     * @param id
     * @throws UserSystemMsgException
     */
    public void setSystemMsgSolved(Long uid, Long id) throws UserSystemMsgException;
 
    /**
     * 设置所有消息已读
     * 
     * @param uid
     */
    public void readMsgByUid(Long uid);
 
}