Files
jinko.yikatong/Src/Dlhis.Basic/Organization/Response/DepartmentTreeResponse.cs
2024-03-07 15:17:40 +08:00

43 lines
828 B
C#

using Newtonsoft.Json;
namespace Dlhis.Basic.Organization.Response;
public class DepartmentTreeResponse
{
/// <summary>
/// 上级
/// </summary>
public string PNo { get; set; }
/// <summary>
/// 部门号
/// </summary>
public string No { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string Name { get; set; }
public string Tenant { get; set; }
/// <summary>
/// 下级部门
/// </summary>
[JsonIgnore]
public List<DepartmentTreeResponse> _Next { get; set; } = new List<DepartmentTreeResponse>();
/// <summary>
/// 下级部门
/// </summary>
public List<DepartmentTreeResponse> Next
{
get
{
_Next.ForEach(x => x.Tenant = Tenant);
return _Next;
}
}
}