门店价格插叙

This commit is contained in:
suyl
2019-12-07 20:26:52 +08:00
parent 6eb984987d
commit 4caf019e70
7 changed files with 124 additions and 26 deletions

View File

@@ -465,6 +465,25 @@ func (*PriceReferSnapshot) TableIndex() [][]string {
}
}
type StorePriceScoreSnapshot struct {
ModelIDCULD
SnapshotAt time.Time `orm:"type(datetime)" json:"snapshotAt"` // 这个不同于CreatedAtSnapshotAt是逻辑上的时间CreatedAt是实际存储的时间
StoreID int `orm:"column(store_id)" json:"storeID"`
Score float64 `json:"score"`
}
func (*StorePriceScoreSnapshot) TableUnique() [][]string {
return [][]string{
[]string{"StoreID", "Score", "SnapshotAt"},
}
}
func (*StorePriceScoreSnapshot) TableIndex() [][]string {
return [][]string{
[]string{"SnapshotAt"},
}
}
type VendorStoreSnapshot struct {
ModelIDCULD