15 lines
400 B
Kotlin
15 lines
400 B
Kotlin
package net.halfbinary.scavengerhuntapi.model.request
|
|
|
|
import jakarta.validation.constraints.Future
|
|
import jakarta.validation.constraints.NotBlank
|
|
import java.time.LocalDateTime
|
|
|
|
data class HuntCreateRequest(
|
|
@field:NotBlank(message = "Hunt title is required")
|
|
val title: String,
|
|
@field:Future
|
|
val startDateTime: LocalDateTime,
|
|
@field:Future
|
|
val endDateTime: LocalDateTime,
|
|
)
|