Skip to content

Commit 29a621b

Browse files
committed
refactor(VolunteerQueryService): 인터페이스 의존으로 수정
1 parent 7009cf1 commit 29a621b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/somemore/volunteer/service/VolunteerQueryService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.somemore.volunteer.service;
22

3-
import com.somemore.facade.validator.VolunteerDetailAccessValidatorImpl;
3+
import com.somemore.facade.validator.VolunteerDetailAccessValidator;
44
import com.somemore.global.exception.BadRequestException;
55
import com.somemore.volunteer.domain.Volunteer;
66
import com.somemore.volunteer.domain.VolunteerDetail;
@@ -25,7 +25,7 @@ public class VolunteerQueryService implements VolunteerQueryUseCase {
2525

2626
private final VolunteerRepository volunteerRepository;
2727
private final VolunteerDetailRepository volunteerDetailRepository;
28-
private final VolunteerDetailAccessValidatorImpl volunteerDetailAccessValidatorImpl;
28+
private final VolunteerDetailAccessValidator volunteerDetailAccessValidator;
2929

3030
@Override
3131
public VolunteerResponseDto getMyProfile(UUID volunteerId) {
@@ -46,7 +46,7 @@ public VolunteerResponseDto getVolunteerProfile(UUID volunteerId) {
4646

4747
@Override
4848
public VolunteerResponseDto getVolunteerDetailedProfile(UUID volunteerId, UUID centerId) {
49-
volunteerDetailAccessValidatorImpl.validateByCenterId(centerId, volunteerId);
49+
volunteerDetailAccessValidator.validateByCenterId(centerId, volunteerId);
5050

5151
return VolunteerResponseDto.from(
5252
findVolunteer(volunteerId),

0 commit comments

Comments
 (0)