mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 20:26:26 +08:00
28 lines
618 B
Go
28 lines
618 B
Go
![]() |
package openlist_share
|
||
|
|
||
|
import (
|
||
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
||
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
||
|
)
|
||
|
|
||
|
type Addition struct {
|
||
|
driver.RootPath
|
||
|
Address string `json:"url" required:"true"`
|
||
|
ShareId string `json:"sid" required:"true"`
|
||
|
Pwd string `json:"pwd"`
|
||
|
ForwardArchiveReq bool `json:"forward_archive_requests" default:"true"`
|
||
|
}
|
||
|
|
||
|
var config = driver.Config{
|
||
|
Name: "OpenListShare",
|
||
|
LocalSort: true,
|
||
|
NoUpload: true,
|
||
|
DefaultRoot: "/",
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
op.RegisterDriver(func() driver.Driver {
|
||
|
return &OpenListShare{}
|
||
|
})
|
||
|
}
|