feat 添加折扣力度

This commit is contained in:
timerzz 2024-05-15 19:43:01 +08:00
parent 202f8a8911
commit 570e19d76c

View File

@ -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"`