| | |
| | | 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 |
| | | */ |
| | |
| | | |
| | | |
| | | /** |
| | | * 修改已读标志位 |
| | | * 修改已读标志位 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | Result updateUserAllReadStatus(Short type); |
| | | |
| | | /** |
| | | * 发送消息给多个用户 |
| | | * 发送消息给多个用户 |
| | | * @param userIdsToArr |
| | | * @param Type |
| | | * @param msg |
| | |
| | | public Result doSendTextMsgToUsers(String[] userIdsToArr,short Type,String msg); |
| | | |
| | | /** |
| | | * 发送带属性参数的消息给用户 |
| | | * 发送带属性参数的消息给用户 |
| | | * @param userIdsToArr |
| | | * @param Type |
| | | * @param msg |
| | |
| | | public Result doSendTextMsgToUsers(String[] userIdsToArr,short Type,String msg,Map<String,String> attrs); |
| | | |
| | | /** |
| | | * 分批发送通知 |
| | | * 分批发送通知 |
| | | * @param userIdList |
| | | * @param Type |
| | | * @param content |
| | |
| | | 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(); |