package cn.flightfeather.supervision.lightshare.service
|
|
import cn.flightfeather.supervision.domain.ds1.entity.Scense
|
import cn.flightfeather.supervision.domain.ds1.entity.Userinfo
|
import cn.flightfeather.supervision.domain.ds2.entity.UserMap
|
import cn.flightfeather.supervision.lightshare.vo.AreaVo
|
import cn.flightfeather.supervision.lightshare.vo.DataHead
|
import cn.flightfeather.supervision.lightshare.vo.DeviceMapVo
|
import cn.flightfeather.supervision.lightshare.vo.DeviceSiteVo
|
|
interface UserMapService {
|
|
/**
|
* 根据飞羽监管系统中的场景id,获取与飞羽环境系统中的关联用户
|
*/
|
fun getTZIdBySceneId(sceneId: String): UserMap
|
|
/**
|
* 根据飞羽环境系统中的场景id,获取与飞羽监管系统中的关联用户
|
*/
|
fun getSceneByTZId(tzUserId: String): Scense?
|
|
/**
|
* 自动创建飞羽监管和飞羽环境的账户匹配记录
|
*/
|
fun autoCreateMap(userList: List<Userinfo?>)
|
|
/**
|
* 获取监测设备和监管账户的匹配记录
|
*/
|
fun fetchDeviceMap(page: Int?, perPage: Int?, areaVo: AreaVo): List<DeviceMapVo?>
|
|
/**
|
* 新增或更新
|
*/
|
fun insertOrUpdate(param: Pair<AreaVo, DeviceMapVo>): Int
|
|
/**
|
* 搜索第三方设备
|
*/
|
fun searchThirdPartyDevice(areaVo: AreaVo, keyword: String, page: Int?, perPage: Int?): Pair<DataHead, List<DeviceSiteVo>>
|
}
|