ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Elastic Search Base for Magento 2
*/
namespace Amasty\ElasticSearch\Api\Data\Indexer\Data;
interface DataMapperInterface
{
public const ENTITY_ID_FIELD_NAME = 'entity_id';
/**
* @since 1.17.1 introduced mapped data in $context['documents']
*
* @param array $indexData
* @param int $storeId
* @param array{ 'indexer_id': string, 'document': array{int: array|string|int} } $context
* @return array
*/
public function map(array $indexData, $storeId, array $context = []);
}
@@ -0,0 +1,20 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Elastic Search Base for Magento 2
*/
namespace Amasty\ElasticSearch\Api\Data\Indexer\Data;
interface DataMapperResolverInterface
{
/**
* @param int $entityId
* @param array $indexData
* @param int $storeId
* @param array $context
* @return array
*/
public function mapEntityData(array $indexData, $storeId, $context = []);
}
@@ -0,0 +1,17 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Elastic Search Base for Magento 2
*/
namespace Amasty\ElasticSearch\Api\Data\Indexer\Structure;
interface AnalyzerBuilderInterface
{
/**
* @param int $storeId
* @return array
*/
public function build($storeId);
}
@@ -0,0 +1,16 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Elastic Search Base for Magento 2
*/
namespace Amasty\ElasticSearch\Api\Data\Indexer\Structure;
interface EntityBuilderInterface
{
/**
* @return array
*/
public function buildEntityFields();
}
@@ -0,0 +1,25 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Elastic Search Base for Magento 2
*/
namespace Amasty\ElasticSearch\Api\Data\Indexer\Structure;
interface IndexBuilderInterface
{
public const MAX_RESULT_COUNT = 1000000;
public const MAX_FIELDS_COUNT = 1000000;
/**
* @return array
*/
public function build();
/**
* @param int $storeId
* @return \Amasty\ElasticSearch\Api\Data\Indexer\Structure\IndexBuilderInterface;
*/
public function setStoreId($storeId);
}