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.

17 lines
644 B

package model
import "shop-api/global"
type MissionClaimOrderGoods struct { // 任务订单关联商品
global.MG_MODEL
OrderID string `gorm:"size:50;index" json:"order_id"` // 订单号
SkuNo string `gorm:"type:varchar(60);" json:"sku_no"` // sku编号
Title string `gorm:"type:varchar(255);" json:"title"` // 名称
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 (MissionClaimOrderGoods) TableName() string {
return "mission_claim_order_goods"
}