feat product包含CalculateProcess
This commit is contained in:
parent
3490bc7e57
commit
585b23cbfb
@ -18,6 +18,7 @@ type Website int
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
WebSite_US_Coach_Outlet Website = iota + 1
|
WebSite_US_Coach_Outlet Website = iota + 1
|
||||||
|
WebSite_CN_Coach_Outlet
|
||||||
WebSite_CN_Coach
|
WebSite_CN_Coach
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -56,6 +57,7 @@ type Product struct {
|
|||||||
|
|
||||||
HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"`
|
HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"`
|
||||||
DWHistoryPrices []DWHistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"dwHistoryPrices"`
|
DWHistoryPrices []DWHistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"dwHistoryPrices"`
|
||||||
|
CalculateProcess []CalculateProcess `gorm:"foreignKey:Pid;references:Pid" json:"calculateProcess"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Product) TableName() string {
|
func (p *Product) TableName() string {
|
||||||
@ -65,7 +67,6 @@ func (p *Product) TableName() string {
|
|||||||
func (p *Product) Env() map[string]any {
|
func (p *Product) Env() map[string]any {
|
||||||
return map[string]any{
|
return map[string]any{
|
||||||
"originalPrice": p.OriginalPrice,
|
"originalPrice": p.OriginalPrice,
|
||||||
"dwPrice": p.DWPrice,
|
|
||||||
"freight": p.Freight,
|
"freight": p.Freight,
|
||||||
"exchangeRate": p.ExchangeRate,
|
"exchangeRate": p.ExchangeRate,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user