feat: login in alist via token

This commit is contained in:
krau
2025-02-17 16:39:27 +08:00
parent ccfde34666
commit f80c4d7d55
2 changed files with 48 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ type alistConfig struct {
URL string `toml:"url" mapstructure:"url"`
Username string `toml:"username" mapstructure:"username"`
Password string `toml:"password" mapstructure:"password"`
Token string `toml:"token" mapstructure:"token"`
BasePath string `toml:"base_path" mapstructure:"base_path"`
TokenExp int64 `toml:"token_exp" mapstructure:"token_exp"`
}