Files

34 lines
1.0 KiB
C#
Raw Permalink Normal View History

2022-09-08 18:18:34 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Common.Models
{
public class VueRouterModel : ITreeModel<VueRouterModel>
{
2022-09-11 16:49:40 +08:00
public long Id { get; set; }
public long ParentId { get; set; }
public int OrderNum { get; set; }
2022-09-08 18:18:34 +08:00
2023-01-06 11:12:47 +08:00
public string Name { get; set; } = string.Empty;
public string Path { get; set; } = string.Empty;
2022-09-08 18:18:34 +08:00
public bool Hidden { get; set; }
2023-01-06 11:12:47 +08:00
public string Redirect { get; set; } = string.Empty;
public string Component { get; set; } = string.Empty;
2022-09-08 18:18:34 +08:00
public bool AlwaysShow { get; set; }
2022-09-25 18:06:07 +08:00
public Meta Meta { get; set; } = new Meta();
2023-01-06 11:12:47 +08:00
public List<VueRouterModel>? Children { get; set; }
2022-09-08 18:18:34 +08:00
}
public class Meta
{
2023-01-06 11:12:47 +08:00
public string Title { get; set; } = string.Empty;
public string Icon { get; set; } = string.Empty;
2022-09-09 19:22:14 +08:00
public bool NoCache { get; set; }
2023-01-06 11:12:47 +08:00
public string link { get; set; } = string.Empty;
2022-09-08 18:18:34 +08:00
}
}