2021-12-03 15:03:33 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2021-12-11 16:46:04 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-12-03 15:03:33 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2021-12-11 16:46:04 +05:00
|
|
|
|
public interface IUserRoleService : ICrudService<UserRoleDto>
|
2021-12-03 15:03:33 +05:00
|
|
|
|
{
|
2021-12-11 16:46:04 +05:00
|
|
|
|
Task<UserRoleDto> GetByNameAsync(string name, CancellationToken token = default);
|
2021-12-23 18:07:20 +05:00
|
|
|
|
Task<IEnumerable<UserRoleDto>> GetByNamesAsync(IEnumerable<string> names, CancellationToken token = default);
|
2022-01-13 14:36:27 +05:00
|
|
|
|
IEnumerable<UserRoleDto> GetNestedById(int id, int counter = 10);
|
2021-12-16 16:00:47 +05:00
|
|
|
|
bool HasPermission(IEnumerable<int> rolesIds, string permissionName);
|
2021-12-03 15:03:33 +05:00
|
|
|
|
}
|
|
|
|
|
}
|