2022-09-02 13:36:47 +00:00
|
|
|
package quark
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
|
|
|
Cookie string `json:"cookie" required:"true"`
|
2022-09-04 05:07:53 +00:00
|
|
|
driver.RootID
|
2022-09-02 13:36:47 +00:00
|
|
|
OrderBy string `json:"order_by" type:"select" options:"file_type,file_name,updated_at" default:"file_name"`
|
|
|
|
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
|
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
2022-09-10 06:38:47 +00:00
|
|
|
Name: "Quark",
|
|
|
|
OnlyProxy: true,
|
|
|
|
DefaultRoot: "0",
|
2022-09-02 13:36:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func New() driver.Driver {
|
|
|
|
return &Quark{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
op.RegisterDriver(config, New)
|
|
|
|
}
|