Recipe creation is complete! Some minor issues include the "eager-validation." It's better than nothing, but a bit harsh. Also, the redirection and linking to a view page would be nice. Furthermore, tags and images are not implemented yet. Will need that in the future!
8 lines
133 B
Go
8 lines
133 B
Go
package domain
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
type RecipeService interface {
|
|
CreateRecipe(ctx *gin.Context) (*Recipe, error)
|
|
}
|