using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Service;
///
/// 菜单参数
///
public class MenuInput
{
///
/// 父Id
///
public virtual long Pid { get; set; }
///
/// 名称
///
public virtual string Name { get; set; }
///
/// 编码
///
public virtual string Code { get; set; }
///
/// 菜单类型(字典 0目录 1菜单 2按钮)
///
public virtual string Type { get; set; }
///
/// 图标
///
public string Icon { get; set; }
///
/// 路由地址
///
public virtual string Router { get; set; }
///
/// 组件地址
///
public virtual string Component { get; set; }
///
/// 权限标识
///
public virtual string Permission { get; set; }
///
/// 应用分类(应用编码)
///
public virtual string Application { get; set; }
///
/// 打开方式(字典 0无 1组件 2内链 3外链)
///
public virtual string OpenType { get; set; }
///
/// 是否可见(Y-是,N-否)
///
public string Visible { get; set; }
///
/// 内链地址
///
public string Link { get; set; }
///
/// 重定向地址
///
public string Redirect { get; set; }
///
/// 权重(字典 1系统权重 2业务权重)
///
public string Weight { get; set; }
///
/// 排序
///
public int Sort { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 是否启用数据授权
///
public bool? IsEnableDataScope { get; set; }
}
public class AddMenuInput : MenuInput
{
///
/// 菜单类型(字典 0目录 1菜单 2按钮)
///
[Required(ErrorMessage = "菜单类型不能为空")]
public override string Type { get; set; }
}
public class DeleteMenuInput
{
///
/// 菜单Id
///
[Required(ErrorMessage = "菜单Id不能为空")]
public long Id { get; set; }
}
public class UpdateMenuInput : AddMenuInput
{
///
/// 菜单Id
///
[Required(ErrorMessage = "菜单Id不能为空")]
public long Id { get; set; }
///
/// 父Id
/// DeleteMenuInput
[Required(ErrorMessage = "父级菜单Id不能为空")]
public override long Pid { get; set; }
}
public class QueryMenuInput : DeleteMenuInput
{
}
public class ChangeAppMenuInput : MenuInput
{
///
/// 应用编码
/// DeleteMenuInput
[Required(ErrorMessage = "应用编码不能为空")]
public override string Application { get; set; }
}