67 lines
1.5 KiB
C#
67 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Masuit.Tools.Models;
|
|
using SqlSugar;
|
|
|
|
namespace LearningOfficer.OA.Core.Entities.OA.SystemInfo
|
|
{
|
|
/// <summary>
|
|
/// 菜单表
|
|
///</summary>
|
|
[SugarTable("sys_menu")]
|
|
public class SysMenu : BaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 备 注:菜单名称
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "title")]
|
|
public string Title { get; set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:父级菜单id
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "parent_id")]
|
|
public long ParentId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:序号
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "sort")]
|
|
public int Sort { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:路由路径
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "path")]
|
|
public string Path { get; set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:菜单图标
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "icon")]
|
|
public string Icon { get; set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:组件
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "component")]
|
|
public string Component { get; set; } = null!;
|
|
|
|
|
|
[SqlSugar.SugarColumn(IsIgnore = true)]
|
|
public List<SysMenu> Children { get; set; } = new();
|
|
}
|
|
|
|
} |