feat: add startup task and fix backup import

This commit is contained in:
engigu
2026-02-26 10:43:49 +08:00
parent afb412e71c
commit acc65dce64
12 changed files with 131 additions and 66 deletions
+2
View File
@@ -11,6 +11,7 @@ type TaskVO struct {
Name string `json:"name"`
Command string `json:"command"`
Type string `json:"type"`
TriggerType string `json:"trigger_type"`
Config string `json:"config"`
Schedule string `json:"schedule"`
Timeout int `json:"timeout"`
@@ -36,6 +37,7 @@ func ToTaskVO(task *models.Task) *TaskVO {
Name: task.Name,
Command: task.Command,
Type: task.Type,
TriggerType: task.TriggerType,
Config: task.Config,
Schedule: task.Schedule,
Timeout: task.Timeout,