Files
2026-10-08 10:43:59 +08:00

42 lines
1.3 KiB
C#

namespace F9WebAiTest.Application.Dtos;
public class MenuDto
{
public long Id { get; set; }
public long? ParentId { get; set; }
public string Name { get; set; }
public string Type { get; set; }
public string Path { get; set; }
public string Component { get; set; }
public string Icon { get; set; }
public string Permission { get; set; }
public int Sort { get; set; }
public int Status { get; set; }
public List<MenuDto> Children { get; set; } = new();
}
public class CreateMenuDto
{
public long? ParentId { get; set; }
public string Name { get; set; }
public string Type { get; set; } = "menu";
public string Path { get; set; } = "";
public string Component { get; set; } = "";
public string Icon { get; set; } = "";
public string Permission { get; set; } = "";
public int Sort { get; set; }
}
public class UpdateMenuDto
{
public long? ParentId { get; set; }
public string Name { get; set; }
public string Type { get; set; } = "menu";
public string Path { get; set; } = "";
public string Component { get; set; } = "";
public string Icon { get; set; } = "";
public string Permission { get; set; } = "";
public int Sort { get; set; }
public int Status { get; set; } = 1;
}