using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.Repository.Data.Acc
{
    public class PageLevelTree : EntityBase
    {
        public int id { get; set; }
        public string name { get; set; }
        public int parentid { get; set; }
        public string url { get; set; }
        public string icon { get; set; }
        public int? category { get; set; }
        public string content { get; set; }
        public List<PageLevelTree> children { get; set; }

        public void AddChilrden(PageLevelTree node)
        {
            if (children == null)
            {
                children = new List<PageLevelTree>();
            }
            children.Add(node);
        }

    }

}
