using Kurisu.AspNetCore.Utils.Extensions;
using Newtonsoft.Json;
namespace Dlhis.Basic.Organization.Response;
public class DepartmentTreeResponse
{
///
/// 上级
///
public string PNo { get; set; }
///
/// 部门号
///
public string No { get; set; }
///
/// 部门名称
///
public string Name { get; set; }
public string Tenant { get; set; }
///
/// 下级部门
///
[JsonIgnore]
public List CurrentNext { get; set; }
///
/// 下级部门
///
public List Next
{
get
{
if (CurrentNext.IsPresent())
{
CurrentNext.ForEach(x => x.Tenant = Tenant);
}
return CurrentNext;
}
}
}