File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/main/java/com/somemore/volunteerapply/controller Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 33import com .somemore .auth .annotation .CurrentUser ;
44import com .somemore .global .common .response .ApiResponse ;
55import com .somemore .volunteerapply .usecase .ApproveVolunteerApplyUseCase ;
6+ import com .somemore .volunteerapply .usecase .RejectVolunteerApplyUseCase ;
67import io .swagger .v3 .oas .annotations .Operation ;
78import io .swagger .v3 .oas .annotations .tags .Tag ;
89import java .util .UUID ;
2021public class CenterVolunteerApplyCommandApiController {
2122
2223 private final ApproveVolunteerApplyUseCase approveVolunteerApplyUseCase ;
24+ private final RejectVolunteerApplyUseCase rejectVolunteerApplyUseCase ;
2325
2426 @ Secured ("ROLE_CENTER" )
2527 @ Operation (summary = "봉사 활동 지원 승인" , description = "봉사 활동 지원을 승인합니다." )
@@ -33,4 +35,16 @@ public ApiResponse<String> approve(
3335 return ApiResponse .ok ("봉사 활동 지원 승인 성공" );
3436 }
3537
38+ @ Secured ("ROLE_CENTER" )
39+ @ Operation (summary = "봉사 활동 지원 거절" , description = "봉사 활동 지원을 거절합니다." )
40+ @ PatchMapping ("/volunteer-apply/{id}/reject" )
41+ public ApiResponse <String > reject (
42+ @ CurrentUser UUID centerId ,
43+ @ PathVariable Long id
44+ ) {
45+
46+ rejectVolunteerApplyUseCase .reject (id , centerId );
47+ return ApiResponse .ok ("봉사 활동 지원 거절 성공" );
48+ }
49+
3650}
You can’t perform that action at this time.
0 commit comments