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 (
"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"`
}