feat: use batch download api for create multitasks (#978)

This commit is contained in:
Levi authored and GitHub committed 2025-04-05 22:57:17 +08:00
1 parent cd5fd45667
commit d289708f9e
10 files changed
+207 -37

No files matched your search

+10
View File
@@ -163,6 +163,16 @@ func ParseOptsExtra[E any](opts *Options) error {
return nil
}
type CreateTaskBatch struct {
Reqs []*CreateTaskBatchItem `json:"reqs"`
Opts *Options `json:"opts"`
}
type CreateTaskBatchItem struct {
Req *Request `json:"req"`
Opts *Options `json:"opts"`
}
// DownloaderStoreConfig is the config that can restore the downloader.
type DownloaderStoreConfig struct {
FirstLoad bool `json:"-"` // FirstLoad is the flag that the config is first time init and not from store