diff --git a/model/product/model.go b/model/product/model.go index cfa387d..3c9d327 100644 --- a/model/product/model.go +++ b/model/product/model.go @@ -35,12 +35,13 @@ type Product struct { Orderable bool `json:"orderable"` USPrice float64 `json:"usPrice"` + DiscPercent int `json:"discPercent" gorm:"index"` //折扣力度 CNYPrice float64 `json:"cnyPrice"` CalMark string `json:"calMark"` //计算价格的过程 DWPrice float64 `json:"dwPrice"` Freight float64 `json:"freight"` //运费 ExchangeRate float64 `json:"exchangeRate" gorm:"-"` //汇率 - Rate float64 `json:"rate"` //利润率 + Rate float64 `json:"rate" gorm:"index"` //利润率 PriceStatus PriceStatus `json:"priceStatus"` //价格状态 Remark string `json:"remark"` //备注 HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"`