refactor(aliyunopen,config): Modify default properties (#7476)

pull/7498/head
安稳 2024-11-08 22:07:35 +08:00 committed by GitHub
parent 2671c876f1
commit f58de9923a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,7 @@ import (
) )
type Addition struct { type Addition struct {
DriveType string `json:"drive_type" type:"select" options:"default,resource,backup" default:"default"` DriveType string `json:"drive_type" type:"select" options:"default,resource,backup" default:"resource"`
driver.RootID driver.RootID
RefreshToken string `json:"refresh_token" required:"true"` RefreshToken string `json:"refresh_token" required:"true"`
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"` OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`

View File

@ -131,22 +131,22 @@ func DefaultConfig() *Config {
TlsInsecureSkipVerify: true, TlsInsecureSkipVerify: true,
Tasks: TasksConfig{ Tasks: TasksConfig{
Download: TaskConfig{ Download: TaskConfig{
Workers: 5, Workers: 5,
MaxRetry: 1, MaxRetry: 1,
TaskPersistant: true, // TaskPersistant: true,
}, },
Transfer: TaskConfig{ Transfer: TaskConfig{
Workers: 5, Workers: 5,
MaxRetry: 2, MaxRetry: 2,
TaskPersistant: true, // TaskPersistant: true,
}, },
Upload: TaskConfig{ Upload: TaskConfig{
Workers: 5, Workers: 5,
}, },
Copy: TaskConfig{ Copy: TaskConfig{
Workers: 5, Workers: 5,
MaxRetry: 2, MaxRetry: 2,
TaskPersistant: true, // TaskPersistant: true,
}, },
}, },
Cors: Cors{ Cors: Cors{