diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs index de57f7a6..de2f92a8 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs @@ -34,6 +34,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// 动态条件分页查询 /// /// + [Permission("system:role:query")] [HttpGet] public async Task PageList([FromQuery] RoleEntity role, [FromQuery] PageParModel page) { @@ -47,6 +48,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// /// [HttpPut] + [Permission("system:role:edit")] public async Task GiveRoleSetMenu(GiveRoleSetMenuDto giveRoleSetMenuDto) { return Result.Success().SetStatus(await _iRoleService.GiveRoleSetMenu(giveRoleSetMenuDto.RoleIds, giveRoleSetMenuDto.MenuIds)); @@ -58,7 +60,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// /// /// - + [Permission("system:role:add")] [HttpPost] public async Task Add(RoleInfoDto roleDto) { @@ -69,6 +71,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// 更新角色信息 /// /// + [Permission("system:role:edit")] [HttpPut] public async Task Update(RoleInfoDto roleDto) { @@ -81,6 +84,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// /// /// + [Permission("system:role:edit")] [HttpPut] public async Task UpdateStatus(long roleId, bool isDel) { @@ -91,10 +95,23 @@ namespace Yi.Framework.ApiMicroservice.Controllers ///更改角色数据权限 /// /// + [Permission("system:role:edit")] [HttpPut] public async Task UpdateDataScpoce(RoleInfoDto roleDto) { return Result.Success().SetStatus(await _iRoleService.UpdateDataScpoce(roleDto)); } + + /// + /// 删除 + /// + /// + /// + [Permission("system:role:remove")] + [HttpDelete] + public override async Task DelList(List ids) + { + return await base.DelList(ids); + } } }