From 00658e8af9cdd54e96ac1444b93ccdb8c6327bcd Mon Sep 17 00:00:00 2001 From: Kangmin Date: Mon, 19 Feb 2024 16:34:53 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20(#556)=20DateTimeFormat=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt b/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt index 22302d1ec..808edd9d2 100644 --- a/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt +++ b/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt @@ -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 @@ -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)