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

20 lines
821 B
C#

using FreeSql.DataAnnotations;
using F9WebAiTest.Domain.Common;
namespace F9WebAiTest.Domain.Entities;
/// <summary>菜单/权限(支持目录、菜单、按钮三种类型)</summary>
[Table(Name = "Menus")]
public class Menu : BaseEntity
{
public long? ParentId { get; set; }
public string Name { get; set; } // 菜单名称
public string Type { get; set; } = "menu"; // directory 目录 / menu 菜单 / button 按钮
public string Path { get; set; } = ""; // 路由路径
public string Component { get; set; } = "";// 组件路径
public string Icon { get; set; } = ""; // 图标
public string Permission { get; set; } = "";// 权限标识,如 system:user:list
public int Sort { get; set; }
public int Status { get; set; } = 1; // 1 显示 0 隐藏
}