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 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 attrs); /** * 分批发送通知 * @param userIdList * @param Type * @param content * @param extra */ public void doSendTextMsgToUsersLoop(List userIdList,short Type,String content, Map extra); /** * 获取最近的提醒消息 * @return */ public MsgInfo readLastRemindMsg(); /** * 按类型查询未读消息 * @return */ Map queryUnReadMsgCountByType(); /** * 查询未读消息总数 * @return */ int queryUnReadTotalCount(); }