Mr.L
feat: add full alist source code for Docker build
7107f0b
raw
history blame contribute delete
979 Bytes
package PikPakProxy
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"`
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"`
//是否使用代理
UseProxy bool `json:"use_proxy"`
//下代理地址
ProxyUrl string `json:"proxy_url" default:""`
}
var config = driver.Config{
Name: "PikPakProxy",
LocalSort: true,
DefaultRoot: "",
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &PikPakProxy{}
})
}