2022-09-05 13:35:01 +08:00
|
|
|
package _139
|
|
|
|
|
|
|
|
import (
|
2025-07-01 09:54:50 +08:00
|
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
2022-09-05 13:35:01 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
2023-06-09 23:41:41 +08:00
|
|
|
//Account string `json:"account" required:"true"`
|
2023-06-09 23:02:02 +08:00
|
|
|
Authorization string `json:"authorization" type:"text" required:"true"`
|
2022-09-05 13:35:01 +08:00
|
|
|
driver.RootID
|
2025-01-18 23:24:09 +08:00
|
|
|
Type string `json:"type" type:"select" options:"personal_new,family,group,personal" default:"personal_new"`
|
2024-12-09 23:34:29 +08:00
|
|
|
CloudID string `json:"cloud_id"`
|
|
|
|
CustomUploadPartSize int64 `json:"custom_upload_part_size" type:"number" default:"0" help:"0 for auto"`
|
2025-04-03 20:41:59 +08:00
|
|
|
ReportRealSize bool `json:"report_real_size" type:"bool" default:"true" help:"Enable to report the real file size during upload"`
|
2025-04-27 19:58:45 +08:00
|
|
|
UseLargeThumbnail bool `json:"use_large_thumbnail" type:"bool" default:"false" help:"Enable to use large thumbnail for images"`
|
2022-09-05 13:35:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
2024-05-22 23:31:42 +08:00
|
|
|
Name: "139Yun",
|
|
|
|
LocalSort: true,
|
|
|
|
ProxyRangeOption: true,
|
2022-09-05 13:35:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 18:03:30 +08:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
2024-05-22 23:31:42 +08:00
|
|
|
d := &Yun139{}
|
|
|
|
d.ProxyRange = true
|
|
|
|
return d
|
2022-09-05 13:35:01 +08:00
|
|
|
})
|
|
|
|
}
|