feat: 展示蝦皮主图和店铺 (#142)

This commit is contained in:
chengma
2026-08-11 11:18:51 +08:00
parent a441dfef87
commit 38d6a0a04b
22 changed files with 555 additions and 101 deletions
+32 -28
View File
@@ -11,32 +11,36 @@ const (
// CatalogImportRun 保存批次追踪信息,不保存 Token 或完整请求体。
type CatalogImportRun struct {
Source string
BatchID string
RequestHash string
Status CatalogImportStatus
RequestCount int
ConflictCount int
ObservedAt string
LastRequestAt string
LastConflictAt string
ShopeeCreated int
ShopeeUpdated int
SKUCreated int
SKUUpdated int
UpdatePolicy string
SKUFilled int
SKUSameSourceUpdated int
SKUSkipped int
SKUManualSkipped int
SKUStaleSkipped int
PddCreated int
PddUpdated int
AssociationCreated int
AssociationUnchanged int
FailureCount int
ErrorSummary string
ResponseBody string
CreatedAt string
FinishedAt string
Source string
BatchID string
RequestHash string
Status CatalogImportStatus
RequestCount int
ConflictCount int
ObservedAt string
LastRequestAt string
LastConflictAt string
ShopeeCreated int
ShopeeUpdated int
ShopeeFieldsFilled int
ShopeeFieldsSameSourceUpdated int
ShopeeFieldsManualSkipped int
ShopeeFieldsStaleSkipped int
SKUCreated int
SKUUpdated int
UpdatePolicy string
SKUFilled int
SKUSameSourceUpdated int
SKUSkipped int
SKUManualSkipped int
SKUStaleSkipped int
PddCreated int
PddUpdated int
AssociationCreated int
AssociationUnchanged int
FailureCount int
ErrorSummary string
ResponseBody string
CreatedAt string
FinishedAt string
}
+15 -9
View File
@@ -164,15 +164,21 @@ func (p PddProduct) IsDeleted() bool {
//
// 采集结果和采集状态**不在这里**——它们属于 PDD 商品,见 PddProduct。
type ShopeeProduct struct {
GoodsID string
Title string
ShopeeStatus string
MainSKUCode string
Source string // report=蝦皮报表完整行;syb=顺运宝同步补建的商品骨架
PddGoodsURL string
PddGoodsID string // 指向 PddProduct.GoodsID,为空表示还没填链接
CreatedAt string
UpdatedAt string
GoodsID string
Title string
ShopeeStatus string
MainSKUCode string
ImageURL string
ShopeeShopName string
ImageSource, ImageObservedAt string
ImageIsManual bool
ShopNameSource, ShopNameObservedAt string
ShopNameIsManual bool
Source string // report=蝦皮报表完整行;syb=顺运宝同步补建的商品骨架
PddGoodsURL string
PddGoodsID string // 指向 PddProduct.GoodsID,为空表示还没填链接
CreatedAt string
UpdatedAt string
}
// ShopeeSKU 是蝦皮的一个规格(SKU 级)。