From dba7627edaaf269c13baae9360f73a65f9e949a7 Mon Sep 17 00:00:00 2001 From: YONGWOOK CHOI <60510921+CYY1007@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:11:42 +0900 Subject: [PATCH] =?UTF-8?q?:hammer:=20Feat=20:=20=EB=82=B4=EA=B0=80=20?= =?UTF-8?q?=EC=9D=B4=20=EC=82=AC=EB=9E=8C=EC=9D=84=20=ED=8C=94=EB=A1=9C?= =?UTF-8?q?=EC=9A=B0=ED=95=98=EB=8A=94=EA=B0=80=3F=20=EC=97=AC=EB=B6=80?= =?UTF-8?q?=EB=A5=BC=20=EB=A6=AC=ED=84=B4=ED=95=98=EB=8A=94=20=EB=A7=A4?= =?UTF-8?q?=EC=86=8C=EB=93=9C=20=EA=B5=AC=ED=98=84=20(#156)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/zipdabang/server/service/MemberService.java | 2 ++ .../server/service/serviceImpl/MemberServiceImpl.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/zipdabang/server/service/MemberService.java b/src/main/java/zipdabang/server/service/MemberService.java index 79e16f3..a94ce07 100644 --- a/src/main/java/zipdabang/server/service/MemberService.java +++ b/src/main/java/zipdabang/server/service/MemberService.java @@ -65,4 +65,6 @@ public interface MemberService { Page findFollowing(Member member, Integer page); Page findFollower(Member member, Integer page); + + Boolean checkFollowing(Member loginMember, Member targetMember); } diff --git a/src/main/java/zipdabang/server/service/serviceImpl/MemberServiceImpl.java b/src/main/java/zipdabang/server/service/serviceImpl/MemberServiceImpl.java index d7d3f51..33c73de 100644 --- a/src/main/java/zipdabang/server/service/serviceImpl/MemberServiceImpl.java +++ b/src/main/java/zipdabang/server/service/serviceImpl/MemberServiceImpl.java @@ -410,6 +410,11 @@ public Page findFollower(Member member, Integer page) { return followerMember; } + + @Override + public Boolean checkFollowing(Member loginMember, Member targetMember) { + return followRepository.findByFollowerAndFollowee(loginMember,targetMember).isPresent(); + } }