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