DeptTreeDto.cs
967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Collections.Generic;
using static Yi.Framework.Core.Helper.TreeHelper;
namespace Yi.Framework.Rbac.Domain.Shared.Dtos
{
/// <summary>
/// 部门树形DTO
/// </summary>
public class DeptTreeDto : ITreeModel<DeptTreeDto>
{
/// <summary>
/// 部门ID
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// 父部门ID
/// </summary>
public Guid ParentId { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int OrderNum { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string DeptName { get; set; } = string.Empty;
/// <summary>
/// 状态
/// </summary>
public bool State { get; set; }
/// <summary>
/// 子部门列表
/// </summary>
public List<DeptTreeDto>? Children { get; set; }
}
}