Commit 8aaac639 authored by chentianyu's avatar chentianyu

rpc 获取ProductChild产品数组

parent 1c30f193
...@@ -268,5 +268,14 @@ interface ProductServiceInterface ...@@ -268,5 +268,14 @@ interface ProductServiceInterface
*/ */
public function getProductNamesByWhere(array $where, array $select = ['id'], array $limitIds = null): array; public function getProductNamesByWhere(array $where, array $select = ['id'], array $limitIds = null): array;
/**
* 获取ProductChild产品数组
* @param array $where
* @param array $whereIn
* @param array $columns 子SKU表的字段,默认显示全部
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost', 'weight', 'packs']
* @return array 默认keyBy('id')
*/
public function getProductChildByWhere(array $where, array $whereIn = [], array $columns = ['*'], array $relations = []): array;
} }
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