using System; using YBEE.EQM.Core; namespace YBEE.EQM.Application { /// /// 菜单参数 /// public class SysMenuInput { /// /// 菜单类型(字典 1目录 2菜单 3按钮) /// [Required] public MenuType MenuType { get; set; } /// /// 路由地址 /// public string Router { get; set; } /// /// 权限标识 /// public string Permission { get; set; } /// /// 打开方式(字典 0无 1组件 2内链 3外链) /// public MenuOpenType OpenType { get; set; } } /// /// 新增菜单参数 /// public class AddSysMenuInput { /// /// 菜单类型(字典 1目录 2菜单 3按钮) /// [Required(ErrorMessage = "菜单类型不能为空")] public MenuType Type { get; set; } /// /// 父Id /// public int Pid { get; set; } /// /// 菜单类型(字典 1目录 2菜单 3按钮) /// [Required] public MenuType MenuType { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 编码 /// public string Code { get; set; } /// /// 图标 /// public string Icon { get; set; } /// /// 路由地址 /// public string Router { get; set; } /// /// 组件地址 /// public string Component { get; set; } /// /// 权限标识 /// public string Permission { get; set; } /// /// 打开方式(字典 0无 1组件 2内链 3外链) /// public MenuOpenType OpenType { get; set; } /// /// 是否可见 /// public bool Visible { get; set; } /// /// 内链地址 /// public string Link { get; set; } /// /// 重定向地址 /// public string Redirect { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 备注 /// public string Remark { get; set; } } /// /// 更新菜单参数 /// public class UpdateSysMenuInput { /// /// 菜单Id /// [Required(ErrorMessage = "菜单Id不能为空")] public int Id { get; set; } /// /// 父Id /// DeleteMenuInput [Required(ErrorMessage = "父级菜单Id不能为空")] public int Pid { get; set; } /// /// 菜单类型(字典 1目录 2菜单 3按钮) /// [Required(ErrorMessage = "菜单类型不能为空")] public MenuType MenuType { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 编码 /// public string Code { get; set; } /// /// 图标 /// public string Icon { get; set; } /// /// 路由地址 /// public string Router { get; set; } /// /// 组件地址 /// public string Component { get; set; } /// /// 权限标识 /// public string Permission { get; set; } /// /// 打开方式(字典 0无 1组件 2内链 3外链) /// public MenuOpenType OpenType { get; set; } /// /// 是否可见 /// public bool Visible { get; set; } /// /// 内链地址 /// public string Link { get; set; } /// /// 重定向地址 /// public string Redirect { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 备注 /// public string Remark { get; set; } } /// /// 删除菜单参数 /// public class DeleteSysMenuInput : BaseId { } }