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:
getAllCommentsByTeamPostIdxin interfaceTeamCommentService- Parameters:
postIdx- 게시글 식별자- Returns:
- List
-
createComment
팀 게시글 댓글 생성- Specified by:
createCommentin interfaceTeamCommentService- Parameters:
user- 사용자 정보createCommentRequest- 댓글 생성 요청- Returns:
- TeamCommentResponse
-
updateComment
public TeamCommentResponse updateComment(User user, Integer commentIdx, UpdateCommentRequest updateCommentRequest) 팀 게시글 댓글 수정- Specified by:
updateCommentin interfaceTeamCommentService- Parameters:
user- 사용자 정보commentIdx- 댓글 식별자updateCommentRequest- 댓글 수정 요청- Returns:
- TeamCommentResponse
-
deleteComment
팀 게시글 댓글 삭제- Specified by:
deleteCommentin interfaceTeamCommentService- Parameters:
user- 사용자 정보commentIdx- 댓글 식별자- Returns:
- TeamCommentResponse
-
createReplyComment
public TeamReplyCommentResponse createReplyComment(User user, CreateReplyCommentRequest createReplyCommentRequest) 팀 게시글 대댓글 생성- Specified by:
createReplyCommentin interfaceTeamCommentService- Parameters:
user- 사용자 정보createReplyCommentRequest- 대댓글 생성 요청- Returns:
- TeamReplyCommentResponse
-
updateReplyComment
public TeamReplyCommentResponse updateReplyComment(User user, Integer replyCommentIdx, UpdateCommentRequest updateCommentRequest) 팀 게시글 대댓글 수정- Specified by:
updateReplyCommentin interfaceTeamCommentService- Parameters:
user- 사용자 정보replyCommentIdx- 대댓글 식별자updateCommentRequest- 대댓글 수정 요청- Returns:
- TeamReplyCommentResponse
-
deleteReplyComment
팀 게시글 대댓글 삭제- Specified by:
deleteReplyCommentin interfaceTeamCommentService- Parameters:
user- 사용자 정보replyCommentIdx- 대댓글 식별자- Returns:
- TeamReplyCommentResponse
-