diff --git a/model/product/model.go b/model/product/model.go index cd55bab..b110a25 100644 --- a/model/product/model.go +++ b/model/product/model.go @@ -18,6 +18,7 @@ type Website int const ( WebSite_US_Coach_Outlet Website = iota + 1 + WebSite_CN_Coach_Outlet WebSite_CN_Coach ) @@ -54,8 +55,9 @@ type Product struct { PriceStatus PriceStatus `json:"priceStatus"` //价格状态 Remark string `json:"remark"` //备注 - HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"` - DWHistoryPrices []DWHistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"dwHistoryPrices"` + HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"` + DWHistoryPrices []DWHistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"dwHistoryPrices"` + CalculateProcess []CalculateProcess `gorm:"foreignKey:Pid;references:Pid" json:"calculateProcess"` } func (p *Product) TableName() string { @@ -65,7 +67,6 @@ func (p *Product) TableName() string { func (p *Product) Env() map[string]any { return map[string]any{ "originalPrice": p.OriginalPrice, - "dwPrice": p.DWPrice, "freight": p.Freight, "exchangeRate": p.ExchangeRate, }