Move Order struct to data models package

This commit is contained in:
bronku 2025-03-28 14:56:16 +01:00
parent 7ee564f6b2
commit 93afc14386
5 changed files with 26 additions and 26 deletions

View file

@ -6,7 +6,6 @@ import (
"strings"
"github.com/Bronku/iroon/internal/models"
"github.com/Bronku/iroon/internal/store"
)
func (h *Server) index(r *http.Request) (any, int, error) {
@ -40,7 +39,7 @@ func (h *Server) cake(r *http.Request) (any, int, error) {
func (h *Server) order(r *http.Request) (any, int, error) {
type formData struct {
Order store.Order
Order models.Order
Catalogue []models.Cake
}
var err error