From c3de7bb2097aa347a1f92c2f640d18753aff633a Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 28 二月 2026 13:41:26 +0800
Subject: [PATCH] 添加HTTP客户端助手、枚举、DTO;更新URL
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
index ee093bd..cb2276f 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
@@ -28,7 +28,7 @@
[HttpGet,HttpPost,Route("GroupPalletAsync"), AllowAnonymous]
public async Task<bool> GroupPallet([FromBody]StockDTO stock)
{
- return await Service.GroupPallet(stock);
+ return await Service.GroupPalletAsync(stock);
}
/// <summary>
@@ -37,9 +37,9 @@
/// <param name="stock"></param>
/// <returns></returns>
[HttpGet, HttpPost, Route("ChangePalletAsync"),AllowAnonymous]
- public async Task<bool> ChangePallet([FromBody] StockDTO stock)
+ public async Task<bool> ChangePalletAsync([FromBody] StockDTO stock)
{
- return await Service.ChangePallet(stock);
+ return await Service.ChangePalletAsync(stock);
}
/// <summary>
@@ -48,9 +48,20 @@
/// <param name="stock"></param>
/// <returns></returns>
[HttpGet, HttpPost, Route("SplitPalletAsync"), AllowAnonymous]
- public async Task<bool> SplitPallet([FromBody] StockDTO stock)
+ public async Task<bool> SplitPalletAsync([FromBody] StockDTO stock)
{
- return await Service.SplitPallet(stock);
+ return await Service.SplitPalletAsync(stock);
+ }
+
+ /// <summary>
+ /// 鏇存柊搴撳瓨淇℃伅锛堢粍鐩樸�佹崲鐩樸�佹媶鐩樺悗璋冪敤姝ゆ帴鍙f洿鏂板簱瀛樹俊鎭級
+ /// </summary>
+ /// <param name="stock"></param>
+ /// <returns></returns>
+ [HttpGet, HttpPost, Route("UpdateStockInfoAsync"), AllowAnonymous]
+ public async Task<WebResponseContent> UpdateStockInfoAsync([FromBody] StockInfoDTO stock)
+ {
+ return await Service.UpdateStockInfoAsync(stock);
}
}
}
--
Gitblit v1.9.3