Loading src/Service/Interfaces/Product/ProductChildServiceInterface.php +8 −0 Original line number Diff line number Diff line Loading @@ -143,4 +143,12 @@ interface ProductChildServiceInterface * @return array GroupBy('product_id') */ public function getListByProductIds(array $productIds, array $columns = ['*']): array; /** * 批量更新子产品 * * @param array $updates 更新数据,[['id' => 1, 'cost' => '1.11'], ['id' => 2, 'cost' => '1.11']] * @return bool */ public function updateChildProducts(array $updates): bool; } Loading
src/Service/Interfaces/Product/ProductChildServiceInterface.php +8 −0 Original line number Diff line number Diff line Loading @@ -143,4 +143,12 @@ interface ProductChildServiceInterface * @return array GroupBy('product_id') */ public function getListByProductIds(array $productIds, array $columns = ['*']): array; /** * 批量更新子产品 * * @param array $updates 更新数据,[['id' => 1, 'cost' => '1.11'], ['id' => 2, 'cost' => '1.11']] * @return bool */ public function updateChildProducts(array $updates): bool; }