Furthermore, not sure how we are going to handle the searching. Maybe a full-text search index? For now, it has been ignored, but the filters seem to be working properly.
8 lines
180 B
Go
8 lines
180 B
Go
package domain
|
|
|
|
type RecipeRepository interface {
|
|
CreateRecipe(recipe *Recipe) error
|
|
GetRecipe(id int) (*Recipe, error)
|
|
SearchRecipes(filters SearchFilters) ([]Recipe, error)
|
|
}
|