feat: add quqi driver (#5899 close #5251)

* feat: add `quqi` driver

* change signature of request function

* specific header for every storage

* todo: real upload

* fix upload method

* fix incorrect parameters for some request function calls

---------

Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
Echo Response
2024-01-19 10:59:56 +08:00
committed by GitHub
parent ce06f394f1
commit 442c2f77ea
7 changed files with 674 additions and 0 deletions

27
drivers/quqi/meta.go Normal file
View File

@ -0,0 +1,27 @@
package quqi
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
)
type Addition struct {
driver.RootID
Phone string `json:"phone"`
Password string `json:"password"`
Cookie string `json:"cookie" help:"Cookie can be used on multiple clients at the same time"`
}
var config = driver.Config{
Name: "Quqi",
OnlyLocal: true,
LocalSort: true,
//NoUpload: true,
DefaultRoot: "0",
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &Quqi{}
})
}