mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-24 11:07:02 +08:00
refactor: change type of percentage to float64
This commit is contained in:
@@ -3,6 +3,7 @@ package offline_download
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/alist/v3/internal/model"
|
||||
)
|
||||
@@ -15,7 +16,7 @@ type AddUriArgs struct {
|
||||
}
|
||||
|
||||
type Status struct {
|
||||
Progress int
|
||||
Progress float64
|
||||
NewTID string
|
||||
Completed bool
|
||||
Status string
|
||||
@@ -39,9 +40,10 @@ type Tool interface {
|
||||
|
||||
type File struct {
|
||||
io.ReadCloser
|
||||
Name string
|
||||
Size int64
|
||||
Path string
|
||||
Name string
|
||||
Size int64
|
||||
Path string
|
||||
Modified time.Time
|
||||
}
|
||||
|
||||
func (f *File) GetReadCloser() (io.ReadCloser, error) {
|
||||
|
||||
Reference in New Issue
Block a user