This includes user and no user routes! Now wired to the frontend, however, it will still create an engagement even if it fails...
12 lines
443 B
Go
12 lines
443 B
Go
package domain
|
|
|
|
type EngagementService interface {
|
|
ViewRecipe(recipeId int) (Engagement, error)
|
|
ShareRecipe(recipeId int) (Engagement, error)
|
|
UserViewRecipe(userId, recipeId int) (Engagement, error)
|
|
UserFavoriteRecipe(userId, recipeId int) (Engagement, error)
|
|
UserMakeRecipe(userId, recipeId int) (Engagement, error)
|
|
UserShareRecipe(userId, recipeId int) (Engagement, error)
|
|
GetUserEngagement(userId, limit int) ([]Engagement, error)
|
|
}
|