Skip to content

Commit

Permalink
refactor: LocalDateTime JsonFormat 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Sep 8, 2024
1 parent 8893981 commit c89297a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -12,7 +11,6 @@ data class ReadArticleResponse(
val content: String,
val problemIds: List<Long>,
val category: String,
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
val createdAt: LocalDateTime,
val views: Long,
val workbooks: List<WorkbookInfo> = emptyList(),
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,7 +11,6 @@ data class ReadWorkBookArticleResponse(
val content: String,
val problemIds: List<Long>,
val category: String,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
val createdAt: LocalDateTime,
val day: Long,
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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<WriterInfo>,
val subscriberCount: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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<WriterInfo>,
val articles: List<ArticleInfo>,
Expand Down

0 comments on commit c89297a

Please sign in to comment.