You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Service/Menu/Dto/MenuTreeOutput.cs

78 lines
1.5 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections;
using System.Collections.Generic;
namespace Myshipping.Core.Service;
/// <summary>
/// 菜单树---授权、新增编辑时选择
/// </summary>
public class MenuTreeOutput : ITreeNode
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
/// <summary>
/// 父Id
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Title { get; set; }
/// <summary>
/// 菜单类型0目录 1菜单 2按钮
/// </summary>
public int Type { get; set; }
/// <summary>
/// 值
/// </summary>
public string Value { get; set; }
/// <summary>
/// 排序,越小优先级越高
/// </summary>
public int Weight { get; set; }
/// <summary>
/// 子节点
/// </summary>
public List<MenuTreeOutput> Children { get; set; } = new List<MenuTreeOutput>();
/// <summary>
/// 应用名称
/// </summary>
[System.Text.Json.Serialization.JsonIgnore]
public string AppName { get; set; }
/// <summary>
/// 应用编码
/// </summary>
public string AppCode { get; set; }
/// <summary>
/// 引用排序
/// </summary>
[System.Text.Json.Serialization.JsonIgnore]
public int AppSort { get; set; }
public long GetId()
{
return Id;
}
public long GetPid()
{
return ParentId;
}
public void SetChildren(IList children)
{
Children = (List<MenuTreeOutput>)children;
}
}