model/product.go
@@ -16,6 +16,9 @@ Total decimal.Decimal `json:"total" gorm:"column:total;type:decimal(10,2);comment:产品总价"` Desc string `json:"desc" gorm:"column:desc;type:varchar(255);comment:产品描述"` Unit string `json:"unit" gorm:"column:unit;type:varchar(255);comment:单位"` Cost string `json:"cost" gorm:"column:cost;type:varchar(255);comment:产品成本"` Profit string `json:"profit" gorm:"column:profit;type:varchar(255);comment:毛利"` Margin string `json:"margin" gorm:"column:margin;type:varchar(255);comment:毛利率"` gorm.Model `json:"-"` }