Commit 1b7d4b81 authored by 王源's avatar 王源 🎧

产品rpc

     * 获取仓库子sku对应的平台子sku
     * 获取某产品下的所有子产品
parent 2ae4dc84
...@@ -61,4 +61,13 @@ interface PlatformProductChildServiceInterface ...@@ -61,4 +61,13 @@ interface PlatformProductChildServiceInterface
*/ */
public function getIdsByChildSku(string $childSku, array $limitIds = null); public function getIdsByChildSku(string $childSku, array $limitIds = null);
/**
* 获取仓库子sku对应的平台子sku
* @param array $productChildIds 已去重
* @param null $siteId 指定站点id, 不传或传null,获取全部数据
* @param array $columns
* @return array
*/
public function getListByProductChildIds(array $productChildIds, $siteId = null, array $columns = ['*']);
} }
...@@ -83,4 +83,12 @@ interface ProductChildServiceInterface ...@@ -83,4 +83,12 @@ interface ProductChildServiceInterface
*/ */
public function getColorById(int $id, array $columns = ['id', 'code', 'cn_name', 'en_name']); public function getColorById(int $id, array $columns = ['id', 'code', 'cn_name', 'en_name']);
/**
* 获取某产品下的所有子产品
* @param int $productId
* @param array $columns
* @return array
*/
public function getListByProductId(int $productId, $columns = ['id', 'child_sku']);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment