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

Feature/#270 마이페이지 수정 api 개발 #275

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

JJimini
Copy link
Collaborator

@JJimini JJimini commented Mar 1, 2025

#️⃣ 연관된 이슈

close: #270

📝 작업 내용

  • 마이페이지 수정 api를 개발하였습니다.

💬 리뷰 요구사항

  • 없어용~~~

@JJimini JJimini added the 🌱 기능 구현 새로운 기능을 구현하는 데 필요한 작업 또는 변경 사항 label Mar 1, 2025
@JJimini JJimini requested a review from yessjun March 1, 2025 09:06
@JJimini JJimini self-assigned this Mar 1, 2025
Comment on lines +56 to +61
@PatchMapping("/myPage/members/{memberId}")
public ResponseEntity<Void> updateMyPage(@Valid @RequestBody final MyPageUpdateRequest request,
@PathVariable final Long memberId, @LoginMember final Member member) {
memberCommandService.updateMyPage(request, memberId, member.getId());
return ResponseEntity.noContent().build();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

API 주소를 /myPage/members/{memberId}에서 /members/me로 수정하는게 어떨까요?
memberId와 로그인 member id 값을 서비스로 전달해서 값이 동일한지 검증하는 로직도 있는데 타인의 정보를 수정할 수 있는 API가 아니기 때문에 memberId 없이 로그인 정보 기반으로만 동작하도록 해도 좋을 것 같습니다.

Comment on lines +6 to +7
@NotNull(message = "이름을 입력해주세요.")
String name
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 부분은 기획에서 정의되지 않았지만 일반적으로 공백 이름이 설정되면 안되기 때문에 @notblank로 검증하는게 좋을 것 같습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 기능 구현 새로운 기능을 구현하는 데 필요한 작업 또는 변경 사항
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[FEAT] 마이페이지 수정 api 개발
2 participants