From c89297af79b058242fd07149a825b065e57e0ed4 Mon Sep 17 00:00:00 2001 From: belljun3395 <195850@jnu.ac.kr> Date: Sun, 8 Sep 2024 21:32:35 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20LocalDateTime=20JsonFormat=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/web/controller/article/response/ReadArticleResponse.kt | 2 -- .../workbook/article/response/ReadWorkBookArticleResponse.kt | 2 -- .../web/controller/workbook/response/BrowseWorkBooksResponse.kt | 2 -- .../web/controller/workbook/response/ReadWorkBookResponse.kt | 2 -- 4 files changed, 8 deletions(-) diff --git a/api/src/main/kotlin/com/few/api/web/controller/article/response/ReadArticleResponse.kt b/api/src/main/kotlin/com/few/api/web/controller/article/response/ReadArticleResponse.kt index fa609cfa..ecb76a62 100644 --- a/api/src/main/kotlin/com/few/api/web/controller/article/response/ReadArticleResponse.kt +++ b/api/src/main/kotlin/com/few/api/web/controller/article/response/ReadArticleResponse.kt @@ -1,6 +1,5 @@ package com.few.api.web.controller.article.response -import com.fasterxml.jackson.annotation.JsonFormat import java.net.URL import java.time.LocalDateTime @@ -12,7 +11,6 @@ data class ReadArticleResponse( val content: String, val problemIds: List, val category: String, - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") val createdAt: LocalDateTime, val views: Long, val workbooks: List = emptyList(), diff --git a/api/src/main/kotlin/com/few/api/web/controller/workbook/article/response/ReadWorkBookArticleResponse.kt b/api/src/main/kotlin/com/few/api/web/controller/workbook/article/response/ReadWorkBookArticleResponse.kt index 4279a4f1..2d10346a 100644 --- a/api/src/main/kotlin/com/few/api/web/controller/workbook/article/response/ReadWorkBookArticleResponse.kt +++ b/api/src/main/kotlin/com/few/api/web/controller/workbook/article/response/ReadWorkBookArticleResponse.kt @@ -1,6 +1,5 @@ package com.few.api.web.controller.workbook.article.response -import com.fasterxml.jackson.annotation.JsonFormat import com.few.api.domain.workbook.article.dto.ReadWorkBookArticleOut import com.few.api.web.controller.workbook.response.WriterInfo import java.time.LocalDateTime @@ -12,7 +11,6 @@ data class ReadWorkBookArticleResponse( val content: String, val problemIds: List, val category: String, - @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") val createdAt: LocalDateTime, val day: Long, ) { diff --git a/api/src/main/kotlin/com/few/api/web/controller/workbook/response/BrowseWorkBooksResponse.kt b/api/src/main/kotlin/com/few/api/web/controller/workbook/response/BrowseWorkBooksResponse.kt index 23434471..bedb84de 100644 --- a/api/src/main/kotlin/com/few/api/web/controller/workbook/response/BrowseWorkBooksResponse.kt +++ b/api/src/main/kotlin/com/few/api/web/controller/workbook/response/BrowseWorkBooksResponse.kt @@ -1,6 +1,5 @@ package com.few.api.web.controller.workbook.response -import com.fasterxml.jackson.annotation.JsonFormat import java.net.URL import java.time.LocalDateTime @@ -14,7 +13,6 @@ data class BrowseWorkBookInfo( val title: String, val description: String, val category: String, - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") val createdAt: LocalDateTime, val writers: List, val subscriberCount: Long, diff --git a/api/src/main/kotlin/com/few/api/web/controller/workbook/response/ReadWorkBookResponse.kt b/api/src/main/kotlin/com/few/api/web/controller/workbook/response/ReadWorkBookResponse.kt index 26e4ff94..090ef090 100644 --- a/api/src/main/kotlin/com/few/api/web/controller/workbook/response/ReadWorkBookResponse.kt +++ b/api/src/main/kotlin/com/few/api/web/controller/workbook/response/ReadWorkBookResponse.kt @@ -1,6 +1,5 @@ package com.few.api.web.controller.workbook.response -import com.fasterxml.jackson.annotation.JsonFormat import com.few.api.domain.workbook.usecase.dto.ReadWorkbookUseCaseOut import java.net.URL import java.time.LocalDateTime @@ -11,7 +10,6 @@ data class ReadWorkBookResponse( val title: String, val description: String, val category: String, - @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") val createdAt: LocalDateTime, val writers: List, val articles: List,