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 구현 #77

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

Sangwook02
Copy link
Member

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 재학생 인증 여부를 확인하기 위한 api를 구현했습니다.

📝 참고사항

📚 기타

@Sangwook02 Sangwook02 added the ✨ feature 새로운 기능 추가 및 수정 label Feb 17, 2024
@Sangwook02 Sangwook02 self-assigned this Feb 17, 2024
@Sangwook02 Sangwook02 requested a review from a team as a code owner February 17, 2024 10:18

public MemberUnivStatusResponse checkUnivVerificationStatus() {
Member currentMember = memberUtil.getCurrentMember();
return new MemberUnivStatusResponse(currentMember.getUnivStatus());
Copy link
Member

Choose a reason for hiding this comment

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

정적 팩토리 메서드 사용하도록 수정해주세요


public MemberUnivStatusResponse checkUnivVerificationStatus() {
Member currentMember = memberUtil.getCurrentMember();
return new MemberUnivStatusResponse(currentMember.getUnivStatus());
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return new MemberUnivStatusResponse(currentMember.getUnivStatus());
return MemberUnivStatusResponse.from(currentMember);

@@ -33,4 +34,9 @@ public MemberInfoResponse getMemberInfo() {
Member currentMember = memberUtil.getCurrentMember();
return MemberInfoResponse.of(currentMember);
Copy link
Member

Choose a reason for hiding this comment

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

그리고 응답 DTO 만들 때 from, of 헷갈리는 케이스 있는 것 같은데 이거 별도 이슈로 빼서 작업해주시면 좋을듯요

Copy link
Member Author

Choose a reason for hiding this comment

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

급한 이슈들 먼저 처리하고 진행해볼게요👍

Copy link
Member

@uwoobeat uwoobeat left a comment

Choose a reason for hiding this comment

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

어푸푸

@Sangwook02 Sangwook02 merged commit 2f5ab62 into develop Feb 19, 2024
1 check passed
@Sangwook02 Sangwook02 deleted the feature/76-check-univ-verification branch February 20, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature 새로운 기능 추가 및 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ 재학생 인증 확인 API
2 participants