using System.Collections.Generic; using Infrastructure; using OpenAuth.Domain; namespace OpenAuth.App.ViewModel { public class ModuleView { /// /// ID /// /// public int Id { get; set; } /// /// 组织名称 /// /// public string Name { get; set; } /// /// 主页面URL /// /// public string Url { get; set; } /// /// 父节点流水号 /// /// public int ParentId { get; set; } /// /// 节点图标文件名称 /// /// public string IconName { get; set; } /// /// 子节点 /// public List Childern = new List(); public static implicit operator ModuleView(Module module) { return AutoMapperExt.ConvertTo(module); } public static implicit operator Module(ModuleView view) { return AutoMapperExt.ConvertTo(view); } } }