package dto type BatchDownloadStructNode struct { Name string `json:"name"` // 字段名 IsFile bool `json:"isFile"` // 是否是文件 Children []*BatchDownloadStructNode `json:"children"` // 子节点 } type BatchDownloadTarNode struct { Name string `json:"name"` Path string `json:"path"` IsDir bool `json:"isDir"` Children []*BatchDownloadTarNode `json:"children,omitempty"` }