feat: 建立商品目录接入基础 (#132)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user