mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
33 lines
695 B
Go
33 lines
695 B
Go
package doubao_share
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootPath
|
|
Cookie string `json:"cookie" type:"text"`
|
|
ShareIds string `json:"share_ids" type:"text" required:"true"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "DoubaoShare",
|
|
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 &DoubaoShare{}
|
|
})
|
|
}
|