feiyu02
2024-08-13 b8cc591541b88dd2bb93f111f8e8075842dce7ca
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/DeviceService.kt
@@ -1,24 +1,34 @@
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>
    /**
     *新增设备位置变更信息