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(내가 등록한 코스) 구현 - #80 #84

Merged
merged 6 commits into from
Jul 12, 2024

Conversation

gardening-y
Copy link
Contributor

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

유저 등록 데이트 코스 조회 API(내가 등록한 코스)를 구현했습니다.

    public DateAccessGetAllRes getMyCourses(Long userId) {
        User findUser = getUser(userId);
        List<Course> courses = courseRepository.findByUser(findUser);
        List<CourseDtoGetRes> courseDtoGetResList = convertToDtoList(courses, Function.identity());
        return DateAccessGetAllRes.of(courseDtoGetResList);
    }

userId를 통해 User를 가져오고, 해당 User로 작성된 Course를 가져와서 Dto로 변환해서 반환해줍니다. 이때 변환하는 함수는 기존에 있는 함수를 재사용했습니다.

🚨 참고 사항

📟 관련 이슈

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.

윤가든 매서워요..새벽까지 .. 이러다 반할듯 !
👍

Copy link
Member

@sjk4618 sjk4618 left a comment

Choose a reason for hiding this comment

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

LGTM~

@gardening-y gardening-y merged commit fa40648 into develop Jul 12, 2024
1 check passed
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(내가 등록한 코스) 구현
3 participants