优化逻辑

This commit is contained in:
2025-03-13 19:18:10 +08:00
parent 7a07f39f1b
commit 4189705922
14 changed files with 185 additions and 37 deletions

View File

@@ -9,14 +9,17 @@ const (
WaitRelay
WaitWeb
WaitPJLink
WaitLaserShow
)
type WaitItemModel struct {
Cron string `json:"cron"`
Type WaitType `json:"type"`
Data string `json:"data"`
Interval int64 `json:"interval"`
Pause bool `json:"pause"`
Cron string `json:"cron"` // 时间规则
Type WaitType `json:"type"` // 类型
Data string `json:"data"` // 执行数据
Duration int64 `json:"duration"` // 持续时长
Interval int64 `json:"interval"` // 间隔时间
Pause bool `json:"pause"` // 是否暂停
Lock bool `json:"lock"` // 是否锁定
}
type WaitModel struct {