package schema type WaitType int const ( WaitAudio WaitType = iota WaitVideo WaitTTS WaitRelay WaitWeb WaitPJLink WaitLaserShow ) type WaitItemModel struct { Cron string `json:"cron"` // 时间规则 Type WaitType `json:"type"` // 类型 Data string `json:"data"` // 执行数据 Duration int64 `json:"duration"` // 持续时长 Interval int64 `json:"interval"` // 间隔时间 Pause bool `json:"pause"` // 是否暂停 Lock bool `json:"lock"` // 是否锁定 } type WaitModel struct { JsonModel Cron string `json:"cron"` Items []WaitItemModel `json:"items"` }