From 45a2ef52f6706564e8d8d9b7b967db7ba33e16c9 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Thu, 9 May 2024 04:48:34 +0200 Subject: [PATCH] Remove redundant struct --- types/task.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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"` }