From a443f41b1168bdd1cdf891de7b6e78df6f8baddb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com>
Date: Tue, 19 Oct 2021 17:45:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Yi.Framework.ApiMicroservice/Controllers/UserController.cs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/UserController.cs b/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/UserController.cs
index 62fc98df..dcd97f49 100644
--- a/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/UserController.cs
+++ b/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/UserController.cs
@@ -114,10 +114,13 @@ namespace Yi.Framework.ApiMicroservice.Controllers
///
[HttpGet]
public async Task 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);