forked from ddrilling/AsbCloudServer
551c60c4ff
Rename some fields in DB.permission.
15 lines
580 B
C#
15 lines
580 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);
|
|
IEnumerable<PermissionBaseDto> GetNestedPermissions(IEnumerable<UserRoleDto> roles);
|
|
bool HasPermission(IEnumerable<int> rolesIds, string permissionName, int permissionMask = 0);
|
|
}
|
|
} |