| | |
| | | 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.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 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 |
| | | |
| | |
| | | |
| | | 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() |
| | | |
| | | fun createAccount(scence: Scense):Userinfo |
| | | |
| | | fun createAccountTZ(userinfo: Userinfo, scence: Scense): UserinfoTZ |
| | | } |