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