using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace BoreholeExtract { public class CategoryConfig { [JsonConverter(typeof(StringEnumConverter))] public Identify Id { get; set; } // 关键:用枚举做唯一键 public string Title { get; set; } public List Items { get; set; } } }