添加角色关联菜单功能

This commit is contained in:
chenchun
2022-09-11 14:52:54 +08:00
parent 909bdf60e7
commit 004cb20132
10 changed files with 275 additions and 297 deletions

View File

@@ -254,6 +254,13 @@
</summary>
<returns></returns>
</member>
<member name="M:Yi.Framework.ApiMicroservice.Controllers.RoleController.AddInfo(Yi.Framework.DTOModel.RoleInfoDto)">
<summary>
添加角色包含菜单
</summary>
<param name="roleDto"></param>
<returns></returns>
</member>
<member name="T:Yi.Framework.ApiMicroservice.Controllers.TestController">
<summary>
测试控制器

View File

@@ -60,5 +60,17 @@ namespace Yi.Framework.ApiMicroservice.Controllers
{
return Result.Success().SetData(await _iRoleService.GetInMenuByRoleId(RoleId));
}
/// <summary>
/// 添加角色包含菜单
/// </summary>
/// <param name="roleDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<Result> AddInfo(RoleInfoDto roleDto)
{
return Result.Success().SetData(await _iRoleService.AddInfo(roleDto));
}
}
}