-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌨 :: CommentListResponse에 commentLiked 추가
- Loading branch information
Showing
3 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...n/java/com/example/asterbackend/domain/user/comment/repository/CommentLikeRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
package com.example.asterbackend.domain.user.comment.repository; | ||
|
||
import com.example.asterbackend.domain.user.comment.entity.Comment; | ||
import com.example.asterbackend.domain.user.comment.entity.CommentLike; | ||
import com.example.asterbackend.domain.user.feed.entity.Feed; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface CommentLikeRepository extends JpaRepository<CommentLike, Long> { | ||
boolean existsByCommentIdAndStudentId(Long commentId, String studentId); | ||
|
||
boolean existsByCommentAndStudentId(Comment comment, String studentId); | ||
|
||
void deleteByCommentIdAndStudentId(Long commentId, String studentId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters