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