update sku mapping

This commit is contained in:
2026-04-17 09:43:16 +08:00
parent 849f61cb65
commit 2711c01a48
4 changed files with 129 additions and 39 deletions
+8 -4
View File
@@ -14,12 +14,13 @@ use OpenApi\Attributes as OA;
* @property int $platform_id 平台 ID
* @property string $platform_product_id 平台商品 ID
* @property string $origin_sku 客户侧匹配的 SKU 编码
* @property int|null $origin_sku_id 关联 skus_origin.id
* @property string|null $platform_outer_sku 平台侧使用的 SKU 编码
* @property int $origin_sku_id 关联 skus_origin.id
* @property string $platform_outer_sku 平台侧使用的 SKU 编码
* @property string|null $generation_strategy 生成策略记录
* @property int|null $store_id 店铺 ID
* @property int|null $warehouse_id 仓库 ID
* @property boolean $enabled 是否启用
* @property boolean $bundled 是否为组合商品映射
* @property string|null $note 备注
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
@@ -33,12 +34,13 @@ use OpenApi\Attributes as OA;
new OA\Property(property: 'platform_id', type: 'integer', example: 1),
new OA\Property(property: 'platform_product_id', type: 'string', example: 'ITEM-001'),
new OA\Property(property: 'origin_sku', type: 'string', example: '0032'),
new OA\Property(property: 'origin_sku_id', type: 'integer', nullable: true, example: 1),
new OA\Property(property: 'platform_outer_sku', type: 'string', nullable: true, example: 'C03_0032'),
new OA\Property(property: 'origin_sku_id', type: 'integer', example: 1),
new OA\Property(property: 'platform_outer_sku', type: 'string', example: 'C03_0032'),
new OA\Property(property: 'generation_strategy', type: 'string', nullable: true, example: 'prefix:C03'),
new OA\Property(property: 'store_id', type: 'integer', nullable: true, example: 101),
new OA\Property(property: 'warehouse_id', type: 'integer', nullable: true, example: 1),
new OA\Property(property: 'enabled', type: 'boolean', example: true),
new OA\Property(property: 'bundled', type: 'boolean', example: false, description: '是否为组合商品映射'),
new OA\Property(property: 'note', type: 'string', nullable: true, example: '用于 Shopee 马来站'),
new OA\Property(property: 'created_at', type: 'string', format: 'date-time'),
new OA\Property(property: 'updated_at', type: 'string', format: 'date-time'),
@@ -65,6 +67,7 @@ class SkuMapping extends Model
'store_id',
'warehouse_id',
'enabled',
'bundled',
'note',
];
@@ -79,6 +82,7 @@ class SkuMapping extends Model
'store_id' => 'integer',
'warehouse_id' => 'integer',
'enabled' => 'boolean',
'bundled' => 'boolean',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];