namespace F9WebAiTest.Application.Dtos; public class DepartmentDto { public long Id { get; set; } public string Name { get; set; } public long? ParentId { get; set; } public long? LeaderId { get; set; } public string LeaderName { get; set; } public string Phone { get; set; } public int Sort { get; set; } public int Status { get; set; } public List Children { get; set; } = new(); } public class CreateDepartmentDto { public string Name { get; set; } public long? ParentId { get; set; } public long? LeaderId { get; set; } public string Phone { get; set; } = ""; public int Sort { get; set; } } public class UpdateDepartmentDto { public string Name { get; set; } public long? ParentId { get; set; } public long? LeaderId { get; set; } public string Phone { get; set; } = ""; public int Sort { get; set; } public int Status { get; set; } }