2022-09-05 05:35:01 +00:00
|
|
|
package _139
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
2023-06-09 15:41:41 +00:00
|
|
|
//Account string `json:"account" required:"true"`
|
2023-06-09 15:02:02 +00:00
|
|
|
Authorization string `json:"authorization" type:"text" required:"true"`
|
2022-09-05 05:35:01 +00:00
|
|
|
driver.RootID
|
2025-01-18 15:24:09 +00:00
|
|
|
Type string `json:"type" type:"select" options:"personal_new,family,group,personal" default:"personal_new"`
|
2024-12-09 15:34:29 +00:00
|
|
|
CloudID string `json:"cloud_id"`
|
|
|
|
CustomUploadPartSize int64 `json:"custom_upload_part_size" type:"number" default:"0" help:"0 for auto"`
|
2022-09-05 05:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
2024-05-22 15:31:42 +00:00
|
|
|
Name: "139Yun",
|
|
|
|
LocalSort: true,
|
|
|
|
ProxyRangeOption: true,
|
2022-09-05 05:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
2024-05-22 15:31:42 +00:00
|
|
|
d := &Yun139{}
|
|
|
|
d.ProxyRange = true
|
|
|
|
return d
|
2022-09-05 05:35:01 +00:00
|
|
|
})
|
|
|
|
}
|