diff --git a/types/task.go b/types/task.go index d88958b..7e94a49 100644 --- a/types/task.go +++ b/types/task.go @@ -2,8 +2,6 @@ package types import ( "encoding/json" - - "git.lastassault.de/speatzle/morffix/task" ) type TaskStart struct { @@ -13,6 +11,14 @@ type TaskStart struct { Data json.RawMessage } -type TaskStatus struct { - task.Task +type Task struct { + ID int `json:"id"` + FileID int `json:"file_id"` + Type int `json:"type"` + Status int `json:"status"` + Log []string `json:"log"` +} + +type TaskStatus struct { + Tasks []Task `json:"tasks"` }