forked from ddrilling/AsbCloudServer
16 lines
635 B
C#
16 lines
635 B
C#
using AsbCloudApp.Data;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IPermissionService
|
|
{
|
|
Task<IEnumerable<PermissionDto>> GetByIdRoleAsync(int idRole, CancellationToken token);
|
|
Task<int> InsertRangeAsync(IEnumerable<PermissionDto> dtos, CancellationToken token);
|
|
Task<int> UpdateAsync(PermissionDto dto, CancellationToken token);
|
|
Task<int> DeleteAsync(int idUserRole, int idPermission, CancellationToken token);
|
|
Task<int> DeleteAllByRoleAsync(int idUserRole, CancellationToken token);
|
|
}
|
|
} |