-
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] 청첩장 조회 API #34
The head ref may contain hidden characters: "feat/#27-\uCCAD\uCCA9\uC7A5-\uC870\uD68C-API2"
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.
코드 확인 모두 마쳤습니다! 고생하셨습니다. 확인 후 논의할 부분, 수정할 부분 리뷰 남겼으니 확인부탁드려요!
그리고 추후 에러 핸들링도 잊지마시고 해주세요!
|
||
@NotNull(message = "location cannot be null") | ||
private int location; | ||
|
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.
통상적으로 응답DTO에서는 유효성 검증을 하지 않습니다! 정말 필요한 것이 아니라면 서비스 로직에서 에러 핸들링을 하는 것이 좋을 것 같습니다!
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.
유효성 검증 부분 삭제했습니다!
|
||
@Getter | ||
@NoArgsConstructor | ||
public class ImageResponseDTO { |
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.
그리고 클래스 명의 DTO는 컨벤션에따라 파스칼 케이스를 사용하고자 본인 담당 DTO를 Dto로 수정해주시면 감사하겠습니다!
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.
Invitation 관련, Account 관련, Image 관련 DTO 모두 DTO -> Dto로 변경 완료했습니다!
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.
혹시 겹치는 부분있으면 환이님한테도 꼭 알려주세요! 컨플릭트 납니다
@PathVariable Long invitationId){ | ||
return ResponseEntity.status(HttpStatus.OK) | ||
.body(GlobalResponseDto.success(invitationService.getInvitation(invitationId))); | ||
} |
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.
추후 비회원의 조회도 및 URL 생성 api까지 잘 부탁드리겠습니다! 그리고 본인 청첩장 조회의 역할이라면 Member 객체까지 활용하여 멤버와 청첩장 id 가 일치하는 것을 레포지토리에서 조회하는 것이 데이터의 무결성을 보장하기에 좋다고 생각하는데 이 부분에 대해 어떻게 생각하시나요?
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.
좋은 생각인 것 같습니다! 추후 member 객체 활용하는 부분 추가하며 한꺼번에 추가하도록 하겠습니다!
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.
전반적으로 문제없어보입니다. 늦은 시간까지 고생많으셨습니다!
문제될 부분 없어 보입니다! 고생하셨습니다 |
개요
청첩장 조회 (정보, Account 리스트, 사진 url 리스트)
PR 유형
어떤 변경 사항이 있나요?
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
📣 To Reviewers
외부인이 조회할 수 있는 api는 따로 제작 예정
에러 핸들링 마지막에 한 번에 할 예정