待机配置
This commit is contained in:
29
internal/schema/bg.go
Normal file
29
internal/schema/bg.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package schema
|
||||
|
||||
type ItemType int
|
||||
|
||||
const (
|
||||
TYPE_AUDIO ItemType = iota
|
||||
TYPE_VIDEO
|
||||
TYPE_WEB
|
||||
TYPE_TTS
|
||||
TYPE_RELAY
|
||||
)
|
||||
|
||||
type TimeModel struct {
|
||||
Start int64
|
||||
End int64
|
||||
}
|
||||
|
||||
type BackgroundItemModel struct {
|
||||
TimeModel
|
||||
Interval int64
|
||||
Type ItemType
|
||||
Data string
|
||||
}
|
||||
|
||||
type BackgroundModel struct {
|
||||
JsonModel
|
||||
TimeModel
|
||||
Items []BackgroundItemModel
|
||||
}
|
||||
4
internal/schema/common.go
Normal file
4
internal/schema/common.go
Normal file
@@ -0,0 +1,4 @@
|
||||
package schema
|
||||
|
||||
type JsonModel interface {
|
||||
}
|
||||
@@ -19,6 +19,7 @@ type PrintModal struct {
|
||||
}
|
||||
|
||||
type PlayModal struct {
|
||||
JsonModel
|
||||
Timeout int `json:"timeout"`
|
||||
Power bool `json:"power"`
|
||||
BGM string `json:"bgm"`
|
||||
|
||||
Reference in New Issue
Block a user