Furthermore, not sure how we are going to handle the searching. Maybe a full-text search index? For now, it has been ignored, but the filters seem to be working properly.
10 lines
220 B
Go
10 lines
220 B
Go
package domain
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
type RecipeService interface {
|
|
CreateRecipe(ctx *gin.Context) (*Recipe, error)
|
|
GetRecipe(id int) (*Recipe, error)
|
|
SearchRecipes(ctx *gin.Context) ([]Recipe, error)
|
|
}
|