package app.mealsmadeeasy.api.recipe.star; import app.mealsmadeeasy.api.recipe.RecipeException; import app.mealsmadeeasy.api.user.User; import java.util.Optional; public interface RecipeStarService { RecipeStar create(Integer recipeId, Integer ownerId); RecipeStar create(String recipeOwnerUsername, String recipeSlug, User starer) throws RecipeException; Optional find(String recipeOwnerUsername, String recipeSlug, User starer) throws RecipeException; void delete(Integer recipeId, Integer ownerId); void delete(String recipeOwnerUsername, String recipeSlug, User starer) throws RecipeException; }