init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user