feat: add ILanzou driver (#5810 close #5715)

* wip: basic request and login

* feat: impl list

* feat: impl link

* feat: impl mkdir, move, rename, delete

* feat: impl upload

* docs: add iLanzou to readme
This commit is contained in:
Andy Hsu
2024-01-04 22:03:15 +08:00
committed by GitHub
parent 126cfe9f93
commit 9d5fb7f595
8 changed files with 566 additions and 0 deletions

35
drivers/ilanzou/meta.go Normal file
View File

@ -0,0 +1,35 @@
package template
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" type:"string" required:"true"`
Password string `json:"password" type:"string" required:"true"`
Token string
UUID string
}
var config = driver.Config{
Name: "ILanZou",
LocalSort: false,
OnlyLocal: false,
OnlyProxy: false,
NoCache: false,
NoUpload: false,
NeedMs: false,
DefaultRoot: "0",
CheckStatus: false,
Alert: "",
NoOverwriteUpload: false,
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &ILanZou{}
})
}