21 lines
575 B
Java
21 lines
575 B
Java
|
|
package com.timeline.user.dao;
|
|||
|
|
|
|||
|
|
import com.timeline.user.entity.FriendNotify;
|
|||
|
|
import org.apache.ibatis.annotations.Mapper;
|
|||
|
|
import org.apache.ibatis.annotations.Param;
|
|||
|
|
|
|||
|
|
import java.util.List;
|
|||
|
|
|
|||
|
|
@Mapper
|
|||
|
|
public interface FriendNotifyMapper {
|
|||
|
|
void insert(FriendNotify notify);
|
|||
|
|
List<FriendNotify> selectUnread(@Param("toUserId") String toUserId);
|
|||
|
|
void markRead(@Param("id") Long id);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 查询某个用户的全部好友通知,按时间倒序(用于历史记录)
|
|||
|
|
*/
|
|||
|
|
List<FriendNotify> selectAllByUser(@Param("toUserId") String toUserId);
|
|||
|
|
}
|
|||
|
|
|