69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
using Learn.Archives.Core.Model.Interface;
|
|
using SqlSugar;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Net;
|
|
using System.Text.Json;
|
|
using UserCenter.Model;
|
|
using UserCenter.Model.Enum;
|
|
using UserCenter.Model.Interface;
|
|
|
|
namespace Learn.Archives.Core.Model
|
|
{
|
|
/// <summary>
|
|
/// 菜单
|
|
/// </summary>
|
|
[SugarTable("menu")]
|
|
public class Menu : EntityBaseId, IDB
|
|
{
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
[SugarColumn(Length = 50)]
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// 路径
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string? Path { get; set; }
|
|
/// <summary>
|
|
/// 是按钮权限
|
|
/// </summary>
|
|
public virtual bool IsButton { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标题
|
|
/// </summary>
|
|
[SugarColumn(Length = 20)]
|
|
public virtual string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图标
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public virtual string? Icon { get; set; }
|
|
|
|
/// <summary>
|
|
/// 需要的授权码
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public virtual string? Auths { get; set; }
|
|
/// <summary>
|
|
/// 排名
|
|
/// </summary>
|
|
public virtual int Rank { get; set; }
|
|
|
|
/// <summary>
|
|
/// 显示菜单?
|
|
/// </summary>
|
|
public virtual bool ShowLink { get; set; }
|
|
|
|
/// <summary>
|
|
/// 父级菜单ID
|
|
/// <para>属于<see cref="Menu.Id"/></para>
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public virtual long ParentId { get; set; }
|
|
|
|
}
|
|
}
|