feat: 建立商品目录接入基础 (#132)

This commit is contained in:
chengma
2026-08-11 10:00:07 +08:00
parent b1a78f3e2f
commit 107ee5ce85
13 changed files with 631 additions and 7 deletions
+36
View File
@@ -0,0 +1,36 @@
package model
// CatalogImportStatus 是一次商品目录批次的稳定状态。
type CatalogImportStatus string
const (
CatalogImportProcessing CatalogImportStatus = "processing"
CatalogImportSucceeded CatalogImportStatus = "succeeded"
CatalogImportFailed CatalogImportStatus = "failed"
)
// 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
PddCreated int
PddUpdated int
AssociationCreated int
AssociationUnchanged int
FailureCount int
ErrorSummary string
ResponseBody string
CreatedAt string
FinishedAt string
}