Skip to content

Commit

Permalink
refactor(ExecutiveRegisterController): 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SongJaeHoonn committed Dec 28, 2024
1 parent ce80cc1 commit 2d1be29
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
Expand All @@ -28,7 +29,7 @@ public class ExecutiveRegisterController {
@PreAuthorize("hasRole('ADMIN')")
@PostMapping("")
public ApiResponse<String> registerExecutive(
@RequestBody ExecutiveRequestDto requestDto
@Valid @RequestBody ExecutiveRequestDto requestDto
) {
String id = registerExecutiveUseCase.registerExecutive(requestDto);
return ApiResponse.success(id);
Expand Down

0 comments on commit 2d1be29

Please sign in to comment.