using Microsoft.AspNetCore.Authorization;

namespace SolutionErp.Api.Authorization;

public class MenuPermissionRequirement(string menuKey, string action) : IAuthorizationRequirement
{
    public string MenuKey { get; } = menuKey;
    public string Action { get; } = action;  // "Read" | "Create" | "Update" | "Delete"
}
