基本逻辑完成

This commit is contained in:
2024-11-01 17:40:34 +08:00
commit f9b9beea4b
40 changed files with 1869 additions and 0 deletions

30
internal/schema/play.go Normal file
View File

@@ -0,0 +1,30 @@
package schema
type TTSTimer struct {
Time int `json:"time"`
Value string `json:"value"`
}
type TTSModal struct {
Start string `json:"start"`
End string `json:"end"`
Stop string `json:"stop"`
Timer []TTSTimer `json:"timer"`
}
type PrintModal struct {
Time int `json:"time"`
Text string `json:"text"`
Duration int `json:"duration"`
}
type PlayModal struct {
Timeout int `json:"timeout"`
Power bool `json:"power"`
BGM string `json:"bgm"`
Volume float64 `json:"volume"`
DefaultPrint string `json:"default-print"`
TTS TTSModal `json:"tts"`
Print []PrintModal `json:"print"`
Game map[string]any `json:"game"`
}