From 1f096af76bf2398348c12fe3d3144cdd7c762985 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期日, 20 十月 2024 23:34:20 +0800
Subject: [PATCH] fix find move dir
---
controller/nvcsCtl.go | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/controller/nvcsCtl.go b/controller/nvcsCtl.go
index 089d8fe..e7aca45 100644
--- a/controller/nvcsCtl.go
+++ b/controller/nvcsCtl.go
@@ -1,7 +1,7 @@
package controller
import (
- "gat1400Exchange/service"
+ "gat1400Exchange/nvcs"
"github.com/gin-gonic/gin"
"net/http"
)
@@ -17,17 +17,7 @@
}
func (n NVCSController) RunStatus(c *gin.Context) {
- var runStatus = make(map[string]string, 0)
- runStatus["floor"] = service.ElevatorRunFloor
+ var runState = nvcs.CurrentRunState()
- switch service.ElevatorRunState {
- case 0:
- runStatus["status"] = "鍋�"
- case 1:
- runStatus["status"] = "涓�"
- case 2:
- runStatus["status"] = "涓�"
- }
-
- c.JSON(http.StatusOK, gin.H{"success": true, "data": runStatus, "msg": "ok"})
+ c.JSON(http.StatusOK, gin.H{"success": true, "data": runState, "msg": "ok"})
}
--
Gitblit v1.8.0