11package clap .server .adapter .inbound .web .task ;
22
33import clap .server .adapter .inbound .web .dto .task .request .FilterTeamStatusRequest ;
4-
54import clap .server .adapter .inbound .web .dto .task .response .TeamStatusResponse ;
65import clap .server .application .service .task .TeamStatusService ;
76import clap .server .common .annotation .architecture .WebAdapter ;
87import io .swagger .v3 .oas .annotations .Operation ;
98import io .swagger .v3 .oas .annotations .tags .Tag ;
109import lombok .RequiredArgsConstructor ;
1110import org .springframework .http .ResponseEntity ;
12- import org .springframework .validation .annotation .Validated ;
13- import org .springframework .web .bind .annotation .*;
11+ import org .springframework .security .access .annotation .Secured ;
12+ import org .springframework .web .bind .annotation .GetMapping ;
13+ import org .springframework .web .bind .annotation .ModelAttribute ;
14+ import org .springframework .web .bind .annotation .RequestMapping ;
1415
1516import java .util .List ;
1617
@@ -23,6 +24,7 @@ public class TeamStatusController {
2324 private final TeamStatusService teamStatusService ;
2425 @ Operation (summary = "팀 현황 필터링 조회 API" )
2526 @ GetMapping ("/filter" )
27+ @ Secured ("ROLE_MANAGER" )
2628 public ResponseEntity <TeamStatusResponse > filterTeamStatus (@ ModelAttribute FilterTeamStatusRequest filter ) {
2729 TeamStatusResponse response = teamStatusService .filterTeamStatus (filter );
2830 return ResponseEntity .ok (response != null ? response : new TeamStatusResponse (List .of (), 0 , 0 , 0 ));
0 commit comments