first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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 隐藏
|
||||
}
|
||||
Reference in New Issue
Block a user