2025-01-08 16:22:59 +01:00
|
|
|
using DotBased.AspNet.Authority.Models.Authority;
|
|
|
|
|
2025-01-03 00:14:12 +01:00
|
|
|
namespace DotBased.AspNet.Authority.Managers;
|
2024-12-25 22:50:04 +01:00
|
|
|
|
2025-01-08 16:06:25 +01:00
|
|
|
public partial class AuthorityManager
|
2024-12-25 22:50:04 +01:00
|
|
|
{
|
2025-01-08 16:22:59 +01:00
|
|
|
public async Task<Result<AuthorityRole>> CreateRoleAsync(AuthorityRole role, CancellationToken? cancellationToken = null)
|
|
|
|
{
|
|
|
|
return Result<AuthorityRole>.Failed("Not implemented!");
|
|
|
|
}
|
|
|
|
|
|
|
|
public async Task<Result> DeleteRoleAsync(AuthorityRole role, CancellationToken? cancellationToken = null)
|
|
|
|
{
|
|
|
|
return Result.Failed("Not implemented!");
|
|
|
|
}
|
|
|
|
|
|
|
|
public async Task<Result<AuthorityRole>> UpdateRoleAsync(AuthorityRole role, CancellationToken? cancellationToken = null)
|
|
|
|
{
|
|
|
|
return Result<AuthorityRole>.Failed("Not implemented!");
|
|
|
|
}
|
|
|
|
|
2025-01-08 16:30:51 +01:00
|
|
|
public async Task AddRoleToUserAsync(AuthorityUser user, AuthorityRole role, CancellationToken? cancellationToken = null)
|
2025-01-08 16:22:59 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2025-01-08 16:30:51 +01:00
|
|
|
|
|
|
|
public async Task RemoveRoleFromUserAsync(AuthorityRole role, AuthorityUser user, CancellationToken? cancellationToken = null)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public async Task AddRoleToGroupAsync(AuthorityRole role, AuthorityGroup group, CancellationToken? cancellationToken = null)
|
|
|
|
{
|
|
|
|
}
|
2024-12-25 22:50:04 +01:00
|
|
|
}
|