48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
|
|
namespace BackOffice.BFF.Application.NetworkMembershipCQ.Queries.GetNetworkTree;
|
||
|
|
|
||
|
|
public class GetNetworkTreeResponseDto
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// لیست گرههای درخت شبکه
|
||
|
|
/// </summary>
|
||
|
|
public List<NetworkTreeNodeDto> Nodes { get; set; } = new();
|
||
|
|
}
|
||
|
|
|
||
|
|
public class NetworkTreeNodeDto
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// شناسه کاربر
|
||
|
|
/// </summary>
|
||
|
|
public long UserId { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// نام کاربر
|
||
|
|
/// </summary>
|
||
|
|
public string UserName { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// شناسه والد
|
||
|
|
/// </summary>
|
||
|
|
public long? ParentId { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// موقعیت در شبکه (0=Left, 1=Right)
|
||
|
|
/// </summary>
|
||
|
|
public int NetworkLeg { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// سطح در شبکه
|
||
|
|
/// </summary>
|
||
|
|
public int NetworkLevel { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// وضعیت فعال/غیرفعال
|
||
|
|
/// </summary>
|
||
|
|
public bool IsActive { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// تاریخ عضویت
|
||
|
|
/// </summary>
|
||
|
|
public DateTime JoinedAt { get; set; }
|
||
|
|
}
|