feat: add contact repository and base repository for shared db logic

This commit is contained in:
2025-11-01 19:31:55 -03:00
parent ffdaa22aa3
commit e06c30635e
3 changed files with 141 additions and 0 deletions

View File

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