From 8c15c9cc0d6474ed77e313258f9b09f7f2d6366e Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期三, 17 九月 2025 17:29:47 +0800 Subject: [PATCH] 2025.9.17 1. 新增数据产品接口 --- src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserinfoService.kt | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserinfoService.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserinfoService.kt index df41591..6fca31c 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserinfoService.kt +++ b/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() -- Gitblit v1.9.3