add product parse

This commit is contained in:
2026-02-04 09:48:13 +08:00
parent 39ef3acc1f
commit 8706f4e15e
2 changed files with 35 additions and 0 deletions
@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace App\Platform;
use App\Entity\Parse\EntityParse;
use InvalidArgumentException;
/**
* 产品解析器抽象基类
*
* 继承 EntityParse 的通用能力,并实现 ProductContract 契约
* 提供产品解析的通用方法和辅助函数
*/
abstract class AbstractProductParse extends EntityParse implements ProductContract
{
}
+16
View File
@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace App\Platform;
/**
* 产品解析器契约接口
*
* 定义所有电商平台产品解析器必须实现的方法
* 适用于:Shopee、Tmall、JD 等所有电商平台
*/
interface ProductContract
{
}