待机功能基本实现
This commit is contained in:
29
internal/schema/wait.go
Normal file
29
internal/schema/wait.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package schema
|
||||
|
||||
type WaitType int
|
||||
|
||||
const (
|
||||
WaitAudio WaitType = iota
|
||||
WaitVideo
|
||||
WaitWeb
|
||||
WaitTTS
|
||||
WaitRelay
|
||||
)
|
||||
|
||||
type TimeModel struct {
|
||||
Start int64
|
||||
End int64
|
||||
}
|
||||
|
||||
type WaitItemModel struct {
|
||||
TimeModel
|
||||
Type WaitType
|
||||
Data string
|
||||
Interval int64
|
||||
}
|
||||
|
||||
type WaitModel struct {
|
||||
JsonModel
|
||||
TimeModel
|
||||
Items []WaitItemModel
|
||||
}
|
||||
Reference in New Issue
Block a user