feat(content-ranking): 랭킹 공개 시각 정책을 추가한다
This commit is contained in:
@@ -25,7 +25,15 @@ class CreatorRankingPeriodPolicy {
|
||||
)
|
||||
}
|
||||
|
||||
fun resolveVisibleFromAtUtc(aggregationEndAtKst: LocalDateTime): LocalDateTime {
|
||||
return aggregationEndAtKst.plusHours(VISIBLE_DELAY_HOURS)
|
||||
.atZone(KST_ZONE)
|
||||
.withZoneSameInstant(UTC_ZONE)
|
||||
.toLocalDateTime()
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val VISIBLE_DELAY_HOURS = 9L
|
||||
private val KST_ZONE: ZoneId = ZoneId.of("Asia/Seoul")
|
||||
private val UTC_ZONE: ZoneId = ZoneId.of("UTC")
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package kr.co.vividnext.sodalive.v2.ranking.domain
|
||||
|
||||
enum class CreatorRankingType {
|
||||
WEEKLY
|
||||
}
|
||||
Reference in New Issue
Block a user