namespace AgriculturalPlatform.Api.Models;
/// 菜单/权限表(目录、菜单、按钮)
public class SysMenu
{
public int Id { get; set; }
public int? ParentId { get; set; }
/// 菜单名称
public string Name { get; set; } = string.Empty;
/// 路由路径(前端)
public string Path { get; set; } = string.Empty;
/// 前端组件路径
public string Component { get; set; } = string.Empty;
/// 图标
public string Icon { get; set; } = string.Empty;
/// 类型:directory=目录 menu=菜单 button=按钮
public string Type { get; set; } = "menu";
/// 权限标识(如 purchase:create、purchase:reprint)
public string Permission { get; set; } = string.Empty;
/// 是否可见(不可见的仅作权限标识)
public bool Visible { get; set; } = true;
public int Sort { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.Now;
public ICollection Children { get; set; } = new List();
}