From 82721cf9b8c5c1b9527379ef618a1b1fa2a12662 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期五, 24 一月 2025 09:33:29 +0800
Subject: [PATCH] device
---
pms-parent/pms-web-wechat/src/main/java/com/dy/pmsWechat/device/DeviceCtrl.java | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/pms-parent/pms-web-wechat/src/main/java/com/dy/pmsWechat/device/DeviceCtrl.java b/pms-parent/pms-web-wechat/src/main/java/com/dy/pmsWechat/device/DeviceCtrl.java
new file mode 100644
index 0000000..49b5b5d
--- /dev/null
+++ b/pms-parent/pms-web-wechat/src/main/java/com/dy/pmsWechat/device/DeviceCtrl.java
@@ -0,0 +1,27 @@
+package com.dy.pmsWechat.device;
+
+import com.dy.common.webUtil.BaseResponse;
+import com.dy.common.webUtil.BaseResponseUtils;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+@Slf4j
+@RestController
+@RequestMapping(path="device")
+public class DeviceCtrl {
+ private DeviceSv sv;
+ @Autowired
+ public void setSv(DeviceSv sv){
+ this.sv = sv;
+ }
+ @GetMapping(path = "getDeviceInfo")
+ public BaseResponse<Map<String, Object>> getDeviceInfo(String deviceNo) {
+ log.info("DeviceCtrl.getDeviceInfo():{}",deviceNo);
+ Map<String, Object> result = sv.getDeviceInfo(deviceNo);
+ return BaseResponseUtils.buildSuccess(result);
+ }
+}
--
Gitblit v1.8.0