jiangshuai
2024-02-06 116948bcec330a6dde841708515c222fcebf51a7
model/product.go
@@ -16,6 +16,11 @@
      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:毛利率"`
      Specs      string          `gorm:"type:varchar(191);comment:物料规格" json:"specs"`
      Type       string          `gorm:"type:varchar(191);comment:物料型号" json:"type"`
      gorm.Model `json:"-"`
   }