feiyu02
2024-08-15 196bb14112448857a885e32dc4149e308e00b01a
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
package cn.flightfeather.supervision.lightshare.service
 
import cn.flightfeather.supervision.domain.entity.FumePurifyDevice
import cn.flightfeather.supervision.domain.entity.MonitorDevice
import cn.flightfeather.supervision.domain.entity.VocPurifyDevice
import cn.flightfeather.supervision.lightshare.vo.BaseResponse
import cn.flightfeather.supervision.lightshare.vo.DataVo
import cn.flightfeather.supervision.lightshare.vo.DateVo
import cn.flightfeather.supervision.lightshare.vo.MonAvgDataVo
 
interface DeviceService {
 
    fun getPurifyDeviceInfo(userId: String): List<FumePurifyDevice>
 
    fun saveFumePurifyDevice(info: FumePurifyDevice): Int
 
    fun updateFumePurifyDevice(info: FumePurifyDevice): Int
 
    fun getMonitorDeviceInfo(userId: String): List<MonitorDevice>
 
    fun saveMonitorDevice(info: MonitorDevice): Int
 
    fun updateMonitorDevice(info: MonitorDevice): Int
 
    fun getLatestMinuteValue(userId: String):List<DataVo>
 
    fun getLatestHourValue(userId: String):List<DataVo>
 
    fun getMonAvgData(userId: String, timeList:List<DateVo>): List<MonAvgDataVo>
 
    fun getHistoryValue(userId: String, startTime: String, endTime: String, period: Byte): List<DataVo>
 
    fun getRealTimeData(page: Int, perPage: Int): BaseResponse<List<DataVo>>
 
    fun getJingAnDustHourValue(userId: String, startTime: String?, endTime: String?): List<DataVo>
 
    fun getJingAnFumeValue(userId: String, startTime: String?, endTime: String?): List<DataVo>
 
    fun getDeviceInfo(userId: String)
 
    fun saveVOCPurifyDevice(userId: String, infoList: List<VocPurifyDevice>): Int
 
    fun getVOCPurifyDevice(userId: String): List<VocPurifyDevice?>
 
}