using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Admin.NET.Core { /// /// 学生菜单 /// [SugarTable("bus_custom_menus", "学生菜单")] public class BusCustomMenus : DEntitySortTenant { /// /// 根菜单(目前学生限定两级) /// [SugarColumn(ColumnDescription = "根菜单")] public virtual long RootId { get; set; } /// /// 内部链接0,1外部链接 /// [SugarColumn(ColumnDescription = "链接类型")] public int UrlType { get; set; } = 0; /// /// 菜单名称 /// [SugarColumn(ColumnDescription = "菜单名称")] [Required, MaxLength(100)] public string MenuName { get; set; } /// /// 菜单icon /// [SugarColumn(ColumnDescription = "菜单icon")] [Required, MaxLength(100)] public string Icon { get; set; } /// /// 路由地址 /// /// [SugarColumn(ColumnDescription = "路由地址")] [Required, MaxLength(400)] public string Url { get; set; } } }