Commit a2f85ee0 authored by 王源's avatar 王源 🎧

产品rpc添加通过sku列表获取产品列表

parent bc9db061
...@@ -35,6 +35,15 @@ interface ProductServiceInterface ...@@ -35,6 +35,15 @@ interface ProductServiceInterface
*/ */
public function getByIdList(array $idList, array $relations = [], array $columns = ['*']): array; public function getByIdList(array $idList, array $relations = [], array $columns = ['*']): array;
/**
* 通过sku列表获取产品列表
* @param array $skuList 默认去重
* @param array $relations 子SKU的关联关系,可传入['color', 'size','brand', 'category', 'product_name', 'images', 'cost', 'weight']
* @param array $columns 子SKU表的字段,默认返回id
* @return array 默认keyBy('child_sku')
*/
public function getListBySkuList(array $skuList, array $relations = [], array $columns = ['id']);
/** /**
* 获取全部品类列表 * 获取全部品类列表
* @param bool $asTree 是否作为树返回 * @param bool $asTree 是否作为树返回
......
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