mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 20:26:26 +08:00

* Update driver.go Signed-off-by: Caspian <app@caspian.im> * Update meta.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> * make account optional * ensure username and password Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> --------- Signed-off-by: Caspian <app@caspian.im> Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> Co-authored-by: MadDogOwner <xiaoran@xrgzs.top>
28 lines
754 B
Go
28 lines
754 B
Go
package degoo
|
|
|
|
import (
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootID
|
|
Username string `json:"username" help:"Your Degoo account email"`
|
|
Password string `json:"password" help:"Your Degoo account password"`
|
|
RefreshToken string `json:"refresh_token" help:"Refresh token for automatic token renewal, obtained automatically"`
|
|
AccessToken string `json:"access_token" help:"Access token for Degoo API, obtained automatically"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "Degoo",
|
|
LocalSort: true,
|
|
DefaultRoot: "0",
|
|
NoOverwriteUpload: true,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Degoo{}
|
|
})
|
|
}
|