refactor(modular): 完成第二階段儀表板解耦與模型清理
This commit is contained in:
@@ -40,6 +40,14 @@ interface InventoryServiceInterface
|
||||
*/
|
||||
public function getProductsByIds(array $ids);
|
||||
|
||||
/**
|
||||
* Search products by name.
|
||||
*
|
||||
* @param string $name
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
public function getProductsByName(string $name);
|
||||
|
||||
/**
|
||||
* Get a specific product by ID.
|
||||
*
|
||||
@@ -97,4 +105,11 @@ interface InventoryServiceInterface
|
||||
* @return void
|
||||
*/
|
||||
public function decreaseInventoryQuantity(int $inventoryId, float $quantity, ?string $reason = null, ?string $referenceType = null, $referenceId = null);
|
||||
|
||||
/**
|
||||
* Get statistics for the dashboard.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getDashboardStats(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user