feat: post deletion

This commit is contained in:
Florian Sylvain
2024-05-19 17:12:48 +02:00
parent c1317e9f21
commit 7d2795a9e0
8 changed files with 107 additions and 4 deletions
@@ -86,8 +86,7 @@ func (a *PostRepository) UpdateBody(id uint32, body string) error {
}
func (a *PostRepository) Delete(id uint32) error {
//TODO implement me
panic("implement me")
return a.db.Delete(&entity.Post{}, id).Error
}
var _ gateways.IPostRepository = &PostRepository{}