forked from ddrilling/AsbCloudServer
14 lines
463 B
C#
14 lines
463 B
C#
using AsbCloudApp.Data;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IUserRoleService : ICrudService<UserRoleDto>
|
|
{
|
|
Task<UserRoleDto> GetByNameAsync(string name, CancellationToken token = default);
|
|
List<UserRoleDto> GetNestedById(int id, int counter = 10);
|
|
bool HasPermission(IEnumerable<int> rolesIds, string permissionName);
|
|
}
|
|
} |