change IIdentifiable interface to use a string instead of int

This commit is contained in:
2024-12-29 01:05:04 +01:00
parent b47b6d51b2
commit e3fcd62159
4 changed files with 10 additions and 17 deletions

View File

@@ -8,6 +8,6 @@ type IRepository[T IIdentifiable] interface {
Update(t T) error
Delete(t T) error
GetAll() ([]T, error)
GetById(id uint) (T, error)
GetById(id string) (T, error)
GetByCriteria(c ISearchCriteria[T]) ([]T, error)
}