From 1f15dd43b334e31189c4580b98f57d2cc71935d8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 30 三月 2026 14:11:23 +0800
Subject: [PATCH] refactor(StockInfo): 重构 Get3DLayoutAsync 使用依赖注入服务

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs
index 089a068..1a7ac90 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs
@@ -20,6 +20,16 @@
         {
         }
 
-        
+        /// <summary>
+        /// 鑾峰彇浠撳簱3D甯冨眬
+        /// </summary>
+        /// <param name="warehouseId">浠撳簱ID</param>
+        /// <returns>3D甯冨眬鏁版嵁</returns>
+        [HttpGet("Get3DLayout")]
+        public async Task<WebResponseContent> Get3DLayout(int warehouseId)
+        {
+            var result = await Service.Get3DLayoutAsync(warehouseId);
+            return WebResponseContent.Instance.OK(data: result);
+        }
     }
 }

--
Gitblit v1.9.3