李昊 4 years ago
parent
commit
9edde65044

+ 3 - 4
gx_api/GxPress/Api/GxPress.Api/WebControllers/WebGroupController.cs

@@ -232,12 +232,11 @@ namespace GxPress.Api.WebControllers
         /// <summary>
         /// 用户小组列表
         /// </summary>
-        /// <param name="userId"></param>
         /// <returns></returns>
-        [HttpGet("list/{userId}")]
-        public async Task<IEnumerable<UserGroupList>> GetAllByUserIdAsync(int userId)
+        [HttpGet("list")]
+        public async Task<IEnumerable<UserGroupList>> GetAllByUserIdAsync()
         {
-            return await _groupRepository.GetAllByUserIdAsync(userId);
+            return await _groupRepository.GetAllByUserIdAsync(_loginContext.AccountId);
         }
     }
 }