Files
game-driver/internal/schema/wait.go
2024-11-06 16:01:03 +08:00

30 lines
425 B
Go

package schema
type WaitType int
const (
WaitAudio WaitType = iota
WaitVideo
WaitTTS
WaitRelay
WaitWeb
)
type TimeModel struct {
Start int64 `json:"start"`
End int64 `json:"end"`
}
type WaitItemModel struct {
TimeModel
Type WaitType `json:"type"`
Data string `json:"data"`
Interval int64 `json:"interval"`
}
type WaitModel struct {
JsonModel
TimeModel
Items []WaitItemModel `json:"items"`
}