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,28 @@
package com.timeline.user.dao;
import com.timeline.user.dto.FriendUserDto;
import com.timeline.user.entity.Friend;
import com.timeline.user.entity.Friendship;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface FriendMapper {
void insert(Friendship friendship);
Friendship selectByUsers(@Param("userId") String userId, @Param("friendId") String friendId);
void updateStatus(@Param("userId") String userId,
@Param("friendId") String friendId,
@Param("status") String status);
List<FriendUserDto> selectFriends(@Param("userId") String userId);
List<Friend> selectPending(@Param("toUserId") String toUserId);
// List<FriendUserDto> selectFriendUsers(FriendUserDto userDto);
}