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] 봉사자 프로필 조회 기능 추가 #323

Merged
merged 7 commits into from
Jan 23, 2025

Conversation

m-a-king
Copy link
Collaborator

resolved :

📌 과제 설명

봉사자 프로필 조회 기능 추가

👩‍💻 요구 사항과 구현 내용

봉사자 프로필 조회 기능 추가 (유저, 봉사자 아이디 기준)

@m-a-king m-a-king self-assigned this Jan 22, 2025
@m-a-king m-a-king linked an issue Jan 22, 2025 that may be closed by this pull request
2 tasks
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

빌드에 실패했습니다.

@github-actions github-actions bot changed the title [FEATURE] 봉사자 프로필 조회 기능 추가 [BUILD FAIL] [FEATURE] 봉사자 프로필 조회 기능 추가 Jan 22, 2025
@github-actions github-actions bot closed this Jan 22, 2025
@m-a-king m-a-king reopened this Jan 22, 2025
@m-a-king m-a-king changed the title [BUILD FAIL] [FEATURE] 봉사자 프로필 조회 기능 추가 [FEATURE] 봉사자 프로필 조회 기능 추가 Jan 22, 2025
Copy link
Collaborator

@leebs0521 leebs0521 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
Collaborator

@ayoung-dev ayoung-dev left a comment

Choose a reason for hiding this comment

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

고생하셨습니당

- 사용되지 않는 기존의 VolunteerProfile 조회 메서드 및 테스트 제거
- VolunteerQueryUseCase와 VolunteerQueryServiceTest에서 불필요한 import 삭제
- VolunteerProfileResponseDto 생성 및 봉사자 DTO 정의
- GetVolunteerProfileUseCase 인터페이스 및 구현체 추가
- VolunteerProfileQueryController에서 프로필 조회 기능 수정 및 서비스 연동
- 관련 도메인, 유즈케이스 의존성 업데이트
- 성공적인 봉사자 프로필 조회 테스트 케이스 작성
- 존재하지 않는 봉사자 프로필 조회 시 예외 발생 테스트 포함
- NEWRegisterVolunteerService를 RegisterNEWVolunteerService로 클래스명 변경
- 관련 테스트 클래스 및 필드명도 동일하게 수정
- 봉사자 ID를 기반으로 프로필 조회 기능 추가
- VolunteerQueryUseCase에 `getById` 및 `getUserIdById` 메서드 확장
- VolunteerProfileQueryController에 새로운 엔드포인트 추가:
  - `GET /user-id/{userId}`: 유저 ID 기반 프로필 조회
  - `GET /volunteer-id/{volunteerId}`: 봉사자 ID 기반 프로필 조회
- 기존 `getProfile` 메서드를 `getProfileByUserId`로 변경
- `getProfileByVolunteerId` 메서드 추가하여 봉사자 ID 활용 로직 연결
- 봉사자 ID로 봉사자를 조회하는 테스트 추가
- 봉사자 ID로 유저 ID를 조회하는 테스트 추가
- 기존 테스트의 DisplayName 수정 및 표현 개선
- `findVolunteer`와 `findVolunteerDetail` 메서드 제거
  - 사용되지 않는 메서드로 판단하여 삭제
- `NEWVolunteerRepository` 변수명을 `volunteerRepository`로 변경
  - 가독성 및 네이밍 일관성 강화
@m-a-king m-a-king merged commit 3cdb3b9 into main Jan 23, 2025
3 checks passed
@m-a-king m-a-king deleted the feature/321-add-get-volunteer-profile branch January 23, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] 봉사자 프로필 조회
4 participants