From 3512011e94f013955b7b1e2de8558b8861db86b7 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期一, 30 六月 2025 16:38:05 +0800
Subject: [PATCH] 优化配置文件读取和AGV调度细节

---
 api/ApiModel.cs |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/api/ApiModel.cs b/api/ApiModel.cs
index 0b13b6d..0b61204 100644
--- a/api/ApiModel.cs
+++ b/api/ApiModel.cs
@@ -17,7 +17,8 @@
             public List<object> result { get; set; } = new List<object>();
         }
 
-        public static SimpleResult NewSimpleResult(int code, string message) {
+        public static SimpleResult BuildSimpleResult(int code, string message) {
+            LogHelper.Info(message);
             return new SimpleResult { resultCode = code, resultMsg = message };
         }
 
@@ -39,7 +40,7 @@
         }
 
         public class SafetyInteractionInfo {
-            public int station_id { get; set; }
+            //public int station_id { get; set; }
 
             /// <summary>
             /// 璇锋眰涓婄嚎/涓嬬嚎鐨勭殑绔欏彴搴撲綅鍚嶇О锛屼緥濡倃ork6銆亀ork8
@@ -50,7 +51,7 @@
             /// 璇锋眰鐮�             /// </summary>
             public string apply_code { get; set; }
-            public string task_no { set; get; }
+            //public string task_no { set; get; }
         }
 
         public class orderStatusReportParme {
@@ -117,6 +118,11 @@
             public string ResultMsg { get; set; }
         }
 
+        public class gzResult {
+            public int code { get; set; } = 0;
+            public string msg { get; set; } = "success";
+        }
+
         /// <summary>
         /// 杩斿洖缁橤Z
         /// </summary>
@@ -146,9 +152,11 @@
             /// <summary>
             /// AGV灏忚溅鍙凤細NOTE 鍚庢湡鍙兘鐪佺暐锛屽洜涓哄彧鏈変竴杈嗚溅
             /// </summary>
-            public string forklift_no { get; set; }
+            //public string forklift_no { get; set; }
 
-            public string endLoc { get; set; }
+            public string TaskNo { get; set; }
+
+            public string EndLoc { get; set; }
         }
 
         /// <summary>
@@ -166,6 +174,10 @@
             public string endLoc { get; set; }
         }
 
+        public class CancelTaskInfo {
+            public string TaskNo { get; set; }
+        }
+
         /// <summary>
         /// 浜у搧閮ㄥ垎鍑哄簱淇℃伅
         /// </summary>

--
Gitblit v1.9.1