add product parse
This commit is contained in:
@@ -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
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App\Platform;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品解析器契约接口
|
||||||
|
*
|
||||||
|
* 定义所有电商平台产品解析器必须实现的方法
|
||||||
|
* 适用于:Shopee、Tmall、JD 等所有电商平台
|
||||||
|
*/
|
||||||
|
interface ProductContract
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user