mirror of https://github.com/Xhofe/alist
38 lines
815 B
Go
38 lines
815 B
Go
package baidu_share
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
// Usually one of two
|
|
driver.RootPath
|
|
// driver.RootID
|
|
// define other
|
|
// Field string `json:"field" type:"select" required:"true" options:"a,b,c" default:"a"`
|
|
Surl string `json:"surl"`
|
|
Pwd string `json:"pwd"`
|
|
BDUSS string `json:"BDUSS"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "BaiduShare",
|
|
LocalSort: true,
|
|
OnlyLocal: false,
|
|
OnlyProxy: false,
|
|
NoCache: false,
|
|
NoUpload: true,
|
|
NeedMs: false,
|
|
DefaultRoot: "/",
|
|
CheckStatus: false,
|
|
Alert: "",
|
|
NoOverwriteUpload: false,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &BaiduShare{}
|
|
})
|
|
}
|