using Hotline.Settings;
using XF.Utility.EnumExtensions;
namespace Hotline.Share.Dtos.Org
{
public class AddOrgDto
{
///
/// 组织架构名称
///
public string Name { get; set; }
///
/// 组织架构简称
///
public string ShortName { get; set; }
///
/// 上级ID
///
public string? ParentId { get; set; }
///
/// 上级名称
///
public string? ParentName { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
///
/// 部门类型
///
public EOrgType OrgType { get; set; }
///
/// 区域Code(行政区域代码)
///
public string AreaCode { get; set; }
///
/// 区域名称
///
public string AreaName { get; set; }
}
public class UpdateOrgDto : AddOrgDto
{
public string Id { get; set; }
}
public class OrgDto : AddOrgDto
{
///
/// 组织架构Code
///
public string OrgCode { get; set; }
///
/// 部门级别
///
public int OrgLevel { get; set; }
public string OrgTypeText => OrgType.GetDescription();
}
}