mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(wxapi): 修复部分事件通知模型中数组类型字段反序列化错误的问题
This commit is contained in:
parent
ffd12be7d7
commit
844818fd71
@ -49,7 +49,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item")]
|
||||
[System.Xml.Serialization.XmlArrayItem("item", Type = typeof(Types.Item))]
|
||||
[System.Xml.Serialization.XmlElement("item", Type = typeof(Types.Item))]
|
||||
public Types.Item[] List { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@ -91,7 +91,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fail_idx")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fail_idx")]
|
||||
[System.Xml.Serialization.XmlArrayItem("fail_idx", Type = typeof(int))]
|
||||
[System.Xml.Serialization.XmlElement("fail_idx", Type = typeof(int))]
|
||||
public int[]? FailedIndexList { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item")]
|
||||
[System.Xml.Serialization.XmlArrayItem("item", Type = typeof(CopyrightCheckResultItem))]
|
||||
[System.Xml.Serialization.XmlElement("item", Type = typeof(CopyrightCheckResultItem))]
|
||||
public CopyrightCheckResultItem[] Items { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@ -149,7 +149,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item")]
|
||||
[System.Xml.Serialization.XmlArrayItem("item", Type = typeof(ArticleUrlResultItem))]
|
||||
[System.Xml.Serialization.XmlElement("item", Type = typeof(ArticleUrlResultItem))]
|
||||
public ArticleUrlResultItem[] Items { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@
|
||||
/// <summary>
|
||||
/// 获取或设置图文列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlArrayItem("item", Type = typeof(ArticleItem))]
|
||||
[System.Xml.Serialization.XmlElement("item", Type = typeof(ArticleItem))]
|
||||
public ArticleItem[] Items { get; set; } = new ArticleItem[0];
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@
|
||||
/// <summary>
|
||||
/// 获取或设置证明材料 MediaId 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlArrayItem("proof_material_id", Type = typeof(string))]
|
||||
[System.Xml.Serialization.XmlElement("proof_material_id", Type = typeof(string))]
|
||||
public string[] ProofMediaIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@ -87,7 +87,7 @@
|
||||
/// <summary>
|
||||
/// 获取或设置申诉材料列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlArrayItem("material", Type = typeof(Types.Material), IsNullable = true)]
|
||||
[System.Xml.Serialization.XmlElement("material", Type = typeof(Types.Material), IsNullable = true)]
|
||||
public Types.Material[]? MaterialList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
@ -69,7 +69,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_group_ext_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_group_ext_list")]
|
||||
[System.Xml.Serialization.XmlArrayItem("scene_group_ext_list", Type = typeof(Types.SceneGroupExtra))]
|
||||
[System.Xml.Serialization.XmlElement("scene_group_ext_list", Type = typeof(Types.SceneGroupExtra))]
|
||||
public Types.SceneGroupExtra[] SceneGroupExtraList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@ -81,7 +81,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("Actions")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("Actions")]
|
||||
[System.Xml.Serialization.XmlArrayItem("Actions", Type = typeof(Types.Action))]
|
||||
[System.Xml.Serialization.XmlElement("Actions", Type = typeof(Types.Action))]
|
||||
public Types.Action[] ActionList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("DetailList")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("DetailList")]
|
||||
[System.Xml.Serialization.XmlArrayItem("DetailList", Type = typeof(Types.GoodsDetail))]
|
||||
[System.Xml.Serialization.XmlElement("DetailList", Type = typeof(Types.GoodsDetail))]
|
||||
public Types.GoodsDetail[]? GoodsDetailList { get; set; }
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("history")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("history")]
|
||||
[System.Xml.Serialization.XmlArrayItem("history", Type = typeof(Types.ComplaintHistory))]
|
||||
[System.Xml.Serialization.XmlElement("history", Type = typeof(Types.ComplaintHistory))]
|
||||
public Types.ComplaintHistory[] ComplaintHistoryList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user