From 79f9c5df2fa012b1586d5cf18481a11baa6e91be Mon Sep 17 00:00:00 2001 From: 肖洋 <cathay_xy@163.com> Date: 星期六, 23 十一月 2024 14:31:38 +0800 Subject: [PATCH] 一大堆更改 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 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 58cf6b7..5fff145 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs @@ -46,14 +46,25 @@ } /// <summary> - /// 浠诲姟璇锋眰 + /// 璇锋眰浠诲姟宸烽亾 /// </summary> /// <param name="input">璇锋眰鏁版嵁</param> /// <returns></returns> - [HttpPost, AllowAnonymous, Route("RequestTaskAsync")] + [HttpPost, AllowAnonymous, Route("RequestTask")] public async Task<WebResponseContent> RequestTaskAsync([FromBody] RequestTaskDto input) { return await Service.RequestTaskAsync(input); + } + + /// <summary> + /// 璇锋眰浠诲姟璐т綅 + /// </summary> + /// <param name="input">璇锋眰鏁版嵁</param> + /// <returns></returns> + [HttpPost, AllowAnonymous, Route("RequestLocationTaskAsync")] + public async Task<WebResponseContent> UpdateExistingTask([FromBody] RequestTaskDto input) + { + return await Service.UpdateExistingTask(input); } /// <summary> @@ -88,4 +99,5 @@ { return await Service.UpdateTaskStatus(input.TaskNum, input.TaskState); } + } \ No newline at end of file -- Gitblit v1.9.3