李昊 4 年 前
コミット
9edde65044
共有1 個のファイルを変更した3 個の追加4 個の削除を含む
  1. 3 4
      gx_api/GxPress/Api/GxPress.Api/WebControllers/WebGroupController.cs

+ 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);
         }
     }
 }