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.
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Core.Service;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 菜单树(列表形式)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MenuOutput : MenuInput, ITreeNode
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 菜单Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 子节点
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<MenuOutput> Children { get; set; } = new List<MenuOutput>();
|
|
|
|
|
|
|
|
|
|
public long GetId()
|
|
|
|
|
{
|
|
|
|
|
return Id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long GetPid()
|
|
|
|
|
{
|
|
|
|
|
return Pid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetChildren(IList children)
|
|
|
|
|
{
|
|
|
|
|
Children = (List<MenuOutput>)children;
|
|
|
|
|
}
|
|
|
|
|
}
|