This commit is contained in:
jiangh277
2025-12-24 14:17:19 +08:00
parent 3eb445291f
commit 4c7d59f87b
89 changed files with 3525 additions and 311 deletions

View File

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