feat 添加折扣力度
This commit is contained in:
parent
202f8a8911
commit
570e19d76c
@ -35,12 +35,13 @@ type Product struct {
|
|||||||
Orderable bool `json:"orderable"`
|
Orderable bool `json:"orderable"`
|
||||||
|
|
||||||
USPrice float64 `json:"usPrice"`
|
USPrice float64 `json:"usPrice"`
|
||||||
|
DiscPercent int `json:"discPercent" gorm:"index"` //折扣力度
|
||||||
CNYPrice float64 `json:"cnyPrice"`
|
CNYPrice float64 `json:"cnyPrice"`
|
||||||
CalMark string `json:"calMark"` //计算价格的过程
|
CalMark string `json:"calMark"` //计算价格的过程
|
||||||
DWPrice float64 `json:"dwPrice"`
|
DWPrice float64 `json:"dwPrice"`
|
||||||
Freight float64 `json:"freight"` //运费
|
Freight float64 `json:"freight"` //运费
|
||||||
ExchangeRate float64 `json:"exchangeRate" gorm:"-"` //汇率
|
ExchangeRate float64 `json:"exchangeRate" gorm:"-"` //汇率
|
||||||
Rate float64 `json:"rate"` //利润率
|
Rate float64 `json:"rate" gorm:"index"` //利润率
|
||||||
PriceStatus PriceStatus `json:"priceStatus"` //价格状态
|
PriceStatus PriceStatus `json:"priceStatus"` //价格状态
|
||||||
Remark string `json:"remark"` //备注
|
Remark string `json:"remark"` //备注
|
||||||
HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"`
|
HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"`
|
||||||
|
Loading…
Reference in New Issue
Block a user