-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 댓글생성 기능 추가 * feat: 댓글 조회, 수정, 삭제 기능 추가 * test: CommentServiceTest 댓글생성 테스트 추가 * test: CommentServiceTest 댓글 조회 추가 * test: CommentServiceTest 댓글 수정 테스트 * test: CommentServiceTest 댓글 삭제 테스트 * refactor: 코드컨벤션 적용 * 댓글 좋아요 * refactor: 댓글 좋아요 기능 구현 --------- Co-authored-by: Lee gun woo <139452702+gunnu3226@users.noreply.github.com> Co-authored-by: yiyaaa <65538799+RamuneOrch@users.noreply.github.com>
- Loading branch information
1 parent
64b21c5
commit 56eaa7a
Showing
8 changed files
with
139 additions
and
16 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
14 changes: 14 additions & 0 deletions
14
src/main/java/com/project/webtoonzoa/dto/response/CommentLikesResponseDto.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.project.webtoonzoa.dto.response; | ||
|
||
import com.project.webtoonzoa.entity.CommentLikes; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class CommentLikesResponseDto { | ||
|
||
private Long id; | ||
|
||
public CommentLikesResponseDto(CommentLikes commentLikes) { | ||
this.id = commentLikes.getId(); | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/project/webtoonzoa/repository/CommentLikesRepository.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.project.webtoonzoa.repository; | ||
|
||
import com.project.webtoonzoa.entity.Comment; | ||
import com.project.webtoonzoa.entity.CommentLikes; | ||
import com.project.webtoonzoa.entity.User; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface CommentLikesRepository extends JpaRepository<CommentLikes, Long> { | ||
|
||
boolean existsByUserAndComment(User user, Comment comment); | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/project/webtoonzoa/repository/WebtoonLikesRepository.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.project.webtoonzoa.repository; | ||
|
||
import com.project.webtoonzoa.entity.WebtoonLikes; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface WebtoonLikesRepository extends JpaRepository<WebtoonLikes, Long> { | ||
|
||
} |
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
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
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