From 5dd2d665b8352cef2f14ba8fa1220a94d2467cd8 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 17 十月 2022 10:37:55 +0800
Subject: [PATCH] q

---
 src/main/java/com/lf/server/controller/sys/UserController.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/sys/UserController.java b/src/main/java/com/lf/server/controller/sys/UserController.java
index 1c28601..34895fb 100644
--- a/src/main/java/com/lf/server/controller/sys/UserController.java
+++ b/src/main/java/com/lf/server/controller/sys/UserController.java
@@ -5,6 +5,7 @@
 import com.lf.server.entity.all.ResponseMsg;
 import com.lf.server.entity.sys.UserEntity;
 import com.lf.server.entity.ctrl.UserUpdateEntity;
+import com.lf.server.helper.StringHelper;
 import com.lf.server.service.sys.TokenService;
 import com.lf.server.service.sys.UserService;
 import io.swagger.annotations.Api;
@@ -140,6 +141,26 @@
     }
 
     @SysLog()
+    @ApiOperation(value = "鏍规嵁鐢ㄦ埛ID鏌ヨ")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "uid", value = "鐢ㄦ埛ID", dataType = "String", paramType = "query", example = "admin")
+    })
+    @GetMapping(value = "/selectByUid")
+    public ResponseMsg<UserEntity> selectByUid(String uid) {
+        try {
+            if (StringHelper.isEmpty(uid)) {
+                fail("鐢ㄦ埛ID涓嶈兘涓虹┖", null);
+            }
+
+            UserEntity userEntity = userService.selectByUid(uid);
+
+            return success(userEntity);
+        } catch (Exception ex) {
+            return fail(ex.getMessage(), null);
+        }
+    }
+
+    @SysLog()
     @ApiOperation(value = "鏌ヨ鎵�鏈�")
     @GetMapping(value = "/selectUserAll")
     public ResponseMsg<List<UserEntity>> selectUserAll() {

--
Gitblit v1.9.3