Move Order struct to data models package
This commit is contained in:
parent
7ee564f6b2
commit
93afc14386
5 changed files with 26 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue