mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-24 22:34:04 +08:00
37 lines
888 B
Go
37 lines
888 B
Go
package _115_open
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
// Usually one of two
|
|
driver.RootID
|
|
// define other
|
|
RefreshToken string `json:"refresh_token" required:"true"`
|
|
OrderBy string `json:"order_by" type:"select" options:"file_name,file_size,user_utime,file_type"`
|
|
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc"`
|
|
AccessToken string
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "115 Open",
|
|
LocalSort: false,
|
|
OnlyLocal: false,
|
|
OnlyProxy: false,
|
|
NoCache: false,
|
|
NoUpload: false,
|
|
NeedMs: false,
|
|
DefaultRoot: "0",
|
|
CheckStatus: false,
|
|
Alert: "",
|
|
NoOverwriteUpload: false,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Open115{}
|
|
})
|
|
}
|