Skip to content

Commit

Permalink
🔨 Feat : 내가 이 사람을 팔로우하는가? 여부를 리턴하는 매소드 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
CYY1007 committed Oct 4, 2023
1 parent 541f9da commit 34e998a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/zipdabang/server/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ public interface MemberService {
Page<Follow> findFollowing(Member member, Integer page);

Page<Follow> findFollower(Member member, Integer page);

Boolean checkFollowing(Member loginMember, Member targetMember);
}
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ public Page<Follow> findFollower(Member member, Integer page) {

return followerMember;
}

@Override
public Boolean checkFollowing(Member loginMember, Member targetMember) {
return followRepository.findByFollowerAndFollowee(loginMember,targetMember).isPresent();
}
}


Expand Down

0 comments on commit 34e998a

Please sign in to comment.