同步
This commit is contained in:
@@ -112,10 +112,10 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
|||||||
/// 根据用户id得到该用户有哪些角色
|
/// 根据用户id得到该用户有哪些角色
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[HttpGet]
|
||||||
public async Task<Result> GetRolesByUserId(user _user)
|
public async Task<Result> GetRolesByUserId(int userId)
|
||||||
{
|
{
|
||||||
var roleList = await _userService.GetRolesByUser(_user);
|
var roleList = await _userService.GetRolesByUser(new user() { id=userId});
|
||||||
return Result.Success().SetData(roleList);
|
return Result.Success().SetData(roleList);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -174,5 +174,17 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:Yi.Framework.ApiMicroservice.Controllers.UserController.GetRolesByUserId(System.Int32)">
|
||||||
|
<summary>
|
||||||
|
根据用户id得到该用户有哪些角色
|
||||||
|
</summary>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Yi.Framework.ApiMicroservice.Controllers.UserController.GetUserInfoById">
|
||||||
|
<summary>
|
||||||
|
根据http上下文的用户得到该用户信息,关联角色
|
||||||
|
</summary>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
</members>
|
</members>
|
||||||
</doc>
|
</doc>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user