-
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.
fix(CommentLike): 댓글 좋아요가 눌리지 않는 오류 수정
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 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
7 changes: 7 additions & 0 deletions
7
.../clab/api/external/community/comment/application/port/ExternalRegisterCommentUseCase.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,7 @@ | ||
package page.clab.api.external.community.comment.application.port; | ||
|
||
import page.clab.api.domain.community.comment.domain.Comment; | ||
|
||
public interface ExternalRegisterCommentUseCase { | ||
Comment save(Comment comment); | ||
} |
21 changes: 21 additions & 0 deletions
21
...ab/api/external/community/comment/application/service/ExternalCommentRegisterService.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,21 @@ | ||
package page.clab.api.external.community.comment.application.service; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
import org.springframework.transaction.annotation.Transactional; | ||
import page.clab.api.domain.community.comment.application.port.out.RegisterCommentPort; | ||
import page.clab.api.domain.community.comment.domain.Comment; | ||
import page.clab.api.external.community.comment.application.port.ExternalRegisterCommentUseCase; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class ExternalCommentRegisterService implements ExternalRegisterCommentUseCase { | ||
|
||
private final RegisterCommentPort registerCommentPort; | ||
|
||
@Transactional | ||
@Override | ||
public Comment save(Comment comment) { | ||
return registerCommentPort.save(comment); | ||
} | ||
} |