Documentation ¶
Index ¶
- func AddMealIngredientsToStore(meal models.Meal, storeID uuid.UUID, userID uuid.UUID, itemsArg []interface{}) (addedItems []*models.Item, err error)
- func CompileRecipeIngredients(ingArg []interface{}) (ingredients []models.RecipeIngredient, err error)
- func CreateRecipe(userID uuid.UUID, args map[string]interface{}) (recipe *models.Recipe, err error)
- func DeleteMeal(mealID interface{}, userID uuid.UUID, appScheme string) (meal models.Meal, err error)
- func DeleteRecipe(recipeID interface{}, userID uuid.UUID) (recipe models.Recipe, err error)
- func PlanMeal(userID uuid.UUID, args map[string]interface{}) (meal models.Meal, err error)
- func RetrieveMealForUser(mealID interface{}, userID uuid.UUID) (meal models.Meal, err error)
- func RetrieveMeals(userID uuid.UUID, args map[string]interface{}) (meals []models.Meal, err error)
- func RetrieveRecipe(id interface{}) (recipe models.Recipe, err error)
- func RetrieveRecipes(userID uuid.UUID, args map[string]interface{}) (recipes []models.Recipe, err error)
- func UpdateMeal(args map[string]interface{}) (meal models.Meal, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMealIngredientsToStore ¶
func AddMealIngredientsToStore(meal models.Meal, storeID uuid.UUID, userID uuid.UUID, itemsArg []interface{}) (addedItems []*models.Item, err error)
AddMealIngredientsToStore will add the items associated with this meal to the user's selected store
func CompileRecipeIngredients ¶
func CompileRecipeIngredients(ingArg []interface{}) (ingredients []models.RecipeIngredient, err error)
CompileRecipeIngredients compiles []models.RecipeIngredient for insertion in a recipe
func CreateRecipe ¶
CreateRecipe creates a recipe record and associated records
func DeleteMeal ¶
func DeleteMeal(mealID interface{}, userID uuid.UUID, appScheme string) (meal models.Meal, err error)
DeleteMeal deletes a meal by ID
func DeleteRecipe ¶
DeleteRecipe deletes a recipe
func RetrieveMealForUser ¶
RetrieveMealForUser retrieves a specific meal by mealID and userID
func RetrieveMeals ¶
RetrieveMeals fetches the planned meals within the provided week/year for the current user Note: when used via the plannedMeals query, it is possible to leave the weekNumber/year nil and it will use the current time
func RetrieveRecipe ¶
RetrieveRecipe retrieves a recipe by ID
Types ¶
This section is empty.