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