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

Merged
merged 5 commits into from
Jan 9, 2024
Merged

[feat] 프로필 조회 API 구현 #40

merged 5 commits into from
Jan 9, 2024

Conversation

gardening-y
Copy link
Member

Related Issue 📌

close #37

Description ✔️

  • UserService에 프로필 조회 비즈니스 로직을 구현하였습니다.
  • UserApiController 클래스의 getProfile 메서드를 구현하였습니다.
  • 프로필 조회 응답 dto로 ProfileGetResponse를 구현하였습니다.


@GetMapping("/profile")
public ResponseEntity<ApiResponse<?>> getProfile(@UserId final Long userId) {
ProfileGetResponse response = userService.getProfile(userId);
Copy link
Member

Choose a reason for hiding this comment

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

데이터 불변성 보장을 위해 final 키워드를 사용해도 좋을 것 같습니다.

@gardening-y gardening-y merged commit f298d32 into develop Jan 9, 2024
1 check passed
@SunwoongH SunwoongH deleted the feature/37 branch July 11, 2024 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 프로필 조회 API 구현
2 participants