using System.Security.Claims; namespace HelloShop.ServiceDefaults.Authorization; public interface IPermissionChecker { Task IsGrantedAsync(string name, string? resourceType = null, string? resourceId = null); Task IsGrantedAsync(ClaimsPrincipal claimsPrincipal, string name, string? resourceType = null, string? resourceId = null); }