From 97a9ad53c6d1ac097f46f0b5d4d4d53547c9efe4 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 21 十一月 2025 16:18:21 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
index 70ab2b1..8f389e1 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
@@ -1,4 +1,5 @@
-锘縰sing WIDESEA_DTO;
+锘縰sing Org.BouncyCastle.Asn1.Mozilla;
+using WIDESEA_DTO;
 
 namespace WIDESEA_WMSServer.Controllers.Task;
 
@@ -60,6 +61,13 @@
     public async Task<WebResponseContent> RequestInboundTaskAsync([FromBody] RequestTaskDto input)
     {
         return await Service.RequestInboundTaskAsync(input);
+    }
+
+    [HttpPost, HttpGet, AllowAnonymous, Route("RequestRelocationTaskAsync")]
+    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
+    public Task<WebResponseContent> RequestRelocationTaskAsync(string SourceAddress, string TargetAddress)
+    {
+        return Service.RequestRelocationTaskAsync(SourceAddress, TargetAddress);
     }
 
     /// <summary>
@@ -149,12 +157,6 @@
     public async Task<WebResponseContent> AGVIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto)
     {
         return await Service.AGVIsNeedRelocationAsync(taskDto);
-    }
-
-    [HttpPost, AllowAnonymous, Route("GetTaskData")]
-    public async Task<WebResponseContent> GetTaskData()
-    {
-        return await Service.GetTaskData();
     }
 
     [HttpPost, AllowAnonymous, Route("UpdateStartLocationInfo")]

--
Gitblit v1.9.3