1. 新增 ProductCatalogService 負責商品清單轉換與 Redis 快取邏輯。 2. 新增 WarmProductsCacheCommand (artisan products:warm-cache) 用於預熱快取。 3. 修改 ProductController 在商品異動時自動重建快取。 4. 修改 MachineController@getProducts (B012) 改為 Cache-First 讀取。 5. 在 Company 模型補上 products 關聯以支援暖機指令。 |
||
|---|---|---|
| .. | ||
| Machine | ||
| Product | ||
| Transaction | ||