You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
572 B

using Easy.AuthorityManagement.Clean.Shared.Modles;
namespace Easy.AuthorityManagement.Clean.Shared.IServices;
public interface IPermissionGrantManager
{
Task<IEnumerable<string>> GetPermissionNamesAsync(params (string providerName, long providerKey)[] providerKeys);
Task<List<PermissionGroupModel>> GetPermissionGrantsAsync(string providerName, long providerKey);
List<PermissionGroupModel> GetPermissionGroups(IEnumerable<string> permissionNames);
Task SetAsync(string permissionName, string providerName, long providerKey, bool isGranted);
}