From 7cbe1610b87da19ed8a146a09b1117f92d9d3d98 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 19 九月 2025 17:30:37 +0800 Subject: [PATCH] 2025.9.19 1. 联合前端调试数据产品接口(待完成) --- src/main/kotlin/cn/flightfeather/supervision/lightshare/service/DeviceService.kt | 31 +++++++++++++++++++++++++------ 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/DeviceService.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/DeviceService.kt index 39bfb91..096e42a 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/DeviceService.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/DeviceService.kt @@ -1,24 +1,39 @@ package cn.flightfeather.supervision.lightshare.service -import cn.flightfeather.supervision.domain.ds1.entity.DeviceInfo -import cn.flightfeather.supervision.domain.ds1.entity.DeviceLocation +import cn.flightfeather.supervision.common.utils.Constant +import cn.flightfeather.supervision.domain.ds1.entity.BaseDevice +import cn.flightfeather.supervision.domain.ds1.entity.DeviceStatus +import cn.flightfeather.supervision.lightshare.vo.AreaVo +import cn.flightfeather.supervision.lightshare.vo.DataHead +import cn.flightfeather.supervision.lightshare.vo.MonitorDeviceInfoVo +import io.swagger.annotations.ApiParam +import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.multipart.MultipartFile interface DeviceService { - fun findDevices(sceneId: String): List<DeviceInfo> + /** + * 鏌ヨ鍦烘櫙璁惧 + * @param sceneId 鍦烘櫙id + * @param deviceType 璁惧绫诲瀷 + * @return 璁惧淇℃伅 + */ + fun findDevices(sceneId: String, deviceType: Constant.DeviceType): List<BaseDevice> /** * 鏂板璁惧淇℃伅 */ - fun insertDevice(deviceInfo: DeviceInfo): Int + fun insertDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int /** * 鏇存柊璁惧淇℃伅 */ - fun updateDevice(deviceInfo: DeviceInfo): Int + fun updateDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int - fun findDeviceLocations(deviceId: Int): List<DeviceLocation> + /** + * 鏌ヨ璁惧鐘舵�佸彉鏇翠俊鎭� + */ + fun findDeviceLocations(sceneId: String?, deviceId: Int, deviceType: Constant.DeviceType): List<DeviceStatus> /** *鏂板璁惧浣嶇疆鍙樻洿淇℃伅 @@ -29,4 +44,8 @@ *鏇存柊璁惧鍙婂浘鐗� */ fun updateDeviceLocation(deviceLocation: String, deleteImg: List<String>, files: Array<MultipartFile>): Int + + fun searchExternalDevice( + areaVo: AreaVo, keyword: String, page: Int?, perPage: Int?, + ): Pair<DataHead, MonitorDeviceInfoVo> } \ No newline at end of file -- Gitblit v1.9.3