refactor: update interface contract and applies some fixes

This commit is contained in:
2025-11-02 17:51:55 -03:00
parent af511203a4
commit 4a28259dc8
4 changed files with 121 additions and 44 deletions

View File

@@ -1,8 +1,9 @@
package repository
type Repository[T any] interface {
BuildQuery(s string) string
GetByID(id int) (*T, error)
GetAll() ([]T, error)
Create(T *T) (int64, error)
Delete(id int) (int64, error)
GetAll() ([]T, error)
GetByID(id int) (*T, error)
Update(contact *T) error
}