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();
|
|
}
|