数据权限

This commit is contained in:
陈淳
2022-09-16 18:57:32 +08:00
parent 71cf85f535
commit 0e6113f0a6
7 changed files with 507 additions and 219 deletions

View File

@@ -85,9 +85,16 @@ namespace Yi.Framework.ApiMicroservice.Controllers
public async Task<Result> UpdateStatus(long roleId, bool isDel)
{
return Result.Success().SetData(await _iRoleService._repository.UpdateIgnoreNullAsync(new RoleEntity() { Id = roleId, IsDeleted = isDel }));
}
/// <summary>
///更改角色数据权限
/// </summary>
/// <returns></returns>
[HttpPut]
public async Task<Result> UpdateDataScpoce(RoleInfoDto roleDto)
{
return Result.Success().SetStatus(await _iRoleService.UpdateDataScpoce(roleDto));
}
}
}