mirror of https://github.com/Xhofe/alist
26 lines
508 B
Go
26 lines
508 B
Go
package pikpak
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootID
|
|
Username string `json:"username" required:"true"`
|
|
Password string `json:"password" required:"true"`
|
|
DisableMediaLink bool `json:"disable_media_link"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "PikPak",
|
|
LocalSort: true,
|
|
DefaultRoot: "",
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &PikPak{}
|
|
})
|
|
}
|