This commit is contained in:
2023-04-28 07:09:29 +08:00
parent 1c08718840
commit c2549703f0
4 changed files with 68 additions and 21 deletions

View File

@@ -8,7 +8,9 @@ import (
type Task struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Type string `json:"type"` // 任務類型(訓練|推理)
Status string `json:"status"` // (waiting|running|success|error)
Progress int `json:"progress"` // (0-100)
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}