refactor: updates delete method to return affected rows count

This commit is contained in:
2025-11-01 20:29:39 -03:00
parent e06c30635e
commit af511203a4
2 changed files with 7 additions and 4 deletions

View File

@@ -4,5 +4,5 @@ type Repository[T any] interface {
BuildQuery(s string) string
GetByID(id int) (*T, error)
GetAll() ([]T, error)
Delete(id int) error
Delete(id int) (int64, error)
}