using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; namespace POSV.DevOps.Entity { /// /// 目录树实体类 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] public class DirectoryTree { /// /// 目录或文件名 /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// 全路径 /// [JsonProperty(PropertyName = "fullPath")] public string FullPath { get; set; } /// /// 文件类型 /// [JsonProperty(PropertyName = "type")] public DirectoryType Type { get; set; } /// /// 文件大小 /// [JsonProperty(PropertyName = "child")] public List Child { get; set; } = new List(); } public enum DirectoryType { Directory, File } }