work on checkout
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user