修改更新文件消息错误问题
This commit is contained in:
parent
ae355b23ca
commit
bde31d8768
|
|
@ -229,7 +229,7 @@ func UpdateUserFile(userID int, fileAuthID int, fileAuthName string) error {
|
|||
return errors.New("no permission")
|
||||
}
|
||||
fileAuth.UserFileName = fileAuthName
|
||||
err := dao.UpdateFileAuthByID(userID, fileAuth)
|
||||
err := dao.UpdateFileAuthByID(fileAuthID, fileAuth)
|
||||
return err
|
||||
}
|
||||
func DeleteUserFile(userID, fileAuthID int) error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue