Skip to content

Commit

Permalink
Feat: 좋아요 중간 테이블 레포지토리 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
chaejm55 committed Oct 21, 2024
1 parent cb71c43 commit c13db87
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<PostLike, Long> {
Optional<PostLike> findByMemberIdAndPostId(Long memberId, Long postId);
}

0 comments on commit c13db87

Please sign in to comment.