2022-09-08 07:00:57 +00:00
|
|
|
package _189pc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
2022-09-11 08:23:46 +00:00
|
|
|
Username string `json:"username" required:"true"`
|
|
|
|
Password string `json:"password" required:"true"`
|
|
|
|
VCode string `json:"validate_code"`
|
|
|
|
driver.RootID
|
2022-09-08 07:00:57 +00:00
|
|
|
OrderBy string `json:"order_by" type:"select" options:"filename,filesize,lastOpTime" default:"filename"`
|
|
|
|
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
|
|
|
|
Type string `json:"type" type:"select" options:"personal,family" default:"personal"`
|
|
|
|
FamilyID string `json:"family_id"`
|
|
|
|
RapidUpload bool `json:"rapid_upload"`
|
2022-10-16 16:54:39 +00:00
|
|
|
NonuseOrc bool `json:"nonuse_orc"`
|
2022-09-08 07:00:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
|
|
|
Name: "189CloudPC",
|
|
|
|
DefaultRoot: "-11",
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
op.RegisterDriver(config, func() driver.Driver {
|
|
|
|
return &Yun189PC{}
|
|
|
|
})
|
|
|
|
}
|