Merge PR #1542 into 2.0.0-beta.2

This commit is contained in:
Levi committed 2026-09-25 16:23:55 +08:00
commit f400137ead
17 files changed
+862 -28

No files matched your search

+3
View File
@@ -23,6 +23,9 @@ type ResolveResult struct {
Res *base.Resource `json:"res"`
}
// Task represents a download unit.
// Options flow path:
// REST Request (model.CreateTask/ResolveTask) -> pkg/download Downloader -> Task.Meta.Opts (base.Options) -> Fetcher.Resolve/Start (e.g. internal/protocol/http/fetcher.go)
type Task struct {
ID string `json:"id"`
Protocol string `json:"protocol"`