Remove redundant struct
This commit is contained in:
parent
799082bb89
commit
45a2ef52f6
1 changed files with 10 additions and 4 deletions
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue