using System.Collections.Generic;

namespace Siger.Middlelayer.AccRepository.Response
{
    public class ResponseBaseSettingItem
    {
        public int id { get; set; }

        public string groupname { get; set; }
        public int seq { get; set; }
        public string item { get; set; }
        public string descr { get; set; }
        public string manualkeyin { get; set; }
        public string uid { get; set; }
        public string uid_value { get; set; }
        public string transdatetime { get; set; }
    }

    public class ResponseBaseSettingsItems
    {
        public int id { get; set; }
        public int Seq { get; set; }
        public string GroupName { get; set; }
        public string Descr { get; set; }
        public List<ResponseBaseSettingsItems> children { get; set; }
        #region 前端字段
        public string title { get; set; }
        public bool spread { get; set; } = true;
        public bool disabled { get; set; } = true;
        #endregion
        public void Add(ResponseBaseSettingsItems child)
        {
            if (children==null)
            {
                children = new List<ResponseBaseSettingsItems>();
            }
            children.Add(child);
        }
    }
}
