Feat: after uploading finished hook

This commit is contained in:
HFO4
2019-11-18 19:32:06 +08:00
parent aa17aa8e6a
commit 2e9f256462
7 changed files with 39 additions and 15 deletions

View File

@@ -19,6 +19,6 @@ type Folder struct {
// GetFolderByPath 根据绝对路径和UID查找目录
func GetFolderByPath(path string, uid uint) (Folder, error) {
var folder Folder
result := DB.Where("owner = ? AND position_absolute = ?", uid, path).Find(&folder)
result := DB.Where("owner_id = ? AND position_absolute = ?", uid, path).Find(&folder)
return folder, result.Error
}