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(마이페이지) - #61 #76

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

sjk4618
Copy link
Member

@sjk4618 sjk4618 commented Jul 11, 2024

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

  • 유저 프로필 조회 API(마이페이지) API 구현
    public UserInfoGetMyPageRes getUserInfoMyPage(final Long userId) {
        User foundUser = findUserById(userId);
        List<UserTag> userTags= userTagRepository.findAllByUserId(userId);
        List<DateTagType> dateTagTypes =
                userTags
                .stream()
                .map(UserTag::getDateTagType)
                .toList();

        return UserInfoGetMyPageRes.of(foundUser.getName(), dateTagTypes, 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.

수고하셨습니다!


import java.util.List;

@Builder
Copy link
Member

Choose a reason for hiding this comment

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

access 설정! 있습니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

어떤 말씀이시죵?

# Conflicts:
#	dateroad-api/src/main/java/org/dateroad/user/api/UserController.java
#	dateroad-api/src/main/java/org/dateroad/user/service/UserService.java
#	dateroad-domain/src/main/java/org/dateroad/tag/repository/UserTagRepository.java
@sjk4618 sjk4618 merged commit bf4f329 into develop Jul 12, 2024
1 check passed
@sjk4618 sjk4618 deleted the feature/#61 branch July 12, 2024 08:49
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