From 1a677d2b4a4bc615602f8c2a22bc07ec1356e5be Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 16 十月 2025 17:39:06 +0800
Subject: [PATCH] 2025.10.16 1. 根据全局响应增强器GlobalResponseAdvice,将原先的BaseResPack接口包装函数统一去除; 2. 新增三种类型的数据产品数据库实体 3. 新增典型问题场景清单中间数据产品接口

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/DeviceController.kt |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/DeviceController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/DeviceController.kt
index 774113b..cc32658 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/DeviceController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/DeviceController.kt
@@ -20,21 +20,21 @@
     fun fetchDevice(
         @ApiParam("鍦烘櫙id") @RequestParam sceneId: String,
         @ApiParam("璁惧绫诲瀷id") @RequestParam deviceTypeId: Byte,
-    ) = resPack { deviceService.findDevices(sceneId, Constant.DeviceType.fromValue(deviceTypeId)) }
+    ) = deviceService.findDevices(sceneId, Constant.DeviceType.fromValue(deviceTypeId))
 
     @ApiOperation("鏂板鍦烘櫙璁惧淇℃伅")
     @PutMapping("/upload")
     fun uploadDevice(
         @ApiParam("璁惧淇℃伅") @RequestBody deviceInfo: String,
         @ApiParam("璁惧绫诲瀷id") @RequestParam deviceTypeId: Byte,
-    ) = resPack { deviceService.insertDevice(deviceInfo, Constant.DeviceType.fromValue(deviceTypeId)) }
+    ) = deviceService.insertDevice(deviceInfo, Constant.DeviceType.fromValue(deviceTypeId))
 
     @ApiOperation("鏇存柊鍦烘櫙璁惧淇℃伅")
     @PostMapping("/update")
     fun updateDevice(
         @ApiParam("璁惧淇℃伅") @RequestBody deviceInfo: String,
         @ApiParam("璁惧绫诲瀷id") @RequestParam deviceTypeId: Byte,
-    ) = resPack { deviceService.updateDevice(deviceInfo, Constant.DeviceType.fromValue(deviceTypeId)) }
+    ) = deviceService.updateDevice(deviceInfo, Constant.DeviceType.fromValue(deviceTypeId))
 
     @ApiOperation("鑾峰彇鍦烘櫙璁惧浣嶇疆鍙樻洿淇℃伅")
     @GetMapping("/status")
@@ -42,14 +42,14 @@
         @ApiParam("鍦烘櫙id") @RequestParam(required = false) sceneId: String?,
         @ApiParam("璁惧id") @RequestParam deviceId: Int,
         @ApiParam("璁惧绫诲瀷id") @RequestParam deviceTypeId: Byte,
-    ) = resPack { deviceService.findDeviceLocations(sceneId, deviceId, Constant.DeviceType.fromValue(deviceTypeId)) }
+    ) = deviceService.findDeviceLocations(sceneId, deviceId, Constant.DeviceType.fromValue(deviceTypeId))
 
     @ApiOperation("鏂板鍦烘櫙璁惧浣嶇疆鍙樻洿淇℃伅")
     @PostMapping("/status/upload")
     fun uploadDeviceLocation(
         @ApiParam("璁惧浣嶇疆淇℃伅json") @RequestParam("status") status: String,
         @ApiParam("璁惧鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
-    ) = resPack { deviceService.insertDeviceLocation(status, images) }
+    ) = deviceService.insertDeviceLocation(status, images)
 
     @ApiOperation("鏇存柊鍦烘櫙璁惧浣嶇疆鍙樻洿淇℃伅")
     @PostMapping("/status/update")
@@ -57,7 +57,7 @@
         @ApiParam("璁惧浣嶇疆淇℃伅json") @RequestParam("status") status: String,
         @ApiParam("鍒犻櫎鐨勮澶囧浘鐗囪矾寰�") @RequestParam("deleteImg") deleteImg: List<String>,
         @ApiParam("璁惧鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
-    ) = resPack { deviceService.updateDeviceLocation(status, deleteImg, images) }
+    ) = deviceService.updateDeviceLocation(status, deleteImg, images)
 
     @ApiOperation("鏌ヨ浠庡閮ㄨ幏鍙栫殑璁惧淇℃伅")
     @PostMapping("/external/search")
@@ -70,5 +70,5 @@
         page: Int?,
         @ApiParam("鍗曢〉鏁版嵁閲�", defaultValue = "30", required = false) @RequestParam("per_page", required = false)
         perPage: Int?,
-    ) = resPack { deviceService.searchExternalDevice(areaVo, keyword, page, perPage) }
+    ) = deviceService.searchExternalDevice(areaVo, keyword, page, perPage)
 }
\ No newline at end of file

--
Gitblit v1.9.3