using System.Collections.Generic;
using Infrastructure;
using OpenAuth.Repository.Domain;
using SqlSugar;
namespace OpenAuth.App.Response
{
[SugarTable("Module")]
public class ModuleView
{
///
/// ID
///
///
public string Id { get; set; }
///
/// 节点语义ID
///
public string CascadeId { get; set; }
///
/// 名称
///
///
public string Name { get; set; }
///
/// 主页面URL
///
///
public string Url { get; set; }
///
/// 父节点流水号
///
///
public string ParentId { get; set; }
///
/// 父节点流水号
///
///
public string ParentName { get; set; }
///
/// 节点图标文件名称
///
///
public string IconName { get; set; }
///
/// 当前状态,0:正常,-1:隐藏,不在导航列表中显示
///
public int Status { get; set; }
///
/// 排序号
///
public int SortNo { get; set; }
public string Code { get; set; }
public bool IsSys { get; set; }
///
/// 模块中的元素
///
[Navigate(NavigateType.OneToMany, nameof(ModuleElement.ModuleId),nameof(Id))]
public List Elements { get; set; }
public static implicit operator ModuleView(Module module)
{
return module.MapTo();
}
public static implicit operator Module(ModuleView view)
{
return view.MapTo();
}
}
}