feat!(alist_v3): support username & password login (close #4226)

Breaking changes:
- rename access_token to token
- rename old password to meta_password
This commit is contained in:
Andy Hsu
2023-04-23 17:48:26 +08:00
parent 340cb940e3
commit adb0739dfe
4 changed files with 116 additions and 87 deletions

View File

@ -7,9 +7,11 @@ import (
type Addition struct {
driver.RootPath
Address string `json:"url" required:"true"`
Password string `json:"password"`
AccessToken string `json:"access_token"`
Address string `json:"url" required:"true"`
MetaPassword string `json:"meta_password"`
Username string `json:"username"`
Password string `json:"password"`
Token string `json:"token"`
}
var config = driver.Config{