You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
681 B

6 months ago
package model
import "bkb-seller/global"
// 记录订单中商品基本属性
type OrderCommod struct {
global.MG_MODEL
OrderID string `gorm:"size:50" json:"orderID"`
SpuNo string `gorm:"type:varchar(60);" json:"spu_no"` //商品编号
Title string `gorm:"type:varchar(255);" json:"title"` //商品名称
SkuNo string `gorm:"type:varchar(60);" json:"sku_no"` //商品规格编号
Image string `gorm:"size:255" json:"image"` //规格图片url
Specs string `gorm:"type:text;" json:"specs"` //规格
Price float64 `gorm:"type:decimal(10,2);" json:"price"` //价格
}
func (OrderCommod) TableName() string {
return "order_commod"
}