| 12345678910111213141516171819202122232425 |
- namespace VberZero.Authorization.Roles;
- /// <summary>
- /// 用于缓存角色的权限
- /// </summary>
- [Serializable]
- public class RolePermissionCacheItem
- {
- public const string CacheStoreName = "AbpZeroRolePermissions";
- public long RoleId { get; set; }
- public HashSet<string> GrantedPermissions { get; set; }
- public RolePermissionCacheItem()
- {
- GrantedPermissions = new HashSet<string>();
- }
- public RolePermissionCacheItem(int roleId)
- : this()
- {
- RoleId = roleId;
- }
- }
|