暂时支持q参数
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user