using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Menus
{
public class MenuAddDto
{
///
/// 备 注:菜单名称
/// 默认值:
///
public string Title { get; set; } = null!;
///
/// 备 注:父级菜单id
/// 默认值:
///
public long ParentId { get; set; }
///
/// 备 注:序号
/// 默认值:
///
public int Sort { get; set; }
///
/// 备 注:路由路径
/// 默认值:
///
public string Path { get; set; } = null!;
///
/// 备 注:菜单图标
/// 默认值:
///
public string Icon { get; set; } = null!;
/// 备 注:组件
/// 默认值:
///
public string Component { get; set; } = null!;
}
public class MenuUpdateDto : MenuAddDto
{
///
/// 备 注:菜单id
/// 默认值:
///
public long Id { get; set; }
}
public class MenuFrontEndDto
{
public long Id { get; set; }
///
/// 备 注:菜单名称
/// 默认值:
///
public string Title { get; set; } = null!;
///
/// 备 注:父级菜单id
/// 默认值:
///
public long ParentId { get; set; }
///
/// 备 注:序号
/// 默认值:
///
public int Sort { get; set; }
///
/// 备 注:路由路径
/// 默认值:
///
public string Path { get; set; } = null!;
///
/// 备 注:菜单图标
/// 默认值:
///
public string Icon { get; set; } = null!;
/// 备 注:组件
/// 默认值:
///
public string Component { get; set; } = null!;
public MenuMeta Meta
{
get
{
return new MenuMeta
{
Title = this.Title,
Icon = this.Icon
};
}
}
public List Children { get; set; }
}
public class MenuMeta
{
///
/// 备 注:菜单名称
/// 默认值:
///
public string Title { get; set; } = null!;
public string Icon { get; set; }
}
}