chore: move some types to model

This commit is contained in:
Noah Hsu
2022-06-15 18:06:42 +08:00
parent 2cddd3cf2b
commit 979f8383d8
10 changed files with 62 additions and 37 deletions

View File

@ -4,9 +4,9 @@ package task
import "context"
type Task struct {
Name string
Func func(context.Context) error
Status string
Error error
Progress int
Name string
Func func(context.Context) error
Status string
Error error
Finish bool
}