Skip to content
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

Merged
merged 9 commits into from
Jan 23, 2025
Merged

Conversation

leeseulgi0208
Copy link
Contributor

@leeseulgi0208 leeseulgi0208 commented Jan 22, 2025

개요

청첩장 조회 (정보, Account 리스트, 사진 url 리스트)

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • 버그 수정
  • CSS 등 사용자 UI 디자인 변경
  • 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
  • 코드 리팩토링
  • 주석 추가 및 수정
  • 문서 수정
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).
    image
    image

📣 To Reviewers

외부인이 조회할 수 있는 api는 따로 제작 예정
에러 핸들링 마지막에 한 번에 할 예정

@leeseulgi0208 leeseulgi0208 added feat New feature or request 위즈 labels Jan 22, 2025
@leeseulgi0208 leeseulgi0208 self-assigned this Jan 22, 2025
@leeseulgi0208 leeseulgi0208 linked an issue Jan 22, 2025 that may be closed by this pull request
2 tasks
@leeseulgi0208 leeseulgi0208 changed the title [feat] 청첩장 조회 api [feat] 청첩장 조회 API Jan 22, 2025
Copy link
Contributor

@dyk-im dyk-im left a 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;

Copy link
Contributor

Choose a reason for hiding this comment

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

통상적으로 응답DTO에서는 유효성 검증을 하지 않습니다! 정말 필요한 것이 아니라면 서비스 로직에서 에러 핸들링을 하는 것이 좋을 것 같습니다!

Copy link
Contributor Author

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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

그리고 클래스 명의 DTO는 컨벤션에따라 파스칼 케이스를 사용하고자 본인 담당 DTO를 Dto로 수정해주시면 감사하겠습니다!

Copy link
Contributor Author

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로 변경 완료했습니다!

Copy link
Contributor

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)));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

추후 비회원의 조회도 및 URL 생성 api까지 잘 부탁드리겠습니다! 그리고 본인 청첩장 조회의 역할이라면 Member 객체까지 활용하여 멤버와 청첩장 id 가 일치하는 것을 레포지토리에서 조회하는 것이 데이터의 무결성을 보장하기에 좋다고 생각하는데 이 부분에 대해 어떻게 생각하시나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

좋은 생각인 것 같습니다! 추후 member 객체 활용하는 부분 추가하며 한꺼번에 추가하도록 하겠습니다!

Copy link
Contributor

@dyk-im dyk-im left a comment

Choose a reason for hiding this comment

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

고생하셨고 다른 문제는 없는 것 같습니다!

Copy link
Contributor

@dogsub dogsub left a comment

Choose a reason for hiding this comment

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

전반적으로 문제없어보입니다. 늦은 시간까지 고생많으셨습니다!

@KyunghwanChoi
Copy link
Contributor

문제될 부분 없어 보입니다! 고생하셨습니다

@leeseulgi0208 leeseulgi0208 merged commit 8766c1a into develop Jan 23, 2025
2 checks passed
@dyk-im dyk-im deleted the feat/#27-청첩장-조회-API2 branch January 24, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request 위즈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 청첩장 조회 API
4 participants