Package inha.git.question.api.service
Class QuestionCommentServiceImpl
java.lang.Object
inha.git.question.api.service.QuestionCommentServiceImpl
- All Implemented Interfaces:
QuestionCommentService
@Service
@Transactional
public class QuestionCommentServiceImpl
extends Object
implements QuestionCommentService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComment
(User user, CreateCommentRequest createCommentRequest) 댓글 생성createReplyComment
(User user, CreateReplyCommentRequest createReplyCommentRequest) 답글 생성deleteComment
(User user, Integer commentIdx) 댓글 삭제deleteReplyComment
(User user, Integer replyCommentIdx) 답글 삭제getAllCommentsByQuestionIdx
(User user, Integer questionIdx) 특정 질문 댓글 전체 조회questionCommentLike
(User user, CommentLikeRequest commentLikeRequest) 질문 댓글 좋아요questionCommentLikeCancel
(User user, CommentLikeRequest commentLikeRequest) 질문 댓글 좋아요 취소questionReplyCommentLike
(User user, CommentLikeRequest commentLikeRequest) 질문 대댓글 좋아요questionReplyCommentLikeCancel
(User user, CommentLikeRequest commentLikeRequest) 질문 대댓글 좋아요 취소updateComment
(User user, Integer commentIdx, UpdateCommentRequest updateCommentRequest) 댓글 수정updateReplyComment
(User user, Integer replyCommentIdx, UpdateCommentRequest updateCommentRequest) 답글 수정
-
Constructor Details
-
QuestionCommentServiceImpl
public QuestionCommentServiceImpl()
-
-
Method Details
-
getAllCommentsByQuestionIdx
특정 질문 댓글 전체 조회- Specified by:
getAllCommentsByQuestionIdx
in interfaceQuestionCommentService
- Parameters:
questionIdx
- 질문 식별자- Returns:
- List
-
createComment
댓글 생성- Specified by:
createComment
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보createCommentRequest
- 댓글 생성 요청- Returns:
- CreateCommentResponse
-
updateComment
public CommentResponse updateComment(User user, Integer commentIdx, UpdateCommentRequest updateCommentRequest) 댓글 수정- Specified by:
updateComment
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보commentIdx
- 댓글 식별자updateCommentRequest
- 댓글 수정 요청- Returns:
- UpdateCommentResponse
-
deleteComment
댓글 삭제- Specified by:
deleteComment
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보commentIdx
- 댓글 식별자- Returns:
- DeleteCommentResponse
-
createReplyComment
public ReplyCommentResponse createReplyComment(User user, CreateReplyCommentRequest createReplyCommentRequest) 답글 생성- Specified by:
createReplyComment
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보createReplyCommentRequest
- 댓글 생성 요청- Returns:
- ReplyCommentResponse
-
updateReplyComment
public ReplyCommentResponse updateReplyComment(User user, Integer replyCommentIdx, UpdateCommentRequest updateCommentRequest) 답글 수정- Specified by:
updateReplyComment
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보replyCommentIdx
- 댓글 식별자updateCommentRequest
- 댓글 수정 요청- Returns:
- ReplyCommentResponse
-
deleteReplyComment
답글 삭제- Specified by:
deleteReplyComment
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보replyCommentIdx
- 댓글 식별자- Returns:
- ReplyCommentResponse
-
questionCommentLike
질문 댓글 좋아요- Specified by:
questionCommentLike
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보commentLikeRequest
- 댓글 좋아요 정보- Returns:
- String
-
questionCommentLikeCancel
질문 댓글 좋아요 취소- Specified by:
questionCommentLikeCancel
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보commentLikeRequest
- 댓글 좋아요 정보- Returns:
- String
-
questionReplyCommentLike
질문 대댓글 좋아요- Specified by:
questionReplyCommentLike
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보commentLikeRequest
- 대댓글 좋아요 정보- Returns:
- String
-
questionReplyCommentLikeCancel
질문 대댓글 좋아요 취소- Specified by:
questionReplyCommentLikeCancel
in interfaceQuestionCommentService
- Parameters:
user
- 사용자 정보commentLikeRequest
- 대댓글 좋아요 정보- Returns:
- String
-