irc-netcore-api/IRaCIS.Core.Domain/Management/Menu.cs

62 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
[Comment("后台 - 系统菜单 (需要同步)")]
[Table("Menu")]
public class Menu : BaseFullAuditEntity
{
#region 导航属性
[JsonIgnore]
public List<UserTypeMenu> UserTypeMenuList { get; set; }
#endregion
public string ApiPath { get; set; } = null!;
[StringLength(400)]
public string Component { get; set; } = null!;
public bool IsCache { get; set; }
public bool IsDisplay { get; set; }
public bool IsEnable { get; set; }
public bool IsExternalLink { get; set; }
public bool? IsInTabDisplay { get; set; }
public string LanguageMark { get; set; } = null!;
public string MenuIcon { get; set; } = null!;
public string MenuName { get; set; } = null!;
[Comment("类型M目录 C菜单 F按钮 L链接")]
public string MenuType { get; set; } = null!;
public string Meta { get; set; } = null!;
[MaxLength]
public string Note { get; set; }
public Guid ParentId { get; set; }
[Comment("路由地址")]
[StringLength(500)]
public string Path { get; set; } = null!;
public string PermissionStr { get; set; } = null!;
public string Redirect { get; set; } = null!;
public int ShowOrder { get; set; }
}
}