wip cart handling
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
type CartItem struct {
|
||||
gorm.Model
|
||||
SessionId string `json:"sessionid" binding:"required" gorm:"not null"`
|
||||
ShopItem ShopItem `json:"shopitem" gorm:"foreignKey:ID"` //gorm one2one
|
||||
ShopItemId uint
|
||||
ShopItem ShopItem `json:"shopitem" gorm:"foreignKey:ShopItemId"` //gorm one2one
|
||||
Quantity int `json:"quantity" binding:"required"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user