feiyu02
2024-11-08 d2727f231319a48019bc3b87439136ab49b97b9b
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserinfoService.kt
@@ -3,13 +3,16 @@
import cn.flightfeather.supervision.domain.ds1.entity.Scense
import cn.flightfeather.supervision.domain.ds1.entity.Userinfo
import cn.flightfeather.supervision.domain.ds2.entity.UserinfoTZ
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import cn.flightfeather.supervision.lightshare.vo.DataHead
import org.springframework.web.bind.annotation.RequestBody
interface UserinfoService {
    fun findOne(id: String): Userinfo?
    fun findAll(): MutableList<Userinfo>
    fun findByType(typeId: Byte): List<Userinfo>
    fun findByType(typeId: Byte, enable: Boolean?): List<Userinfo>
    fun save(userinfo: Userinfo): Int
@@ -17,12 +20,21 @@
    fun delete(id: String): Int
    /**
     * 根据账户名称模糊搜索
     */
    fun search(areaVo: AreaVo, keyword: String, userType: Int?, page: Int?, perPage: Int?)
            : Pair<DataHead, List<Userinfo?>>
    fun findOneByName(userinfo: Userinfo): Userinfo?
    fun createAccount(sceneId: String): Userinfo
    fun findByScene(sceneId: String): Userinfo?
    /**
     * 根据场景名称,获取合适的账户名
     */
    fun getUName(sceneName: String): String
    fun autoCreateAccount()