Loading src/Service/Interfaces/Product/ProductChildServiceInterface.php +12 −0 Original line number Diff line number Diff line Loading @@ -115,4 +115,16 @@ interface ProductChildServiceInterface * @return array */ public function createChildrenProducts(array $childDetails): array; /** * 通过id列表获取产品数组---(组合产品颜色展示兼容) 主要用于坐标渲染 * @param array $idList 子SKUid的列表, 默认去重 * @param array $columns 子SKU表的字段,默认显示全部 * @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost', 'weight', 'packs'] * @author Liu lu * date 2023-03-13 */ public function getByIdListNew(array $idList, array $columns = ['*'], array $relations = ['color', 'size','packs.color']); } Loading
src/Service/Interfaces/Product/ProductChildServiceInterface.php +12 −0 Original line number Diff line number Diff line Loading @@ -115,4 +115,16 @@ interface ProductChildServiceInterface * @return array */ public function createChildrenProducts(array $childDetails): array; /** * 通过id列表获取产品数组---(组合产品颜色展示兼容) 主要用于坐标渲染 * @param array $idList 子SKUid的列表, 默认去重 * @param array $columns 子SKU表的字段,默认显示全部 * @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost', 'weight', 'packs'] * @author Liu lu * date 2023-03-13 */ public function getByIdListNew(array $idList, array $columns = ['*'], array $relations = ['color', 'size','packs.color']); }