| | |
| | | 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> |
| | | |
| | | /** |
| | | *新增设备位置变更信息 |
| | |
| | | *更新设备及图片 |
| | | */ |
| | | fun updateDeviceLocation(deviceLocation: String, deleteImg: List<String>, files: Array<MultipartFile>): Int |
| | | |
| | | fun searchExternalDevice( |
| | | areaVo: AreaVo, keyword: String, page: Int?, perPage: Int?, |
| | | ): Pair<DataHead, MonitorDeviceInfoVo> |
| | | } |