refactor: updates delete method to return affected rows count
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user