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(메인) - #57 #60

Merged
merged 4 commits into from
Jul 11, 2024
Merged

Conversation

sjk4618
Copy link
Member

@sjk4618 sjk4618 commented Jul 10, 2024

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

  • 유저 프로필 조회 API(메인)
public class UserService {
    private final UserRepository userRepository;

    public UserInfoMainRes getUserInfoMain(final Long userId) {
        User foundUser = findUserById(userId);
        return UserInfoMainRes.of(foundUser.getName(), foundUser.getTotalPoint(), foundUser.getImageUrl());
    }

📟 관련 이슈

Copy link
Member

@rlarlgnszx rlarlgnszx left a comment

Choose a reason for hiding this comment

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

굿 👍 수고하셨습니다!

return UserInfoMainRes.of(foundUser.getName(), foundUser.getTotalPoint(), foundUser.getImageUrl());
}

private User findUserById(Long 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 붙여주시면 감사하겠습니다!

# Conflicts:
#	dateroad-api/src/main/java/org/dateroad/user/api/UserController.java
@sjk4618 sjk4618 merged commit 5af23fa into develop Jul 11, 2024
1 check passed
@sjk4618 sjk4618 deleted the feature/#57 branch July 11, 2024 19:30
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