The profile list will now properly display the users recipes! The favorites list does not exist yet, since there is no backend support for favoriting/saving recipes. So the list displays the same content as the user recipe list. Same goes for the activity list, not yet implemented.
11 lines
313 B
Go
11 lines
313 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
|
|
GetUserRecipes(id int) ([]Recipe, error)
|
|
GetRecipeTags(recipe *Recipe) error
|
|
}
|