package com.yeshi.fanli.system.dao.msg;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
import org.fanli.facade.system.entity.msg.UserSystemMsg;
|
|
import com.yeshi.fanli.base.BaseMapper;
|
|
public interface UserSystemMsgMapper extends BaseMapper<UserSystemMsg> {
|
|
/**
|
* 用户系统消息列表
|
*
|
* @param uid
|
* @param start
|
* @param count
|
* @return
|
*/
|
List<UserSystemMsg> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
|
/**
|
* 用户系统消息数量
|
*
|
* @param uid
|
* @return
|
*/
|
Long countByUid(@Param("uid") Long uid);
|
|
/**
|
* 根据系统站内信的ID获取消息
|
*
|
* @param id
|
* @return
|
*/
|
UserSystemMsg selectBySystemZNXId(@Param("id") Long id);
|
|
/**
|
* 获取最近一条消息
|
*
|
* @param uid
|
* @return
|
*/
|
UserSystemMsg selectLatestUserSystemMsg(@Param("uid") Long uid);
|
|
/**
|
* 设置消息已读时
|
*
|
* @param uid
|
*/
|
void setMsgReadByUid(Long uid);
|
}
|