mirror of https://github.com/Xhofe/alist
				
				
				
			
		
			
				
	
	
		
			30 lines
		
	
	
		
			791 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			791 B
		
	
	
	
		
			Go
		
	
	
package _139
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/alist-org/alist/v3/internal/driver"
 | 
						|
	"github.com/alist-org/alist/v3/internal/op"
 | 
						|
)
 | 
						|
 | 
						|
type Addition struct {
 | 
						|
	//Account       string `json:"account" required:"true"`
 | 
						|
	Authorization string `json:"authorization" type:"text" required:"true"`
 | 
						|
	driver.RootID
 | 
						|
	Type                 string `json:"type" type:"select" options:"personal_new,family,group,personal" default:"personal_new"`
 | 
						|
	CloudID              string `json:"cloud_id"`
 | 
						|
	CustomUploadPartSize int64  `json:"custom_upload_part_size" type:"number" default:"0" help:"0 for auto"`
 | 
						|
}
 | 
						|
 | 
						|
var config = driver.Config{
 | 
						|
	Name:             "139Yun",
 | 
						|
	LocalSort:        true,
 | 
						|
	ProxyRangeOption: true,
 | 
						|
}
 | 
						|
 | 
						|
func init() {
 | 
						|
	op.RegisterDriver(func() driver.Driver {
 | 
						|
		d := &Yun139{}
 | 
						|
		d.ProxyRange = true
 | 
						|
		return d
 | 
						|
	})
 | 
						|
}
 |