The frontend is half wired up, just need to update the button. I also want to update the recipe methods to return the favorite status. This will follow very similar to the way I updated the tags. Another method which can be called to attach the favorite state.
9 lines
291 B
Go
9 lines
291 B
Go
package domain
|
|
|
|
type EngagementService interface {
|
|
UserViewRecipe(userId, recipeId int) (Engagement, error)
|
|
UserFavoriteRecipe(userId, recipeId int) (Engagement, error)
|
|
UserMakeRecipe(userId, recipeId int) (Engagement, error)
|
|
GetUserEngagement(userId, limit int) ([]Engagement, error)
|
|
}
|