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,15 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\TestModuleSynchronousAmqp\Api;
interface ServiceInterface
{
/**
* @param string $simpleDataItem
* @return string
*/
public function execute($simpleDataItem);
}
@@ -0,0 +1,18 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\TestModuleSynchronousAmqp\Model;
class RpcRequestHandler
{
/**
* @param string $simpleDataItem
* @return string
*/
public function process($simpleDataItem)
{
return $simpleDataItem . ' processed by RPC handler';
}
}
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Communication/etc/communication.xsd">
<topic name="synchronous.rpc.test.deprecated" request="string" response="string">
<handler name="processRpcRequest" type="Magento\TestModuleSynchronousAmqp\Model\RpcRequestHandler" method="process"/>
</topic>
<topic name="synchronous.rpc.test" request="string" response="string">
<handler name="processRpcRequest" type="Magento\TestModuleSynchronousAmqp\Model\RpcRequestHandler" method="process"/>
</topic>
<topic name="magento.testModuleSynchronousAmqp.api.serviceInterface.execute" schema="Magento\TestModuleSynchronousAmqp\Api\ServiceInterface::execute">
<handler name="processRemoteRequest" type="Magento\TestModuleSynchronousAmqp\Model\RpcRequestHandler" method="process"/>
</topic>
<topic name="sync.topic.for.mixed.sync.and.async.queue" request="string" response="string">
<handler name="processRpcRequest" type="Magento\TestModuleSynchronousAmqp\Model\RpcRequestHandler" method="process"/>
</topic>
<topic name="multi.topic.queue.topic.a" request="string" response="string">
<handler name="processRpcRequest" type="Magento\TestModuleSynchronousAmqp\Model\RpcRequestHandler" method="process"/>
</topic>
<topic name="multi.topic.queue.topic.b" request="string" response="string">
<handler name="processRpcRequest" type="Magento\TestModuleSynchronousAmqp\Model\RpcRequestHandler" method="process"/>
</topic>
</config>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\TestModuleSynchronousAmqp\Api\ServiceInterface" type="Magento\TestModuleSynchronousAmqp\Api\ServiceInterfaceRemote" />
</config>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_TestModuleSynchronousAmqp"/>
</config>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/queue.xsd">
<broker topic="synchronous.rpc.test.deprecated" type="amqp" exchange="magento">
<queue consumer="synchronousRpcTestConsumer.deprecated" name="synchronous.rpc.test.deprecated" consumerInstance="Magento\Framework\MessageQueue\Rpc\Consumer"/>
</broker>
</config>
@@ -0,0 +1,14 @@
<!--<?xml version="1.0"?>-->
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
<consumer name="synchronousRpcTestConsumer" queue="synchronous.rpc.test" connection="amqp" consumerInstance="Magento\Framework\MessageQueue\Rpc\Consumer"/>
<consumer name="RemoteServiceTestConsumer" queue="queue.magento.testModuleSynchronousAmqp.api.serviceInterface.execute" connection="amqp" consumerInstance="Magento\Framework\MessageQueue\Rpc\Consumer"/>
<consumer name="mixed.sync.and.async.queue.consumer" queue="mixed.sync.and.async.queue" connection="amqp" consumerInstance="Magento\Framework\MessageQueue\Rpc\Consumer"/>
<consumer name="queue.for.multiple.topics.test.a" queue="synchronous.rpc.test" connection="amqp" consumerInstance="Magento\Framework\MessageQueue\Rpc\Consumer"/>
<consumer name="queue.for.multiple.topics.test.b" queue="synchronous.rpc.test" connection="amqp" consumerInstance="Magento\Framework\MessageQueue\Rpc\Consumer"/>
</config>
@@ -0,0 +1,24 @@
<!--<?xml version="1.0"?>-->
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
<publisher topic="synchronous.rpc.test">
<connection name="amqp" exchange="magento" />
</publisher>
<publisher topic="magento.testModuleSynchronousAmqp.api.serviceInterface.execute">
<connection name="amqp" exchange="magento" />
</publisher>
<publisher topic="sync.topic.for.mixed.sync.and.async.queue">
<connection name="amqp" exchange="magento" />
</publisher>
<publisher topic="multi.topic.queue.topic.a">
<connection name="amqp" exchange="magento" />
</publisher>
<publisher topic="multi.topic.queue.topic.b">
<connection name="amqp" exchange="magento" />
</publisher>
</config>
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
<exchange name="magento" connection="amqp" type="topic">
<binding id="sync.binding1" topic="synchronous.rpc.test" destinationType="queue" destination="synchronous.rpc.test"/>
<binding id="sync.binding2" topic="magento.testModuleSynchronousAmqp.api.serviceInterface.execute" destinationType="queue" destination="queue.magento.testModuleSynchronousAmqp.api.serviceInterface.execute"/>
<binding id="sync.binding3" topic="sync.topic.for.mixed.sync.and.async.queue" destinationType="queue" destination="mixed.sync.and.async.queue"/>
<binding id="sync.binding4" topic="multi.topic.queue.topic.a" destinationType="queue" destination="synchronous.rpc.test"/>
<binding id="sync.binding5" topic="multi.topic.queue.topic.b" destinationType="queue" destination="synchronous.rpc.test"/>
</exchange>
</config>
@@ -0,0 +1,12 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\Component\ComponentRegistrar;
$registrar = new ComponentRegistrar();
if ($registrar->getPath(ComponentRegistrar::MODULE, 'Magento_TestModuleSynchronousAmqp') === null) {
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_TestModuleSynchronousAmqp', __DIR__);
}