refactor: update interface contract and applies some fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user