huawei
3 天以前 63d047db30e03608479ab3d340e925bc3366357c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Newtonsoft.Json;
using System.Collections.Generic;
 
namespace NewPdaSqlServer.Dto.Simple;
 
/// <summary>
///     树形结构DTO - 适配 Layui Tree 组件
/// </summary>
public class TreeViewDto
{
    [JsonProperty("id")]
    public long Id { get; set; }
 
    [JsonProperty("title")]
    public string? Title { get; set; }
 
    [JsonProperty("field")]
    public string? Field { get; set; } // 对应 Code
 
    [JsonProperty("spread")]
    public bool Spread { get; set; } // 对应 IsExpanded
 
    /// <summary>
    ///     跳转链接 (Layui Tree点击时需要)
    /// </summary>
    [JsonProperty("href")]
    public string? Href { get; set; } // 对应 Url
 
    /// <summary>
    ///     节点类型 (前端图标判断依据)
    /// </summary>
    [JsonProperty("nodeType")]
    public int NodeType { get; set; }
 
    [JsonProperty("children")]
    public List<TreeViewDto>? Children { get; set; }
}