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,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:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Magento_TestModuleMSC::all" title="TestModuleMSC" sortOrder="1">
<resource id="Magento_TestModuleMSC::resource1" title="Resource1" sortOrder="20"/>
<resource id="Magento_TestModuleMSC::resource2" title="Resource2" sortOrder="10"/>
<resource id="Magento_TestModuleMSC::resource3" title="Resource3" sortOrder="30"/>
</resource>
</resource>
</resources>
</acl>
</config>
@@ -0,0 +1,58 @@
<?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\TestModuleMSC\Api\AllSoapAndRestInterface" type="Magento\TestModuleMSC\Model\AllSoapAndRest" />
<preference for="Magento\TestModuleMSC\Api\Data\ItemInterface" type="Magento\TestModuleMSC\Model\Data\Item" />
<preference for="Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface" type="Magento\TestModuleMSC\Model\Data\CustomAttributeDataObject" />
<preference for="Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface" type="Magento\TestModuleMSC\Model\Data\CustomAttributeNestedDataObject" />
<virtualType name="Magento\TestModuleMSC\Service\Config\TestModuleMSCMetadataConfig" type="Magento\Framework\Api\ExtensionAttribute\Config\MetadataConfig">
<arguments>
<argument name="attributeMetadataBuilder" xsi:type="object">Magento\TestModuleMSC\Model\Data\Eav\AttributeMetadataBuilder</argument>
<argument name="dataObjectClassName" xsi:type="string">Magento\TestModuleMSC\Model\Data\Item</argument>
</arguments>
</virtualType>
<type name="Magento\TestModuleMSC\Model\Data\Item">
<arguments>
<argument name="resource" xsi:type="object">Magento\TestModuleMSC\Model\ResourceModel\Item</argument>
<argument name="metadataService" xsi:type="object">Magento\TestModuleMSC\Service\Config\TestModuleMSCMetadataConfig</argument>
</arguments>
</type>
<type name="Magento\TestModuleMSC\Model\Data\CustomAttributeDataObject">
<arguments>
<argument name="resource" xsi:type="object">Magento\TestModuleMSC\Model\ResourceModel\Item</argument>
</arguments>
</type>
<virtualType name="CustomAttributeMap" type="Magento\Framework\DataObject">
<arguments>
<argument name="data" xsi:type="array">
<item name="customAttributeDataObjectInterface" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface</item>
<item name="customAttributeNestedDataObjectInterface" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface</item>
</argument>
</arguments>
</virtualType>
<type name="Magento\Framework\Webapi\ServiceTypeToEntityTypeMap">
<arguments>
<argument name="serviceTypeToEntityTypeMap" xsi:type="array">
<item name="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" xsi:type="string">1</item>
</argument>
</arguments>
</type>
<type name="Magento\Eav\Model\TypeLocator\ComplexType">
<arguments>
<argument name="backendModelToAttributeTypeMap" xsi:type="array">
<item name="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" xsi:type="array">
<item name="Magento\Sample\BackendType1" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface</item>
<item name="Magento\Sample\BackendType2" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface</item>
</item>
</argument>
</arguments>
</type>
</config>
@@ -0,0 +1,17 @@
<?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:Api/etc/extension_attributes.xsd">
<extension_attributes for="Magento\TestModuleMSC\Api\Data\ItemInterface">
<attribute code="custom_attribute_data_object" type="Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface" />
<attribute code="custom_attribute_string" type="string" />
</extension_attributes>
<extension_attributes for="Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface">
<attribute code="custom_attribute_nested" type="Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface" />
<attribute code="custom_attribute_int" type="int" />
</extension_attributes>
</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_TestModuleMSC" />
</config>
@@ -0,0 +1,69 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
<route method="GET" url="/V1/testmoduleMSC/overwritten">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="item" />
<resources>
<resource ref="Magento_TestModuleMSC::resource1" />
</resources>
<data>
<parameter name="itemId" force="true">-55</parameter>
</data>
</route>
<route method="POST" url="/V1/testmoduleMSC/testOptionalParam">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="testOptionalParam" />
<resources>
<resource ref="Magento_TestModuleMSC::resource1" />
</resources>
<data>
<parameter name="name">Default Name</parameter>
</data>
</route>
<route method="GET" url="/V1/testmoduleMSC/:itemId">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="item" />
<resources>
<resource ref="Magento_TestModuleMSC::resource1" />
</resources>
</route>
<route method="GET" url="/V1/testmoduleMSC">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="items" />
<resources>
<resource ref="Magento_TestModuleMSC::resource2" />
</resources>
</route>
<route method="POST" url="/V1/testmoduleMSC">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="create" />
<resources>
<resource ref="Magento_TestModuleMSC::resource3" />
</resources>
</route>
<route method="PUT" url="/V1/testmoduleMSC/:itemId">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="update" />
<resources>
<resource ref="Magento_TestModuleMSC::resource1" />
<resource ref="Magento_TestModuleMSC::resource2" />
</resources>
</route>
<route method="POST" url="/V1/testmoduleMSC/itemAnyType">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="itemAnyType" />
<resources>
<resource ref="Magento_TestModuleMSC::resource1" />
<resource ref="Magento_TestModuleMSC::resource2" />
</resources>
</route>
<route method="GET" url="/V1/testmoduleMSC/itemPreconfigured">
<service class="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" method="getPreconfiguredItem" />
<resources>
<resource ref="Magento_TestModuleMSC::resource1" />
<resource ref="Magento_TestModuleMSC::resource2" />
</resources>
</route>
</routes>