ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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_TestModuleJoinDirectives::all" title="TestJoinDirectives" sortOrder="1">
|
||||
<resource id="Magento_TestModuleJoinDirectives::getList" title="GetList" sortOrder="10"/>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</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\TestModuleJoinDirectives\Api\TestRepositoryInterface" type="Magento\TestModuleJoinDirectives\Model\TestRepository" />
|
||||
</config>
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
<?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\Quote\Api\Data\CartInterface">
|
||||
<attribute code="quoteApiTestAttribute" type="Magento\User\Api\Data\UserInterface">
|
||||
<join reference_table="admin_user"
|
||||
join_on_field="store_id"
|
||||
reference_field="user_id"
|
||||
>
|
||||
<field>firstname</field>
|
||||
<field>lastname</field>
|
||||
<field>email</field>
|
||||
</join>
|
||||
</attribute>
|
||||
</extension_attributes>
|
||||
<extension_attributes for="Magento\Sales\Api\Data\InvoiceInterface">
|
||||
<attribute code="invoiceApiTestAttribute" type="Magento\User\Api\Data\UserInterface">
|
||||
<join reference_table="admin_user"
|
||||
join_on_field="store_id"
|
||||
reference_field="user_id"
|
||||
>
|
||||
<field>firstname</field>
|
||||
<field>lastname</field>
|
||||
<field>email</field>
|
||||
</join>
|
||||
</attribute>
|
||||
</extension_attributes>
|
||||
<extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
|
||||
<attribute code="orderApiTestAttribute" type="Magento\User\Api\Data\UserInterface">
|
||||
<join reference_table="admin_user"
|
||||
join_on_field="store_id"
|
||||
reference_field="user_id"
|
||||
>
|
||||
<field>firstname</field>
|
||||
<field>lastname</field>
|
||||
<field>email</field>
|
||||
</join>
|
||||
</attribute>
|
||||
</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_TestModuleJoinDirectives" />
|
||||
</config>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?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 url="/V1/TestModuleJoinDirectives" method="GET">
|
||||
<service class="Magento\TestModuleJoinDirectives\Api\TestRepositoryInterface" method="getList"/>
|
||||
<resources>
|
||||
<resource ref="Magento_TestModuleJoinDirectives::getList" />
|
||||
</resources>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user