Remove redundant struct

This commit is contained in:
Samuel Lorch 2024-05-09 04:48:34 +02:00
parent 799082bb89
commit 45a2ef52f6

View file

@ -2,8 +2,6 @@ package types
import ( import (
"encoding/json" "encoding/json"
"git.lastassault.de/speatzle/morffix/task"
) )
type TaskStart struct { type TaskStart struct {
@ -13,6 +11,14 @@ type TaskStart struct {
Data json.RawMessage Data json.RawMessage
} }
type TaskStatus struct { type Task struct {
task.Task 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"`
} }