Skip to content

Commit

Permalink
chore: (#556) DateTimeFormat 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
alsdl0629 committed Feb 19, 2024
1 parent 31cbfd9 commit 00658e8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package team.aliens.dms.domain.outing
import jakarta.servlet.http.HttpServletResponse
import jakarta.validation.Valid
import jakarta.validation.constraints.NotNull
import org.springframework.format.annotation.DateTimeFormat
import org.springframework.http.HttpStatus
import org.springframework.validation.annotation.Validated
import org.springframework.web.bind.annotation.DeleteMapping
Expand Down Expand Up @@ -77,8 +78,8 @@ class OutingWebAdapter(

@GetMapping("/files")
fun exportAllOutingApplications(
@RequestParam @NotNull start: LocalDate,
@RequestParam @NotNull end: LocalDate,
@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) start: LocalDate,
@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) end: LocalDate,
httpResponse: HttpServletResponse
): ByteArray {
val response = exportAllOutingApplicationsUseCase.execute(start, end)
Expand Down

0 comments on commit 00658e8

Please sign in to comment.