mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 17:38:07 +08:00

* fix(crypt): bug caused by link cache * perf(crypt,mega,halalcloud,quark,uc): optimize concurrent response link * chore: 删除无用代码 * ftp * 修复bug;资源释放 * 添加SyncClosers * local,sftp,smb * 重构,优化,增强 * Update internal/stream/util.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> * chore * chore * 优化,修复bug * . --------- Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
64 lines
1.3 KiB
Go
64 lines
1.3 KiB
Go
package template
|
|
|
|
import (
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootID
|
|
Username string `json:"username" type:"string" required:"true"`
|
|
Password string `json:"password" type:"string" required:"true"`
|
|
Ip string `json:"ip" type:"string"`
|
|
|
|
Token string
|
|
UUID string
|
|
}
|
|
|
|
type Conf struct {
|
|
base string
|
|
secret []byte
|
|
bucket string
|
|
unproved string
|
|
proved string
|
|
devVersion string
|
|
site string
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &ILanZou{
|
|
config: driver.Config{
|
|
Name: "ILanZou",
|
|
DefaultRoot: "0",
|
|
},
|
|
conf: Conf{
|
|
base: "https://api.ilanzou.com",
|
|
secret: []byte("lanZouY-disk-app"),
|
|
bucket: "wpanstore-lanzou",
|
|
unproved: "unproved",
|
|
proved: "proved",
|
|
devVersion: "125",
|
|
site: "https://www.ilanzou.com",
|
|
},
|
|
}
|
|
})
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &ILanZou{
|
|
config: driver.Config{
|
|
Name: "FeijiPan",
|
|
DefaultRoot: "0",
|
|
},
|
|
conf: Conf{
|
|
base: "https://api.feijipan.com",
|
|
secret: []byte("dingHao-disk-app"),
|
|
bucket: "wpanstore",
|
|
unproved: "ws",
|
|
proved: "app",
|
|
devVersion: "125",
|
|
site: "https://www.feijipan.com",
|
|
},
|
|
}
|
|
})
|
|
}
|