|
@@ -112,7 +112,6 @@ public class RoleController : BaseController
|
|
|
_mapper.Map(dto, model);
|
|
|
await _systemAuthorityRepository.UpdateAsync(model);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -122,7 +121,7 @@ public class RoleController : BaseController
|
|
|
/// <returns></returns>
|
|
|
[Permission(EPermission.GetAuthority)]
|
|
|
[HttpGet("getauthority")]
|
|
|
- public async Task<SystemAuthority> GetAuthority(string roleid)
|
|
|
+ public async Task<SystemAuthority?> GetAuthority(string roleid)
|
|
|
{
|
|
|
return await _systemAuthorityRepository.GetAsync(x => x.RoleId == roleid, HttpContext.RequestAborted);
|
|
|
}
|