From b5895c07c618f08f21ad428e2b75ddc36d159a87 Mon Sep 17 00:00:00 2001
From: zy <zy@123>
Date: 星期三, 16 七月 2025 11:05:17 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/controller/OpenController.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/core/controller/OpenController.java b/src/main/java/com/zy/core/controller/OpenController.java
index a7ec4ea..d3aa0cd 100644
--- a/src/main/java/com/zy/core/controller/OpenController.java
+++ b/src/main/java/com/zy/core/controller/OpenController.java
@@ -11,20 +11,35 @@
 import com.zy.core.utils.DeviceMsgUtils;
 import com.zy.core.utils.FakeDeviceUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.web.bind.annotation.*;
 
 import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.List;
 
 @RestController
 @RequestMapping("/open")
 public class OpenController {
 
+    @Value("${deviceMsgConfig.gatewayId}")
+    private Integer gatewayId;
+    @Value("${deviceMsgConfig.gatewayPort}")
+    private Integer gatewayPort;
+
     @Autowired
     private DeviceMsgUtils deviceMsgUtils;
     @Autowired
     private FakeDeviceUtils fakeDeviceUtils;
 
+    @GetMapping("/getSystemInfo")
+    public R getSystemInfo() {
+        HashMap<String, Object> map = new HashMap<>();
+        map.put("gatewayId", gatewayId);
+        map.put("gatewayPort", gatewayPort);
+        return R.ok().add(map);
+    }
+
     @GetMapping("/getDeviceList")
     public R getDeviceList() {
         List<DeviceConfig> deviceList = new ArrayList<>();

--
Gitblit v1.9.1