2017-11-30 17:47:41 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Infrastructure;
|
2017-11-29 20:49:14 +08:00
|
|
|
|
using OpenAuth.Repository.Domain;
|
2015-11-22 21:32:38 +08:00
|
|
|
|
|
2017-11-30 17:47:41 +08:00
|
|
|
|
namespace OpenAuth.App.Response
|
2015-11-22 21:32:38 +08:00
|
|
|
|
{
|
|
|
|
|
public class ModuleView
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2017-10-11 16:19:34 +08:00
|
|
|
|
public string Id { get; set; }
|
2015-11-22 21:32:38 +08:00
|
|
|
|
|
2017-12-11 17:49:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 节点语义ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CascadeId { get; set; }
|
|
|
|
|
|
2015-11-22 21:32:38 +08:00
|
|
|
|
/// <summary>
|
2017-08-30 18:16:06 +08:00
|
|
|
|
/// 名称
|
2015-11-22 21:32:38 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主页面URL
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string Url { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 父节点流水号
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2017-10-11 16:19:34 +08:00
|
|
|
|
public string ParentId { get; set; }
|
2015-11-22 21:32:38 +08:00
|
|
|
|
|
2017-12-11 17:49:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 父节点流水号
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string ParentName { get; set; }
|
|
|
|
|
|
2015-11-22 21:32:38 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 节点图标文件名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string IconName { get; set; }
|
|
|
|
|
|
2016-10-18 17:34:41 +08:00
|
|
|
|
|
|
|
|
|
public bool Checked { get; set; }
|
|
|
|
|
|
2017-12-11 17:49:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int SortNo { get; set; }
|
|
|
|
|
|
2018-04-04 17:36:41 +08:00
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
|
2015-12-03 23:39:27 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 模块中的元素
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<ModuleElement> Elements = new List<ModuleElement>();
|
2015-11-22 21:32:38 +08:00
|
|
|
|
|
|
|
|
|
public static implicit operator ModuleView(Module module)
|
|
|
|
|
{
|
2015-12-03 23:39:27 +08:00
|
|
|
|
return module.MapTo<ModuleView>();
|
2015-11-22 21:32:38 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static implicit operator Module(ModuleView view)
|
|
|
|
|
{
|
2015-12-03 23:39:27 +08:00
|
|
|
|
return view.MapTo<Module>();
|
2015-11-22 21:32:38 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-03 23:39:27 +08:00
|
|
|
|
}
|