Skip to content

Commit

Permalink
feat: 댓글 목록 조회 개수는 빼기
Browse files Browse the repository at this point in the history
  • Loading branch information
Sehee-Lee-01 committed Mar 3, 2024
1 parent 09f1c05 commit 916459b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sixgaezzang.sidepeek.comments.dto.request.CommentRequest;
import sixgaezzang.sidepeek.comments.dto.response.CommentResponse;
import sixgaezzang.sidepeek.comments.dto.response.CommentListResponse;
import sixgaezzang.sidepeek.comments.dto.response.CommentResponse;
import sixgaezzang.sidepeek.common.annotation.Login;

@RestController
Expand Down Expand Up @@ -91,6 +91,10 @@ public ResponseEntity<Void> delete(
@Operation(summary = "댓글 목록 조회")
@ApiResponse(responseCode = "204", description = "댓글 목록 조회 성공")
public ResponseEntity<CommentListResponse> findAllByProject(
@Schema(description = "로그인한 회원 식별자", example = "1")
@Login
Long loginId,

@Schema(description = "조화할 댓글들의 프로젝트 식별자", example = "1")
@PathVariable
Long projectId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

@Schema(description = "댓글 목록 응답 정보")
public record CommentListResponse(
@Schema(description = "댓글 수", example = "1")
int count,

@Schema(description = "댓글 목록 정보(오래된 순)")
List<CommentResponse> comments
) {
Expand Down

0 comments on commit 916459b

Please sign in to comment.