2022-09-01 14:13:37 +00:00
|
|
|
package pikpak
|
2022-08-31 09:32:57 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
2022-08-31 13:01:15 +00:00
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
2022-08-31 09:32:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
2022-09-04 05:07:53 +00:00
|
|
|
driver.RootID
|
2024-12-07 09:03:46 +00:00
|
|
|
Username string `json:"username" required:"true"`
|
|
|
|
Password string `json:"password" required:"true"`
|
|
|
|
Platform string `json:"platform" required:"true" default:"web" type:"select" options:"android,web,pc"`
|
|
|
|
RefreshToken string `json:"refresh_token" required:"true" default:""`
|
|
|
|
CaptchaToken string `json:"captcha_token" default:""`
|
|
|
|
DeviceID string `json:"device_id" required:"false" default:""`
|
|
|
|
DisableMediaLink bool `json:"disable_media_link" default:"true"`
|
2022-08-31 09:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
|
|
|
Name: "PikPak",
|
|
|
|
LocalSort: true,
|
|
|
|
DefaultRoot: "",
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
|
|
|
return &PikPak{}
|
|
|
|
})
|
2022-08-31 09:32:57 +00:00
|
|
|
}
|