价格参考
This commit is contained in:
@@ -422,6 +422,47 @@ func (*StoreCourierMap) TableUnique() [][]string {
|
||||
}
|
||||
}
|
||||
|
||||
type PriceReferSnapshot struct {
|
||||
ModelIDCULD
|
||||
SnapshotAt time.Time `orm:"type(datetime)" json:"snapshotAt"` // 这个不同于CreatedAt,SnapshotAt是逻辑上的时间,CreatedAt是实际存储的时间
|
||||
CityCode int `json:"cityCode"`
|
||||
SkuID int `orm:"column(sku_id)" json:"skuId"`
|
||||
MaxPrice float64 `json:"maxPrice"`
|
||||
MinPrice float64 `json:"minPrice"`
|
||||
AvgPrice float64 `json:"avgPrice"`
|
||||
MidPrice float64 `json:"midPrice"`
|
||||
MaxJdPrice float64 `json:"maxJdPrice"`
|
||||
MinJdPrice float64 `json:"minJdPrice"`
|
||||
AvgJdPrice float64 `json:"avgJdPrice"`
|
||||
MidJdPrice float64 `json:"midJdPrice"`
|
||||
MaxEbaiPrice float64 `json:"maxEbaiPrice"`
|
||||
MinEbaiPrice float64 `json:"minEbaiPrice"`
|
||||
AvgEbaiPrice float64 `json:"avgEbaiPrice"`
|
||||
MidEbaiPrice float64 `json:"midEbaiPrice"`
|
||||
MaxMtwmPrice float64 `json:"maxMtwmPrice"`
|
||||
MinMtwmPrice float64 `json:"minMtwmPrice"`
|
||||
AvgMtwmPrice float64 `json:"avgMtwmPrice"`
|
||||
MidMtwmPrice float64 `json:"midMtwmPrice"`
|
||||
MaxSalePrice float64 `json:"maxSalePrice"`
|
||||
MinSalePrice float64 `json:"minSalePrice"`
|
||||
AvgSalePrice float64 `json:"avgSalePrice"`
|
||||
MaxVendorPrice float64 `json:"maxVendorPrice"`
|
||||
MinVendorPrice float64 `json:"minVendorPrice"`
|
||||
AvgVendorPrice float64 `json:"avgVendorPrice"`
|
||||
}
|
||||
|
||||
func (*PriceReferSnapshot) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"CityCode", "SkuID", "SnapshotAt"},
|
||||
}
|
||||
}
|
||||
|
||||
func (*PriceReferSnapshot) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"SnapshotAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type VendorStoreSnapshot struct {
|
||||
ModelIDCULD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user