MagentoProductServiceInterface.php 910 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
/**
 * Created by PhpStorm.
 * User: Zero
 * Date: 2020/10/12
 * Time: 9:39
 */

namespace Meibuyu\Rpc\Service\Interfaces\Product;

interface MagentoProductServiceInterface
{

    /**
15
     * 通过magento子产品的属性获取仓库单个产品信息
16 17 18
     * @param string $platformProductSku magento 平台主sku
     * @param string $color 颜色
     * @param string $size 尺码
姜克保's avatar
姜克保 committed
19
     * @param int    $siteId
20 21
     * @return array
     */
姜克保's avatar
姜克保 committed
22
    public function getChildByAttributes(int $siteId,string $platformProductSku, string $color, string $size): array;
23 24 25

    /**
     * 通过magento子产品的属性获取仓库批量产品信息
姜克保's avatar
姜克保 committed
26
     * @param int $siteId
27 28 29 30
     * @param array $attributes
     * [['platform_product_sku' => $platformProductSku, 'color' => $color, 'size' => $size]]
     * @return array
     */
姜克保's avatar
姜克保 committed
31
    public function getChildrenByAttributes(int $siteId,array $attributes): array;
32 33

}