| | |
| | | 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 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> |
| | | |
| | | /** |
| | | *新增设备位置变更信息 |