alist/drivers/123/meta.go

28 lines
675 B
Go
Raw Permalink Normal View History

2022-09-01 14:13:37 +00:00
package _123
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
)
type Addition struct {
2023-04-03 03:24:29 +00:00
Username string `json:"username" required:"true"`
Password string `json:"password" required:"true"`
driver.RootID
//OrderBy string `json:"order_by" type:"select" options:"file_id,file_name,size,update_at" default:"file_name"`
//OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
AccessToken string
2022-09-01 14:13:37 +00:00
}
var config = driver.Config{
Name: "123Pan",
DefaultRoot: "0",
LocalSort: true,
2022-09-01 14:13:37 +00:00
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &Pan123{}
})
2022-09-01 14:13:37 +00:00
}