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 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
|
}
|