Feat: add option to force delete file record in database

This commit is contained in:
HFO4
2020-04-19 10:09:16 +08:00
parent 9910f8d732
commit ab3b59e63d
6 changed files with 68 additions and 10 deletions

View File

@@ -264,7 +264,7 @@ func (service *ItemIDService) Delete(ctx context.Context, c *gin.Context) serial
// 删除对象
items := service.Raw()
err = fs.Delete(ctx, items.Dirs, items.Items)
err = fs.Delete(ctx, items.Dirs, items.Items, false)
if err != nil {
return serializer.Err(serializer.CodeNotSet, err.Error(), err)
}