feat: add 139yun driver

This commit is contained in:
Noah Hsu
2022-09-05 13:35:01 +08:00
parent 3416861cab
commit 900e71f78f
7 changed files with 800 additions and 5 deletions

25
drivers/139/meta.go Normal file
View File

@ -0,0 +1,25 @@
package _139
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
)
type Addition struct {
Account string `json:"account" required:"true"`
Cookie string `json:"cookie" type:"text" required:"true"`
driver.RootID
Type string `json:"type" type:"select" options:"personal,family" default:"personal"`
CloudID string `json:"cloud_id"`
}
var config = driver.Config{
Name: "139Yun",
LocalSort: true,
}
func init() {
op.RegisterDriver(config, func() driver.Driver {
return &Yun139{}
})
}