This required some fixing of old repo methods, since the nullable user id was a bit hard to parse. But it should be working now.
10 lines
337 B
Go
10 lines
337 B
Go
package domain
|
|
|
|
type EngagementService interface {
|
|
ViewRecipe(recipeId int) (Engagement, error)
|
|
UserViewRecipe(userId, recipeId int) (Engagement, error)
|
|
UserFavoriteRecipe(userId, recipeId int) (Engagement, error)
|
|
UserMakeRecipe(userId, recipeId int) (Engagement, error)
|
|
GetUserEngagement(userId, limit int) ([]Engagement, error)
|
|
}
|