2024-08-04 12:28:19 +08:00
|
|
|
package LenovoNasShare
|
|
|
|
|
|
|
|
import (
|
2025-07-01 09:54:50 +08:00
|
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
2024-08-04 12:28:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
|
|
|
driver.RootPath
|
2025-07-21 14:38:10 +08:00
|
|
|
ShareId string `json:"share_id" required:"true" help:"The part after the last / in the shared link"`
|
|
|
|
SharePwd string `json:"share_pwd" required:"true" help:"The password of the shared link"`
|
|
|
|
Host string `json:"host" required:"true" default:"https://siot-share.lenovo.com.cn" help:"You can change it to your local area network"`
|
|
|
|
ShowRootFolder bool `json:"show_root_folder" default:"true"`
|
2024-08-04 12:28:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
2025-07-12 17:57:54 +08:00
|
|
|
Name: "LenovoNasShare",
|
|
|
|
LocalSort: true,
|
|
|
|
NoUpload: true,
|
2024-08-04 12:28:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
op.RegisterDriver(func() driver.Driver {
|
|
|
|
return &LenovoNasShare{}
|
|
|
|
})
|
|
|
|
}
|