增加自动获取节假日
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.pomelotea.hoperun.sign.holiday
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField
|
||||
import java.time.Instant
|
||||
|
||||
data class HolidayEntry(
|
||||
val name: String? = null,
|
||||
val date: String? = null,
|
||||
@field:JSONField(name = "isOffDay")
|
||||
val isOffDay: Boolean? = null
|
||||
)
|
||||
|
||||
data class HolidayCalendar(
|
||||
val holidays: Set<String>,
|
||||
val workdays: Set<String>,
|
||||
val updatedAt: Instant
|
||||
)
|
||||
Reference in New Issue
Block a user