Package inha.git.team.api.service
Class TeamCommentServiceImpl
java.lang.Object
inha.git.team.api.service.TeamCommentServiceImpl
- All Implemented Interfaces:
TeamCommentService
@Service
@Transactional
public class TeamCommentServiceImpl
extends Object
implements TeamCommentService
TeamCommentServiceImpl은 TeamCommentService 인터페이스를 구현하는 클래스.
-
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) 팀 게시글 대댓글 삭제getAllCommentsByTeamPostIdx
(Integer postIdx) 팀 게시글 댓글 전체 조회updateComment
(User user, Integer commentIdx, UpdateCommentRequest updateCommentRequest) 팀 게시글 댓글 수정updateReplyComment
(User user, Integer replyCommentIdx, UpdateCommentRequest updateCommentRequest) 팀 게시글 대댓글 수정
-
Constructor Details
-
TeamCommentServiceImpl
public TeamCommentServiceImpl()
-
-
Method Details
-
getAllCommentsByTeamPostIdx
팀 게시글 댓글 전체 조회- Specified by:
getAllCommentsByTeamPostIdx
in interfaceTeamCommentService
- Parameters:
postIdx
- 게시글 식별자- Returns:
- List
-
createComment
팀 게시글 댓글 생성- Specified by:
createComment
in interfaceTeamCommentService
- Parameters:
user
- 사용자 정보createCommentRequest
- 댓글 생성 요청- Returns:
- TeamCommentResponse
-
updateComment
public TeamCommentResponse updateComment(User user, Integer commentIdx, UpdateCommentRequest updateCommentRequest) 팀 게시글 댓글 수정- Specified by:
updateComment
in interfaceTeamCommentService
- Parameters:
user
- 사용자 정보commentIdx
- 댓글 식별자updateCommentRequest
- 댓글 수정 요청- Returns:
- TeamCommentResponse
-
deleteComment
팀 게시글 댓글 삭제- Specified by:
deleteComment
in interfaceTeamCommentService
- Parameters:
user
- 사용자 정보commentIdx
- 댓글 식별자- Returns:
- TeamCommentResponse
-
createReplyComment
public TeamReplyCommentResponse createReplyComment(User user, CreateReplyCommentRequest createReplyCommentRequest) 팀 게시글 대댓글 생성- Specified by:
createReplyComment
in interfaceTeamCommentService
- Parameters:
user
- 사용자 정보createReplyCommentRequest
- 대댓글 생성 요청- Returns:
- TeamReplyCommentResponse
-
updateReplyComment
public TeamReplyCommentResponse updateReplyComment(User user, Integer replyCommentIdx, UpdateCommentRequest updateCommentRequest) 팀 게시글 대댓글 수정- Specified by:
updateReplyComment
in interfaceTeamCommentService
- Parameters:
user
- 사용자 정보replyCommentIdx
- 대댓글 식별자updateCommentRequest
- 대댓글 수정 요청- Returns:
- TeamReplyCommentResponse
-
deleteReplyComment
팀 게시글 대댓글 삭제- Specified by:
deleteReplyComment
in interfaceTeamCommentService
- Parameters:
user
- 사용자 정보replyCommentIdx
- 대댓글 식별자- Returns:
- TeamReplyCommentResponse
-