-
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/#54/게시판 게시글 작성 #74
The head ref may contain hidden characters: "feat/#54/\uAC8C\uC2DC\uD310-\uAC8C\uC2DC\uAE00-\uC791\uC131"
Conversation
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.
LGTM!
private String type; // "notice" or "general" | ||
private List<MultipartFile> postImages; | ||
|
||
public Post toEntity(User user, Space space, List<PostImage> postImages){ |
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.
p3: 정적 팩토리 메소드 of
를 사용하셔도 좋을 것 같아요
public class CreatePostRequest { | ||
private String title; | ||
private String content; | ||
private String type; // "notice" or "general" |
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.
추후에 Enum으로 관리하면 좋을 것 같습니다.
📝 요약
이슈 번호 : #54
🔖 변경 사항
✅ 리뷰 요구사항
예외처리 하는 게 감이 잘 잡히지 않아서 조언해주시면 감사하겠습니다!
또한 Post와 PostImage 사이에 매핑도 확인해주시면 감사하겠습니다!
📸 확인 방법 (선택)
이미지를 넣었는데 리스트가 비어있는 것을 확인했습니다 확인 후 수정하겠습니다
++ 추가 (이미지 테스트 성공)
PostImage와 Post 엔티티와 연결이 제대로 안된 듯 싶습니다! 수정하였습니다.
📌 PR 진행 시 이러한 점들을 참고해 주세요