work on checkout

This commit is contained in:
2025-03-05 23:55:31 +01:00
parent 639eaa04f5
commit a88be8de62
7 changed files with 58 additions and 20 deletions

View File

@@ -24,6 +24,12 @@ type AddressInfo struct {
Country string `json:"country"`
}
type Shipping struct {
Id string `json:"name"`
Name string `json:"name"`
Price float64 `json:"price"`
}
type Order struct {
gorm.Model
Status OrderStatus `json:"status"`
@@ -31,6 +37,7 @@ type Order struct {
CartItems []CartItem `json:"cartitems"`
Email string `json:"email"`
Comment string `json:"comment"`
Shipping
}
type CartItem struct {