fix(work): 修复部分事件通知模型中数组类型字段反序列化错误的问题

This commit is contained in:
Fu Diwei 2022-04-14 20:41:54 +08:00
parent 626fa31f7c
commit 6d14691fe9
4 changed files with 9 additions and 9 deletions

View File

@ -82,7 +82,7 @@
/// <summary>
/// 获取或设置审批意见附件 MediaId 列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("Attach", Type = typeof(string), IsNullable = true)]
[System.Xml.Serialization.XmlElement("Attach", Type = typeof(string), IsNullable = true)]
public string[]? SpeechMediaIdList { get; set; }
}
}
@ -141,7 +141,7 @@
/// <summary>
/// 获取或设置评论内容附件 MediaId 列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("Attach", Type = typeof(string))]
[System.Xml.Serialization.XmlElement("Attach", Type = typeof(string))]
public string[] MediaIdList { get; set; } = default!;
/// <summary>
@ -197,19 +197,19 @@
/// <summary>
/// 获取或设置抄送人列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("Notifyer", Type = typeof(Types.Notifier))]
[System.Xml.Serialization.XmlElement("Notifyer", Type = typeof(Types.Notifier))]
public Types.Notifier[]? NotifyerList { get; set; }
/// <summary>
/// 获取或设置审批流程列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("SpRecord", Type = typeof(Types.Record))]
[System.Xml.Serialization.XmlElement("SpRecord", Type = typeof(Types.Record))]
public Types.Record[] RecordList { get; set; } = default!;
/// <summary>
/// 获取或设置评论列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("Comments", Type = typeof(Types.Comment))]
[System.Xml.Serialization.XmlElement("Comments", Type = typeof(Types.Comment))]
public Types.Comment[] CommentList { get; set; } = default!;
}
}

View File

@ -81,7 +81,7 @@
/// <summary>
/// 获取或设置自定义字段列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("Item", Type = typeof(Types.Attribute))]
[System.Xml.Serialization.XmlElement("Item", Type = typeof(Types.Attribute))]
public Types.Attribute[] AttributeList { get; set; } = default!;
}
}

View File

@ -18,7 +18,7 @@
/// <summary>
/// 获取或设置选项列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("OpitonId", Type = typeof(string))]
[System.Xml.Serialization.XmlElement("OpitonId", Type = typeof(string))]
public string[] Items { get; set; } = default!;
}
}
@ -41,7 +41,7 @@
/// <summary>
/// 获取或设置下拉框列表。
/// </summary>
[System.Xml.Serialization.XmlArrayItem("SelectedItem", Type = typeof(SelectItem))]
[System.Xml.Serialization.XmlElement("SelectedItem", Type = typeof(SelectItem))]
public SelectItem[]? Items { get; set; } = default!;
}
}

View File

@ -42,7 +42,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];
}
}