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(); this.UserOrgCaches = new SortedDictionary(); this.OrgCodeCaches = new SortedDictionary(); } public SortedDictionary OrgCaches { get; set; } public SortedDictionary OrgCodeCaches { get; set; } public SortedDictionary UserOrgCaches { get; set; } } public class OrgCache { public OrgCache() { this.AllChildrenIds = new List(); this.AllParentIds = new List(); this.Childrens = new List(); } public Guid OrgId { get; set; } public string Code { get; set; } public List AllChildrenIds { get; set; } public List AllParentIds { get; set; } public List Childrens { get; set; } } public class UserOrgCache { public UserOrgCache() { this.Orgs = new List(); } public Guid UserId { get; set; } public List Orgs { get; set; } } }