using SqlSugar;
using System.ComponentModel;
using XF.Domain.Entities;
using XF.Domain.Repository;
namespace Hotline.Settings;
[SugarIndex("unique_org_code", nameof(SystemOrganize.OrgCode), OrderByType.Desc, true)]
[Description("组织架构")]
public class SystemOrganize: CreationEntity
{
///
/// 组织架构名称
///
public string OrgName { get; set; }
///
/// 组织架构Code(001001001) 解析:001,001,001)
///
public string OrgCode { get; set; }
///
/// 上级ID
///
public string ParentId { get; set; }
///
/// 上级名称
///
public string ParentName { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
[SugarColumn(IsIgnore = true)]
public List children { get; set; }
}