Skip to content

Commit

Permalink
Merge pull request #76 from Team-Shaka/feat/71
Browse files Browse the repository at this point in the history
Feat/71 Comment 관련 Request, Response 관련 수정 및 변경
  • Loading branch information
HyoBN authored Jul 9, 2024
2 parents 8279f66 + 67dbe82 commit e7d9e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;
import treehouse.server.api.comment.implementation.CommentCommandAdapter;
import treehouse.server.api.comment.implementation.CommentQueryAdapter;
Expand All @@ -33,10 +32,8 @@
import treehouse.server.global.exception.GlobalErrorCode;
import treehouse.server.global.exception.ThrowClass.CommentException;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collector;
import java.util.stream.Collectors;

@Service
Expand Down Expand Up @@ -128,7 +125,7 @@ public CommentResponseDTO.CommentIdResponseDto createComment(User user, Long tre
Post post = postQueryAdapter.findById(postId);
Member writer = memberQueryAdapter.findByUserAndTreehouse(user, treehouse);

Comment comment = CommentMapper.toComment(writer, post, request.getComment());
Comment comment = CommentMapper.toComment(writer, post, request.getContext());
Long commentId = commentCommandAdapter.createComment(comment).getId();
return CommentMapper.toIdResponseDto(commentId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static class reportComment{
@Getter
public static class createComment{
// Comment 입력 조건에 따른 valid 조건 추가하기
private String comment;
private String context;
}

@Getter
Expand Down

0 comments on commit e7d9e3b

Please sign in to comment.