Abp模块
abp
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.
 
 
 
 
 

27 lines
617 B

using System;
namespace Sanhe.Abp.MenuManagement
{
[Serializable]
public class MenuGrantCacheItem
{
public Guid MenuId { get; set; }
public bool IsGranted { get; set; }
public MenuGrantCacheItem()
{
}
public MenuGrantCacheItem(Guid menuId, bool isGranted)
{
MenuId = menuId;
IsGranted = isGranted;
}
public static string CalculateCacheKey(Guid menuId, string providerName, string providerKey)
{
return "pn:" + providerName + ",pk:" + providerKey + ",m:" + menuId;
}
}
}