-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 과제 생성 시 S3 파일 업로드 기능 구현 #60
Conversation
- @ModelAttribute를 사용해 addAssignment 메서드에서 파일 업로드 처리 - 과제 데이터와 파일 데이터를 통합하여 일관성 있게 요청 처리
- 과제 요청에 파일 데이터를 포함할 수 있도록 List<MultipartFile> files 필드 추가 - 파일 처리를 위한 getter와 setter 추가
- addAssignment 메서드에서 S3에 파일 업로드 기능 추가 - 업로드된 파일을 과제와 연결하고 관계를 관리하도록 수정 - AssignmentFile 엔티티를 활용한 과제-파일 매핑 설정
- @manytoone 관계를 Assignment와 설정 - 양방향 관계를 관리하기 위해 setAssignment 메서드 수정
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S3 파일 업로드 기능이 잘 공유되고 있군요!
Setter 관련해서 코멘트 하나 남겨드리니 확인해보시면 좋겠습니다!
고생 많으셨습니다!
return assignmentFile; | ||
} | ||
|
||
private void setAssignment(Assignment assignment) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 setter 메서드가 필요한지 고민해보시면 좋겠습니다.
생성자의 매개변수에 추가하는건 어떠신가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다음 작업 시, 긍정적으로 반영해보겠습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생 많으셨습니다!
관련 이슈
변경 사항
addAssignment
메서드 수정: 파일 업로드 로직을 추가하고@ModelAttribute
를 사용하여 요청 데이터를 처리하도록 변경AssignmentRequestDto
에 파일 업로드 필드 추가 (List<MultipartFile> files
)addAssignment
메서드에서 S3 파일 업로드 후 과제와 파일 간의 연관 관계 설정 구현AssignmentFile
로 저장하도록 수정Assignment
와AssignmentFile
간의 관계 설정 (@ManyToOne
)setAssignment
메서드 추가.gitignore
파일 업데이트.DS_Store
스크린샷
체크리스트
추후 업무