This is part of the step towards finishing the creation wizard, all that is left is the image. However, that is a bigger problem since it requires a file store and file server. But for now, tags are implemented and working!
9 lines
234 B
Go
9 lines
234 B
Go
package domain
|
|
|
|
type RecipeRepository interface {
|
|
CreateRecipe(recipe *Recipe) error
|
|
GetRecipe(id int) (*Recipe, error)
|
|
SearchRecipes(filters SearchFilters) ([]Recipe, error)
|
|
CreateRecipeTags(recipe Recipe, tags []string) error
|
|
}
|