Feat: delete aria2 record in client side (#335)

This commit is contained in:
HFO4
2020-11-23 19:24:56 +08:00
parent c6110e9e75
commit f0a68236a8
7 changed files with 33 additions and 6 deletions

View File

@@ -109,3 +109,8 @@ func (task *Download) GetOwner() *User {
}
return task.User
}
// Delete 删除离线下载记录
func (download *Download) Delete() error {
return DB.Model(download).Delete(download).Error
}