11package com .somemore .domains .volunteerapply .controller ;
22
3- import static org .springframework .data .domain .Sort .Direction .DESC ;
4-
3+ import com .somemore .domains .volunteerapply .domain .ApplyStatus ;
54import com .somemore .domains .volunteerapply .dto .condition .VolunteerApplySearchCondition ;
65import com .somemore .domains .volunteerapply .dto .response .VolunteerApplyRecruitInfoResponseDto ;
76import com .somemore .domains .volunteerapply .dto .response .VolunteerApplySummaryResponseDto ;
109import com .somemore .domains .volunteerapply .usecase .VolunteerApplyQueryUseCase ;
1110import com .somemore .global .auth .annotation .CurrentUser ;
1211import com .somemore .global .common .response .ApiResponse ;
13- import com .somemore .global .exception .BadRequestException ;
14- import com .somemore .domains .volunteerapply .domain .ApplyStatus ;
12+ import com .somemore .global .exception .NoSuchElementException ;
1513import io .swagger .v3 .oas .annotations .Operation ;
1614import io .swagger .v3 .oas .annotations .tags .Tag ;
17- import java .util .UUID ;
1815import lombok .RequiredArgsConstructor ;
1916import org .springframework .data .domain .Page ;
2017import org .springframework .data .domain .Pageable ;
2118import org .springframework .data .web .PageableDefault ;
2219import org .springframework .security .access .annotation .Secured ;
23- import org .springframework .web .bind .annotation .GetMapping ;
24- import org . springframework . web . bind . annotation . PathVariable ;
25- import org . springframework . web . bind . annotation . RequestMapping ;
26- import org . springframework . web . bind . annotation . RequestParam ;
27- import org .springframework .web . bind . annotation . RestController ;
20+ import org .springframework .web .bind .annotation .* ;
21+
22+ import java . util . UUID ;
23+
24+ import static org .springframework .data . domain . Sort . Direction . DESC ;
2825
2926@ Tag (name = "Volunteer Apply Query API" , description = "봉사 활동 지원 조회 API" )
3027@ RequiredArgsConstructor
@@ -48,7 +45,7 @@ public ApiResponse<?> getVolunteerApplyByRecruitIdAndVolunteerId(
4845 recruitBoardId , volunteerId ),
4946 "특정 모집글에 대한 봉사자 지원 단건 조회 성공"
5047 );
51- } catch (BadRequestException e ) {
48+ } catch (NoSuchElementException e ) {
5249 return ApiResponse .ok (210 , "지원 내역이 없습니다." );
5350 }
5451 }
0 commit comments