mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00

* refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters * fix typo Co-authored-by: Noah Hsu <i@nn.ci>
25 lines
439 B
Go
25 lines
439 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"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "PikPak",
|
|
LocalSort: true,
|
|
DefaultRoot: "",
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &PikPak{}
|
|
})
|
|
}
|