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.
28 lines
874 B
28 lines
874 B
package model
|
|
|
|
import "shop-api/global"
|
|
|
|
type OrderGoodsSpecs struct {
|
|
global.MG_MODEL
|
|
TbGoodsSpecsBase
|
|
OrderID string `gorm:"size:50" json:"orderID"` // 订单id
|
|
OrderGoodsId uint `json:"orderGoodsId"` //
|
|
}
|
|
|
|
type TbOrderGoodsSpecsDetail struct {
|
|
GoodsId uint `json:"goods_id"`
|
|
Specs string `json:"specs"` // 规格
|
|
SkuNo string `json:"sku_no"` // 商品编码
|
|
Price float64 `json:"price"` // 价格
|
|
Image string `json:"image"` // 规格图片url
|
|
GoodsNo string `json:"goods_no"` // 商品编号
|
|
Code string `json:"code"` // attribute定位标识
|
|
OrderGoodsId uint `json:"orderGoodsId"` //
|
|
}
|
|
|
|
func (OrderGoodsSpecs) TableName() string {
|
|
return "order_goods_specs"
|
|
}
|
|
func (TbOrderGoodsSpecsDetail) TableName() string {
|
|
return "order_goods_specs"
|
|
}
|
|
|