mh_frame_sps/APT.Infrastructure.Core/Structs/Permission.cs
2026-04-07 13:47:52 +08:00

57 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace APT.Infrastructure.Core
{
public class SysPermission
{
public SysPermission()
{
this.OrgCaches = new SortedDictionary<Guid, OrgCache>();
this.UserOrgCaches = new SortedDictionary<Guid, UserOrgCache>();
this.OrgCodeCaches = new SortedDictionary<string, Guid>();
}
public SortedDictionary<Guid,OrgCache> OrgCaches { get; set; }
public SortedDictionary<string,Guid> OrgCodeCaches { get; set; }
public SortedDictionary<Guid,UserOrgCache> UserOrgCaches { get; set; }
}
public class OrgCache
{
public OrgCache()
{
this.AllChildrenIds = new List<Guid>();
this.AllParentIds = new List<Guid>();
this.Childrens = new List<OrgCache>();
}
public Guid OrgId { get; set; }
public string Code { get; set; }
public List<Guid> AllChildrenIds { get; set; }
public List<Guid> AllParentIds { get; set; }
public List<OrgCache> Childrens { get; set; }
}
public class UserOrgCache
{
public UserOrgCache()
{
this.Orgs = new List<Guid>();
}
public Guid UserId { get; set; }
public List<Guid> Orgs { get; set; }
}
}