feiyu02
2025-09-30 a3cc1d220f8a1de11874bebceba0130d32157ff1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package cn.flightfeather.supervision.lightshare.service
 
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 {
 
    /**
     * 查询场景设备
     * @param sceneId 场景id
     * @param deviceType 设备类型
     * @return 设备信息
     */
    fun findDevices(sceneId: String, deviceType: Constant.DeviceType): List<BaseDevice>
 
    /**
     * 新增设备信息
     */
    fun insertDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int
 
    /**
     * 更新设备信息
     */
    fun updateDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int
 
    /**
     * 查询设备状态变更信息
     */
    fun findDeviceLocations(sceneId: String?, deviceId: Int, deviceType: Constant.DeviceType): List<DeviceStatus>
 
    /**
     *新增设备位置变更信息
     */
    fun insertDeviceLocation(deviceLocation: String, files: Array<MultipartFile>): Int
 
    /**
     *更新设备及图片
     */
    fun updateDeviceLocation(deviceLocation: String, deleteImg: List<String>, files: Array<MultipartFile>): Int
 
    fun searchExternalDevice(
        areaVo: AreaVo, keyword: String, page: Int?, perPage: Int?,
    ): Pair<DataHead, MonitorDeviceInfoVo>
}