暂时支持q参数

This commit is contained in:
2023-11-21 11:07:58 +08:00
parent 121cddf493
commit 41db1d9911
3 changed files with 33 additions and 5 deletions

View File

@@ -17,6 +17,21 @@ public class DObject : Dictionary<string, object>
{
}
/// <summary>
/// 添加字典
/// </summary>
/// <param name="codePath">以.号分隔的多级路径</param>
/// <param name="value"></param>
public void AddRange(Dictionary<string, object>? dicts)
{
if (dicts == null) return;
foreach (var item in dicts)
{
this[item.Key] = item.Value;
}
}
/// <summary>
/// 将平面结构转换为树形嵌套结构
/// </summary>