From f546c6012b27a31a0c70089b6398c9ce935f2ce0 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期六, 23 十一月 2024 14:56:54 +0800
Subject: [PATCH] 1
---
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
index c804cb4..cd5f8fd 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
@@ -28,11 +28,22 @@
/// </summary>
/// <param name="saveModel">浠诲姟鍙�</param>
/// <returns>鎴愬姛鎴栧け璐�</returns>
- [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous]
+ [HttpGet, Route("CompleteTask"), AllowAnonymous]
public async Task<WebResponseContent> CompleteTaskAsync(int taskNum)
{
return await _taskService.CompleteAsync(taskNum);
}
+
+ /// <summary>
+ /// 浠诲姟瀹屾垚
+ /// </summary>
+ /// <param name="saveModel">浠诲姟鍙�</param>
+ /// <returns>鎴愬姛鎴栧け璐�</returns>
+ //[HttpGet, Route("CompleteTaskByStation"), AllowAnonymous]
+ //public async Task<WebResponseContent> CompleteTaskByStation(int taskNum)
+ //{
+ // return await _taskService.CompleteTaskByStation(taskNum);
+ //}
/// <summary>
/// 妫�鏌ユ槸鍚﹂渶瑕佽繘琛岀Щ搴�
@@ -57,6 +68,17 @@
}
/// <summary>
+ /// 璇锋眰浠诲姟宸烽亾
+ /// </summary>
+ /// <param name="input">璇锋眰鏁版嵁</param>
+ /// <returns></returns>
+ [HttpPost, AllowAnonymous, Route("RequestInTask")]
+ public async Task<WebResponseContent> RequestInTask([FromBody] RequestTaskDto input)
+ {
+ return await Service.RequestInTask(input);
+ }
+
+ /// <summary>
/// 璇锋眰浠诲姟璐т綅
/// </summary>
/// <param name="input">璇锋眰鏁版嵁</param>
--
Gitblit v1.9.3