feat: 建立商品颜色映射数据模型 (#293)
This commit is contained in:
@@ -388,6 +388,40 @@ type SpecMapping struct {
|
||||
ContextVersion string
|
||||
}
|
||||
|
||||
// ProductColorMapping 保存一个蝦皮商品颜色到当前 PDD 商品颜色值的人工映射。
|
||||
//
|
||||
// 尺码不属于这里:采购仍以完整 spec_mappings 为准。PDD 商品发生替换时,
|
||||
// PddGoodsID 会把旧映射自然隔离并保留,避免误用到新商品。
|
||||
type ProductColorMapping struct {
|
||||
ShopeeGoodsID string
|
||||
ShopeeColorKey string
|
||||
ShopeeColorRaw string
|
||||
PddGoodsID string
|
||||
PddDimensionKey string
|
||||
PddColorValue string
|
||||
ContextVersion string
|
||||
MappedBy string
|
||||
MappedAt string
|
||||
}
|
||||
|
||||
// ProductColorMappingAudit 是颜色映射的追加式审计记录。
|
||||
// 清除映射只删除当前态,旧值仍保留在审计表中。
|
||||
type ProductColorMappingAudit struct {
|
||||
ID int64
|
||||
ShopeeGoodsID string
|
||||
ShopeeColorKey string
|
||||
ShopeeColorRaw string
|
||||
PddGoodsID string
|
||||
Action string
|
||||
OldDimensionKey string
|
||||
OldColorValue string
|
||||
NewDimensionKey string
|
||||
NewColorValue string
|
||||
ContextVersion string
|
||||
ActorUserID string
|
||||
CreatedAt string
|
||||
}
|
||||
|
||||
type SpecMappingDecision struct {
|
||||
ShopeeGoodsID, SpecKey, PddGoodsID string
|
||||
RulesVersion, SuggestedOptionKey, ChosenOptionKey string
|
||||
|
||||
Reference in New Issue
Block a user