using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace New_College.Model.Models
{
///
/// 接口API地址信息表
///
public class Module
{
public Module()
{
//this.ChildModule = new List();
//this.ModulePermission = new List();
//this.RoleModulePermission = new List();
}
///
/// ID
///
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
///获取或设置是否禁用,逻辑上的删除,非物理删除
///
[SugarColumn(IsNullable = true)]
public bool? IsDeleted { get; set; }
///
/// 父ID
///
[SugarColumn(IsNullable = true)]
public int? ParentId { get; set; }
///
/// 名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
public string Name { get; set; }
///
/// 菜单链接地址
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string LinkUrl { get; set; }
///
/// 区域名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Area { get; set; }
///
/// 控制器名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Controller { get; set; }
///
/// Action名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Action { get; set; }
///
/// 图标
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string Icon { get; set; }
///
/// 菜单编号
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 10, IsNullable = true)]
public string Code { get; set; }
///
/// 排序
///
public int OrderSort { get; set; }
///
/// /描述
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string Description { get; set; }
///
/// 是否是右侧菜单
///
public bool IsMenu { get; set; }
///
/// 是否激活
///
public bool Enabled { get; set; }
//public virtual Module ParentModule { get; set; }
//public virtual ICollection ChildModule { get; set; }
//public virtual ICollection ModulePermission { get; set; }
//public virtual ICollection RoleModulePermission { get; set; }
}
}