37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
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
|
|
}
|