diff --git a/src/main/java/com/gdsc_knu/official_homepage/repository/PostLikeRepository.java b/src/main/java/com/gdsc_knu/official_homepage/repository/PostLikeRepository.java new file mode 100644 index 00000000..3be0b4de --- /dev/null +++ b/src/main/java/com/gdsc_knu/official_homepage/repository/PostLikeRepository.java @@ -0,0 +1,10 @@ +package com.gdsc_knu.official_homepage.repository; + +import com.gdsc_knu.official_homepage.entity.post.PostLike; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.Optional; + +public interface PostLikeRepository extends JpaRepository { + Optional findByMemberIdAndPostId(Long memberId, Long postId); +}