feat(115): add cloud 115 driver (#2164)

close #2112
close #1598
close #894
This commit is contained in:
sheltonzhu
2022-11-01 15:31:31 +08:00
committed by GitHub
parent aabfe49cb9
commit 141419056d
7 changed files with 213 additions and 10 deletions

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

@ -0,0 +1,26 @@
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" required:"true"`
driver.RootID
}
var config = driver.Config{
Name: "115 Cloud",
DefaultRoot: "0",
OnlyProxy: true,
OnlyLocal: true,
}
func New() driver.Driver {
return &Pan115{}
}
func init() {
op.RegisterDriver(config, New)
}