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