gf-common/task/model.go

11 lines
369 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package task
// Task 通用任务结构体
type Task struct {
Processed int `json:"processed" dc:"已处理数量"`
Total int `json:"total" dc:"总计数量"`
Status TaskStatus `json:"status" dc:"状态processing, completed, failed"`
Message string `json:"message" dc:"消息"`
Path string `json:"path" dc:"文件路径"`
}