feiyu02
2025-09-19 7cbe1610b87da19ed8a146a09b1117f92d9d3d98
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserMapService.kt
@@ -1,12 +1,42 @@
package cn.flightfeather.supervision.lightshare.service
import cn.flightfeather.supervision.domain.ds1.entity.Version
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 org.springframework.web.multipart.MultipartFile
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
    fun autoCreateMap()
    /**
     * 根据飞羽环境系统中的场景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>>
}