From 9a2ff8ac884e88631cd24f751a40600f25579213 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期六, 14 二月 2026 17:26:06 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/Robotaxi

---
 xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java b/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java
index d86adb6..d10d855 100644
--- a/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java
+++ b/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java
@@ -6,9 +6,11 @@
 import com.xiaopeng.account.service.IXpOperationsUserService;
 import com.xiaopeng.api.dto.account.XpOperationsUserQueryDTO;
 import com.xiaopeng.api.model.account.XpOperationsUser;
+import com.xiaopeng.api.vo.account.XpOperationsUserProfileVO;
 import com.xiaopeng.api.vo.account.XpOperationsUserWithRoleVO;
 import com.xiaopeng.common.core.domain.R;
 import com.xiaopeng.common.core.web.page.PageInfo;
+import com.xiaopeng.common.security.service.TokenService;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.util.CollectionUtils;
@@ -33,10 +35,13 @@
 
     private final XpOperationsRoleMapper xpOperationsRoleMapper;
 
+    private final TokenService tokenService;
+
     @Autowired
-    public XpOperationsUserController(IXpOperationsUserService xpOperationsUserService, XpOperationsRoleMapper xpOperationsRoleMapper) {
+    public XpOperationsUserController(IXpOperationsUserService xpOperationsUserService, XpOperationsRoleMapper xpOperationsRoleMapper, TokenService tokenService) {
         this.xpOperationsUserService = xpOperationsUserService;
         this.xpOperationsRoleMapper = xpOperationsRoleMapper;
+        this.tokenService = tokenService;
     }
 
     /**
@@ -108,4 +113,21 @@
     public R<PageInfo<XpOperationsUserWithRoleVO>> getList(@RequestBody XpOperationsUserPageQuery query) {
         return R.ok(xpOperationsUserService.selectUserPageByConditions(query));
     }
+
+    /**
+     * 获取运维人员个人中心首页信息
+     *
+     * @return 个人中心首页信息
+     */
+    @ApiOperation(value = "获取个人中心首页信息", tags = {"运维APP-个人中心"})
+    @GetMapping("/api/v1/userInfo")
+    public R<XpOperationsUserProfileVO> getProfile() {
+        // 通过TokenService获取当前登录用户ID
+        Long currentUserId = tokenService.getLoginOperationUser().getId();
+
+        // 查询个人中心信息
+        XpOperationsUserProfileVO profile = xpOperationsUserService.getUserProfile(currentUserId);
+
+        return R.ok(profile);
+    }
 }

--
Gitblit v1.7.1