2022-09-01 14:13:37 +00:00
|
|
|
package aliyundrive
|
2022-08-31 12:46:19 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
2022-08-31 13:01:15 +00:00
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
2022-08-31 12:46:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
2022-09-04 05:07:53 +00:00
|
|
|
driver.RootID
|
2023-02-14 11:17:21 +00:00
|
|
|
RefreshToken string `json:"refresh_token" required:"true"`
|
|
|
|
//DeviceID string `json:"device_id" required:"true"`
|
2022-08-31 12:46:19 +00:00
|
|
|
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"`
|
2023-01-30 03:18:08 +00:00
|
|
|
InternalUpload bool `json:"internal_upload"`
|
2022-08-31 12:46:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
2022-09-01 14:13:37 +00:00
|
|
|
Name: "Aliyundrive",
|
2022-08-31 12:46:19 +00:00
|
|
|
DefaultRoot: "root",
|
2023-02-25 06:28:27 +00:00
|
|
|
Alert: `warning|There may be an infinite loop bug in this driver.
|
|
|
|
Deprecated, no longer maintained and will be removed in a future version.
|
2023-02-24 12:31:12 +00:00
|
|
|
We recommend using the official driver AliyundriveOpen.`,
|
2022-08-31 12:46:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
|
|
|
return &AliDrive{}
|
|
|
|
})
|
2022-08-31 12:46:19 +00:00
|
|
|
}
|