This means that we can use the cookie data to load the filters when the search page loads. The final step is making sure the search is complete and the simple redirection. Which will come in the next commit!
10 lines
225 B
Go
10 lines
225 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(filters SearchFilters) ([]Recipe, error)
|
|
}
|