using System; using System.Collections.Generic; using System.Text.Json.Serialization; namespace WalkingTec.Mvvm.Mvc.Model { /// /// Menu /// public class Menu { [JsonIgnore] public Guid Id { get; set; } /// /// Name /// 默认用不上name,但是 v1.2.1 有问题:“默认展开了所有节点,并将所有子节点标蓝” /// /// [JsonPropertyName("name")] public string Name => Title; /// /// Title /// /// [JsonPropertyName("title")] public string Title { get; set; } /// /// 图标 /// /// [JsonPropertyName("icon")] public string Icon { get; set; } /// /// 是否展开节点 /// /// [JsonPropertyName("spread")] public bool? Expand { get; set; } /// /// Url /// /// [JsonPropertyName("jump")] public string Url { get; set; } [JsonPropertyName("list")] public List Children { get; set; } /// /// order /// /// [JsonIgnore] public int? Order { get; set; } } }