Test: list folder & filesystem/path & model/folder/list

This commit is contained in:
HFO4
2019-11-24 16:28:41 +08:00
parent b431f3674c
commit 5e1e76719f
10 changed files with 255 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ func GetFileByPathAndName(path string, name string, uid uint) (File, error) {
return file, result.Error
}
// GetChildFile 查找目录下子文件 TODO:test
// GetChildFile 查找目录下子文件
func (folder *Folder) GetChildFile() ([]File, error) {
var files []File
result := DB.Where("folder_id = ?", folder.ID).Find(&files)