유저 행동 데이터, 포인트 추가 #309

Merged
klaus merged 25 commits from test into main 2025-04-24 02:44:58 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit cb7917dc26 - Show all commits

View File

@ -12,8 +12,7 @@ data class CreatePointRewardPolicyRequest(
val threshold: Int, val threshold: Int,
val pointAmount: Int, val pointAmount: Int,
val startDate: String, val startDate: String,
val endDate: String, val endDate: String
val isActive: Boolean
) { ) {
fun toEntity(): PointRewardPolicy { fun toEntity(): PointRewardPolicy {
val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm") val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")
@ -31,7 +30,7 @@ data class CreatePointRewardPolicyRequest(
.atZone(ZoneId.of("Asia/Seoul")) .atZone(ZoneId.of("Asia/Seoul"))
.withZoneSameInstant(ZoneId.of("UTC")) .withZoneSameInstant(ZoneId.of("UTC"))
.toLocalDateTime(), .toLocalDateTime(),
isActive = isActive isActive = true
) )
} }
} }