feat: add pikpak driver

This commit is contained in:
Noah Hsu
2022-08-31 17:32:57 +08:00
parent 7d407de22e
commit 102384e170
8 changed files with 461 additions and 3 deletions

26
drivers/pikpak/meta.go Normal file
View File

@ -0,0 +1,26 @@
package local
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/operations"
)
type Addition struct {
driver.RootFolderId
Username string `json:"username" required:"true"`
Password string `json:"password" required:"true"`
}
var config = driver.Config{
Name: "PikPak",
LocalSort: true,
DefaultRoot: "",
}
func New() driver.Driver {
return &PikPak{}
}
func init() {
operations.RegisterDriver(config, New)
}