待机配置

This commit is contained in:
2024-11-05 18:39:03 +08:00
parent ccfe0d311b
commit 8e2bf7f59b
15 changed files with 384 additions and 132 deletions

29
internal/schema/bg.go Normal file
View 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
}

View File

@@ -0,0 +1,4 @@
package schema
type JsonModel interface {
}

View File

@@ -19,6 +19,7 @@ type PrintModal struct {
}
type PlayModal struct {
JsonModel
Timeout int `json:"timeout"`
Power bool `json:"power"`
BGM string `json:"bgm"`