Skip to content

Conversation

@hyxklee
Copy link
Collaborator

@hyxklee hyxklee commented Aug 10, 2025

PR 내용

  • 댓글에 파일을 첨부할 수 있도록 기능을 추가했습니다
  • 입력 출력 모두 기존 게시글, 공지사항에 파일을 활용할 때와 통일했습니다
  • 댓글 수정시 파일도 동일한 로직으로 수정 되도록 구현 했씁니다

PR 세부사항

  • 기존 파일 첨부와 동일합니다
  • fileMapper의 중복을 일부 제거해 리팩토링 진행했습니다

관련 스크린샷

  • 파일 첨부
image
  • 댓글 조회
image

주의사항


체크 리스트

  • 리뷰어 설정
  • Assignee 설정
  • Label 설정
  • 제목 양식 맞췄나요? (ex. #0 Feat: 기능 추가)
  • 변경 사항에 대한 테스트

@hyxklee hyxklee requested review from huncozyboy and jj0526 August 10, 2025 06:10
@hyxklee hyxklee self-assigned this Aug 10, 2025
@hyxklee hyxklee changed the title Feat #197 댓글 파일 첨부 Feat #198 댓글 파일 첨부 Aug 10, 2025
Copy link
Collaborator

@jj0526 jj0526 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

Comment on lines +79 to +82
fileDeleteService.delete(fileList);

List<File> files = fileMapper.toFileList(dto.files(), comment);
fileSaveService.save(files);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파일을 update 하지 않고 삭제한 뒤 새로 저장한 이유가 궁금합니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정하는 게시글 파일 수가 달라지는 경우는 update로 대응할 수 없어서 깔끔하게 지우고 다시 저장하는 방향으로 설정 했습니당

@hyxklee hyxklee merged commit fa7f56a into develop Aug 12, 2025
2 checks passed
@hyxklee hyxklee deleted the feat/#196/댓글-파일-첨부 branch August 12, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants