基本逻辑完成
This commit is contained in:
30
internal/schema/play.go
Normal file
30
internal/schema/play.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user