From d5877b2a1915962526d6cc2d51e95582f20afd9a Mon Sep 17 00:00:00 2001 From: belljun3395 <195850@jnu.ac.kr> Date: Tue, 27 Aug 2024 13:47:18 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20@JsonFormat(pattern=20=3D"yyyy-MM-d?= =?UTF-8?q?d=20HH:mm:sss")=20=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 -- .../response/MainViewBrowseSubscribeWorkbooksResponse.kt | 2 -- .../workbook/article/response/ReadWorkBookArticleResponse.kt | 2 -- .../web/controller/workbook/response/BrowseWorkBooksResponse.kt | 2 -- .../web/controller/workbook/response/ReadWorkBookResponse.kt | 2 -- 5 files changed, 10 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 fa609cfa0..ecb76a624 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/subscription/response/MainViewBrowseSubscribeWorkbooksResponse.kt b/api/src/main/kotlin/com/few/api/web/controller/subscription/response/MainViewBrowseSubscribeWorkbooksResponse.kt index ccf23008a..c7a8b2972 100644 --- a/api/src/main/kotlin/com/few/api/web/controller/subscription/response/MainViewBrowseSubscribeWorkbooksResponse.kt +++ b/api/src/main/kotlin/com/few/api/web/controller/subscription/response/MainViewBrowseSubscribeWorkbooksResponse.kt @@ -1,6 +1,5 @@ package com.few.api.web.controller.subscription.response -import com.fasterxml.jackson.annotation.JsonFormat import com.fasterxml.jackson.annotation.JsonInclude import com.few.api.domain.workbook.usecase.dto.WriterDetail import java.net.URL @@ -17,7 +16,6 @@ data class MainViewSubscribeWorkbookInfo( 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 writerDetails: List, val subscriptionCount: Long, 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 4279a4f10..2d10346aa 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 23434471d..bedb84de9 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 26e4ff94c..090ef090f 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,