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

namespace Siger.Middlelayer.Repository.Data
{
    public class UserGroupItem : EntityBase
    {
        public int id { get; set; }
        public int projectid { get; set; }
        public int sectionid { get; set; }
        public string title { get; set; }
        public string nickname { get; set; }
        public string description { get; set; }
        public int create_mid { get; set; }
        public int time { get; set; }
        public string create_ip { get; set; }
        public int parentid { get; set; }
        public int number { get; set; }
        public int status { get; set; }
        public int role_id { get; set; }
        public string fatherUserGroupTitle { get; set; }
        public string sectionname { get; set; }
        public int create_time { get; set; }
    }

    public class UserGroupTree
    {
        public int id { get; set; }

        public int pid { get; set; }

        public string name { get; set; }

        public string title { get; set; }

        public bool open { get; set; } = true;

        public bool spread { get; set; } = true;

        public bool @checked { get; set; }

        public int mid { get; set; }

        public IEnumerable<UserGroupTree> children { get; set; }
    }

    public class UserGroupTitle
    {
        public int id { get; set; }

        public string usergrouptitle { get; set; }

        public string name { get; set; }
    }

    public class UserGroupSectionInfo
    {
        public string groupTitle { get; set; }

        public int groupID { get; set; }

        public int sectionID { get; set; }

        public string sectionTitle { get; set; }
    }
}
