Jelajahi Sumber

fix:删除多余的配置项

lipan 2 minggu lalu
induk
melakukan
d616b8db24
3 mengubah file dengan 0 tambahan dan 28 penghapusan
  1. 0 6
      etc/udeserver-api.yaml
  2. 0 8
      internal/types/types.go
  3. 0 14
      udeServer.api

+ 0 - 6
etc/udeserver-api.yaml

@@ -5,11 +5,5 @@ Port: 9993
 MySQL:
   DataSource: "ude:H3G8xzfYpAASYFxF@tcp(10.10.10.30:3306)/ude?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai"
 
-Smb:
-  User: "Administrator"
-  Password: "Yumawk1234."
-  DefaultShare: "FuseDemo"
-  MountVersion: "3.0"
-
 Mount:
   BaseDir: "/var/ude/mnt"   # 保护目录挂载根目录,Linux 通常 /var/ude/mnt

+ 0 - 8
internal/types/types.go

@@ -44,14 +44,6 @@ type DirectoryListResp struct {
 	Total int64           `json:"total"`
 }
 
-type DirectoryNode struct {
-	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"`
-}
-
 type DirectoryResp struct {
 	Id        int64  `json:"id"`
 	ServiceId int64  `json:"serviceId"`

+ 0 - 14
udeServer.api

@@ -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 (