Skip to content

Commit

Permalink
Modify Datetime Response Form
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Dec 20, 2023
1 parent 6074101 commit 67f0fec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.whatever.raisedragon.controller.goal

import com.fasterxml.jackson.annotation.JsonFormat
import com.whatever.raisedragon.domain.betting.PredictionType
import com.whatever.raisedragon.domain.betting.Result
import com.whatever.raisedragon.domain.goal.BettingType
Expand Down Expand Up @@ -61,9 +62,11 @@ data class GoalResponse(
@Schema(description = "다짐 인증 횟수")
val threshold: Threshold,

@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
@Schema(description = "다짐 시작 시간")
val startDate: LocalDateTime,

@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
@Schema(description = "다짐 마감 시간")
val endDate: LocalDateTime
) {
Expand All @@ -87,6 +90,7 @@ data class GoalBettingHost(
@Schema(description = "호스트 유저 닉네임")
val nickname: String,

@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
@Schema(description = "다짐 생성 시각")
val goalCreatedAt: LocalDateTime,
)
Expand All @@ -107,6 +111,7 @@ data class GoalBettingParticipant(
@Schema(description = "당첨 여부")
val result: Result,

@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
@Schema(description = "배팅 한 시각")
val bettingCreatedAt: LocalDateTime,
)
Expand Down

0 comments on commit 67f0fec

Please sign in to comment.