|
|
@@ -149,20 +149,6 @@ type DirChildrenResp {
|
|
|
Nodes []LocalDirNode `json:"nodes"`
|
|
|
}
|
|
|
|
|
|
-// 自动检测 SMB 共享的目录树
|
|
|
-type ScanDirectoriesReq {
|
|
|
- Ip string `json:"ip"`
|
|
|
- Port string `json:"port,optional"`
|
|
|
- Share string `json:"share,optional"` // 留空读 config.DefaultShare
|
|
|
-}
|
|
|
-
|
|
|
-type DirectoryNode {
|
|
|
- Name string `json:"name"`
|
|
|
- SmbPath string `json:"smbPath"` // SMB 路径: \\ip\share\dir
|
|
|
- LocalMount string `json:"localMount"` // 真实挂载点: /var/ude/mnt/svc-123/data
|
|
|
- IsDir bool `json:"isDir"`
|
|
|
- Children []DirectoryNode `json:"children,optional"`
|
|
|
-}
|
|
|
|
|
|
|
|
|
@server (
|