Files
game-driver/internal/schema/wait.go
2025-03-05 11:03:19 +08:00

27 lines
438 B
Go

package schema
type WaitType int
const (
WaitAudio WaitType = iota
WaitVideo
WaitTTS
WaitRelay
WaitWeb
WaitPJLink
)
type WaitItemModel struct {
Cron string `json:"cron"`
Type WaitType `json:"type"`
Data string `json:"data"`
Interval int64 `json:"interval"`
Pause bool `json:"pause"`
}
type WaitModel struct {
JsonModel
Cron string `json:"cron"`
Items []WaitItemModel `json:"items"`
}