ltsecurityinc安防产品在线商城代码
This commit is contained in:
+23
@@ -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 = []);
|
||||
}
|
||||
+20
@@ -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 = []);
|
||||
}
|
||||
+17
@@ -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);
|
||||
}
|
||||
+16
@@ -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();
|
||||
}
|
||||
+25
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data;
|
||||
|
||||
interface RelevanceRuleInterface
|
||||
{
|
||||
/**#@+
|
||||
* Constants defined for keys of data array
|
||||
*/
|
||||
public const RULE_ID = 'rule_id';
|
||||
public const WEBSITE_ID = 'website_id';
|
||||
public const IS_ENABLED = 'is_enabled';
|
||||
public const TITLE = 'title';
|
||||
public const FROM_DATE = 'from_date';
|
||||
public const TO_DATE = 'to_date';
|
||||
public const MULTIPLIER = 'multiplier';
|
||||
public const CONDITIONS = 'conditions_serialized';
|
||||
public const TABLE_NAME = 'amasty_elastic_relevance_rule';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getWebsiteId();
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isEnabled();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFromDate();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getToDate();
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMultiplier();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConditions();
|
||||
|
||||
/**
|
||||
* @param int $websiteId
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setWebsiteId($websiteId);
|
||||
|
||||
/**
|
||||
* @param $isEnabled
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setIsEnabled($isEnabled);
|
||||
|
||||
/**
|
||||
* @param $title
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setTitle($title);
|
||||
|
||||
/**
|
||||
* @param $fromDate
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setFromDate($fromDate);
|
||||
|
||||
/**
|
||||
* @param $toDate
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setToDate($toDate);
|
||||
|
||||
/**
|
||||
* @param $multiplier
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setMultiplier($multiplier);
|
||||
|
||||
/**
|
||||
* @param $condition
|
||||
* @return RelevanceRuleInterface
|
||||
*/
|
||||
public function setConditions($condition);
|
||||
|
||||
/**
|
||||
* @return \Magento\CatalogRule\Model\Rule
|
||||
*/
|
||||
public function getCatalogRule();
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isConditionEmpty();
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data;
|
||||
|
||||
interface StopWordInterface
|
||||
{
|
||||
/**#@+
|
||||
* Constants defined for keys of data array
|
||||
*/
|
||||
public const STOP_WORD_ID = 'stop_word_id';
|
||||
public const TABLE_NAME = 'amasty_elastic_stop_word';
|
||||
public const TERM = 'term';
|
||||
public const STORE_ID = 'store_id';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStopWordId();
|
||||
|
||||
/**
|
||||
* @param int $stopWordId
|
||||
*
|
||||
* @return \Amasty\ElasticSearch\Api\Data\StopWordInterface
|
||||
*/
|
||||
public function setStopWordId($stopWordId);
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTerm();
|
||||
|
||||
/**
|
||||
* @param string $term
|
||||
*
|
||||
* @return \Amasty\ElasticSearch\Api\Data\StopWordInterface
|
||||
*/
|
||||
public function setTerm($term);
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStoreId();
|
||||
|
||||
/**
|
||||
* @param int $storeId
|
||||
*
|
||||
* @return \Amasty\ElasticSearch\Api\Data\StopWordInterface
|
||||
*/
|
||||
public function setStoreId($storeId);
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data;
|
||||
|
||||
interface SynonymInterface
|
||||
{
|
||||
/**#@+
|
||||
* Constants defined for keys of data array
|
||||
*/
|
||||
public const SYNONYM_ID = 'synonym_id';
|
||||
public const TABLE_NAME = 'amasty_elastic_synonym';
|
||||
public const STORE_ID = 'store_id';
|
||||
public const TERM = 'term';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSynonymId();
|
||||
|
||||
/**
|
||||
* @param int $synonymId
|
||||
*
|
||||
* @return \Amasty\ElasticSearch\Api\Data\SynonymInterface
|
||||
*/
|
||||
public function setSynonymId($synonymId);
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStoreId();
|
||||
|
||||
/**
|
||||
* @param int $storeId
|
||||
*
|
||||
* @return \Amasty\ElasticSearch\Api\Data\SynonymInterface
|
||||
*/
|
||||
public function setStoreId($storeId);
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTerm();
|
||||
|
||||
/**
|
||||
* @param string $term
|
||||
*
|
||||
* @return \Amasty\ElasticSearch\Api\Data\SynonymInterface
|
||||
*/
|
||||
public function setTerm($term);
|
||||
}
|
||||
Reference in New Issue
Block a user