* 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>
26 lines
437 B
Go
26 lines
437 B
Go
package _115
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
Cookie string `json:"cookie"`
|
|
QRCodeToken string `json:"qrcode_token"`
|
|
driver.RootID
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "115 Cloud",
|
|
DefaultRoot: "0",
|
|
OnlyProxy: true,
|
|
OnlyLocal: true,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Pan115{}
|
|
})
|
|
}
|