Files
alist/drivers/aliyundrive/meta.go

28 lines
639 B
Go
Raw Normal View History

2022-09-01 22:13:37 +08:00
package aliyundrive
2022-08-31 20:46:19 +08:00
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
2022-08-31 20:46:19 +08:00
)
type Addition struct {
2022-09-02 18:24:14 +08:00
driver.RootFolderID
2022-08-31 20:46:19 +08:00
RefreshToken string `json:"refresh_token" required:"true"`
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`
OrderDirection string `json:"order_direction" type:"select" options:"ASC,DESC"`
RapidUpload bool `json:"rapid_upload"`
}
var config = driver.Config{
2022-09-01 22:13:37 +08:00
Name: "Aliyundrive",
2022-08-31 20:46:19 +08:00
DefaultRoot: "root",
}
func New() driver.Driver {
return &AliDrive{}
}
func init() {
op.RegisterDriver(config, New)
2022-08-31 20:46:19 +08:00
}