mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
同步
This commit is contained in:
@@ -114,10 +114,13 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<Result> GetRolesByUserId(int userId)
|
||||
<<<<<<< Updated upstream
|
||||
<<<<<<< Updated upstream
|
||||
{
|
||||
var roleList = await _userService.GetRolesByUser(new user() { id=userId});
|
||||
=======
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
{
|
||||
var _user =await _userService.GetEntityById(userId);
|
||||
var roleList = await _userService.GetRolesByUser(_user);
|
||||
|
||||
Reference in New Issue
Block a user