25 lines
392 B
Go
25 lines
392 B
Go
package schema
|
|
|
|
type WaitType int
|
|
|
|
const (
|
|
WaitAudio WaitType = iota
|
|
WaitVideo
|
|
WaitTTS
|
|
WaitRelay
|
|
WaitWeb
|
|
)
|
|
|
|
type WaitItemModel struct {
|
|
Cron string `json:"cron"`
|
|
Type WaitType `json:"type"`
|
|
Data string `json:"data"`
|
|
Interval int64 `json:"interval"`
|
|
}
|
|
|
|
type WaitModel struct {
|
|
JsonModel
|
|
Cron string `json:"cron"`
|
|
Items []WaitItemModel `json:"items"`
|
|
}
|