HaniBlindBox/server/HoneyBox/src/HoneyBox.Admin/Models/Department/DepartmentTreeDto.cs
2026-01-04 01:47:02 +08:00

50 lines
996 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
namespace HoneyBox.Admin.Models.Department;
/// <summary>
/// 部门树形结构 DTO
/// </summary>
public class DepartmentTreeDto
{
/// <summary>
/// 部门ID
/// </summary>
public long Id { get; set; }
/// <summary>
/// 父部门ID
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 部门编码
/// </summary>
public string? Code { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortOrder { get; set; }
/// <summary>
/// 状态0禁用 1启用
/// </summary>
public byte Status { get; set; }
/// <summary>
/// 部门下用户数量
/// </summary>
public int UserCount { get; set; }
/// <summary>
/// 子部门列表
/// </summary>
public List<DepartmentTreeDto> Children { get; set; } = new();
}