feat(work): 随官方更新客服消息相关接口模型

This commit is contained in:
Fu Diwei
2023-10-09 11:19:06 +08:00
parent 21a40a0abe
commit aa0937373f
14 changed files with 362 additions and 220 deletions

View File

@@ -1,11 +1,36 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 INFO.change_auth 事件的数据。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/90642 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/99401 </para>
/// </summary>
public class ChangeAuthEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
{
public static class Types
{
public class Extra
{
public static class Types
{
public class AuthorizedOpenKfIdList
{
/// <summary>
/// 获取或设置客服账号列表。
/// </summary>
[System.Xml.Serialization.XmlElement("OpenKfId", Type = typeof(string))]
public string[] Items { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置用户本次授权的客服账号列表。
/// </summary>
[System.Xml.Serialization.XmlElement("AuthOpenKfIdList", IsNullable = true)]
public Types.AuthorizedOpenKfIdList? AuthorizedOpenKfIdList { get; set; }
}
}
/// <summary>
/// 获取或设置第三方应用的 SuiteId。
/// </summary>
@@ -17,5 +42,11 @@
/// </summary>
[System.Xml.Serialization.XmlElement("AuthCorpId")]
public string AuthorizerCorpId { get; set; } = default!;
/// <summary>
/// 获取或设置事件信息。
/// </summary>
[System.Xml.Serialization.XmlElement("ExtraInfo", IsNullable = true)]
public Types.Extra? Extra { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/appchat/send 接口的请求。</para>
@@ -63,63 +63,63 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置文本卡片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("textcard")]
[System.Text.Json.Serialization.JsonPropertyName("textcard")]
public Types.TextCardMessage? MessageContentForTextCard { get; set; }
public Types.TextCardMessage? MessageContentAsTextCard { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("news")]
[System.Text.Json.Serialization.JsonPropertyName("news")]
public Types.NewsMessage? MessageContentForNews { get; set; }
public Types.NewsMessage? MessageContentAsNews { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("mpnews")]
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
public Types.MpNewsMessage? MessageContentAsMpNews { get; set; }
/// <summary>
/// 获取或设置 Markdown 消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("markdown")]
[System.Text.Json.Serialization.JsonPropertyName("markdown")]
public Types.MarkdownMessage? MessageContentForMarkdown { get; set; }
public Types.MarkdownMessage? MessageContentAsMarkdown { get; set; }
/// <summary>
/// 获取或设置是否是保密消息。

View File

@@ -122,63 +122,63 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置文本卡片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("textcard")]
[System.Text.Json.Serialization.JsonPropertyName("textcard")]
public Types.TextCardMessage? MessageContentForTextCard { get; set; }
public Types.TextCardMessage? MessageContentAsTextCard { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("news")]
[System.Text.Json.Serialization.JsonPropertyName("news")]
public Types.NewsMessage? MessageContentForNews { get; set; }
public Types.NewsMessage? MessageContentAsNews { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("mpnews")]
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
public Types.MpNewsMessage? MessageContentAsMpNews { get; set; }
/// <summary>
/// 获取或设置小程序消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("miniprogram")]
[System.Text.Json.Serialization.JsonPropertyName("miniprogram")]
public Types.MiniProgramMessage? MessageContentForMiniProgram { get; set; }
public Types.MiniProgramMessage? MessageContentAsMiniProgram { get; set; }
/// <summary>
/// 获取或设置应用 ID。如果不指定将使用构造 <see cref="WechatWorkClient"/> 时的 <see cref="WechatWorkClientOptions.AgentId"/> 参数。

View File

@@ -42,13 +42,13 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置菜单消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("msgmenu")]
[System.Text.Json.Serialization.JsonPropertyName("msgmenu")]
public Types.MenuMessage? MessageContentForMenu { get; set; }
public Types.MenuMessage? MessageContentAsMenu { get; set; }
}
}

View File

@@ -311,69 +311,69 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置图文链接消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("link")]
[System.Text.Json.Serialization.JsonPropertyName("link")]
public Types.LinkMessage? MessageContentForLink { get; set; }
public Types.LinkMessage? MessageContentAsLink { get; set; }
/// <summary>
/// 获取或设置小程序消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("miniprogram")]
[System.Text.Json.Serialization.JsonPropertyName("miniprogram")]
public Types.MiniProgramMessage? MessageContentForMiniProgram { get; set; }
public Types.MiniProgramMessage? MessageContentAsMiniProgram { get; set; }
/// <summary>
/// 获取或设置菜单消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("msgmenu")]
[System.Text.Json.Serialization.JsonPropertyName("msgmenu")]
public Types.MenuMessage? MessageContentForMenu { get; set; }
public Types.MenuMessage? MessageContentAsMenu { get; set; }
/// <summary>
/// 获取或设置地理位置消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("location")]
[System.Text.Json.Serialization.JsonPropertyName("location")]
public Types.LocationMessage? MessageContentForLocation { get; set; }
public Types.LocationMessage? MessageContentAsLocation { get; set; }
/// <summary>
/// 获取或设置名片消息。
/// </summary>
[Newtonsoft.Json.JsonProperty("business_card")]
[System.Text.Json.Serialization.JsonPropertyName("business_card")]
public Types.BusinessCardMessage? MessageContentForBusinessCard { get; set; }
public Types.BusinessCardMessage? MessageContentAsBusinessCard { get; set; }
}
}

View File

@@ -198,6 +198,30 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public string? RecalledMessageId { get; set; }
}
public class ChannelsMessage
{
/// <summary>
/// 获取或设置视频号消息类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_type")]
[System.Text.Json.Serialization.JsonPropertyName("sub_type")]
public int SubType { get; set; }
/// <summary>
/// 获取或设置视频号名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string Nickname { get; set; } = default!;
/// <summary>
/// 获取或设置视频号动态标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("title")]
[System.Text.Json.Serialization.JsonPropertyName("title")]
public string? Title { get; set; }
}
public class ChannelsShopProductMessage
{
/// <summary>
@@ -288,6 +312,57 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("shop_nickname")]
public string ShopNickname { get; set; } = default!;
}
public class MergedMessage
{
public static class Types
{
public class Item
{
/// <summary>
/// 获取或设置发送者名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("sender_name")]
[System.Text.Json.Serialization.JsonPropertyName("sender_name")]
public string SenderName { get; set; } = default!;
/// <summary>
/// 获取或设置消息类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("msgtype")]
[System.Text.Json.Serialization.JsonPropertyName("msgtype")]
public string MessageType { get; set; } = default!;
/// <summary>
/// 获取或设置消息内容JSON 格式)。
/// </summary>
[Newtonsoft.Json.JsonProperty("msg_content")]
[System.Text.Json.Serialization.JsonPropertyName("msg_content")]
public string MessageContentJson { get; set; } = default!;
/// <summary>
/// 获取或设置发送时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("send_time")]
[System.Text.Json.Serialization.JsonPropertyName("send_time")]
public long SendTimestamp { get; set; }
}
}
/// <summary>
/// 获取或设置聊天记录标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("title")]
[System.Text.Json.Serialization.JsonPropertyName("title")]
public string Title { get; set; } = default!;
/// <summary>
/// 获取或设置聊天记录列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("item")]
[System.Text.Json.Serialization.JsonPropertyName("item")]
public Types.Item[] ItemList { get; set; } = default!;
}
}
/// <summary>
@@ -337,91 +412,105 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置图文链接消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("link")]
[System.Text.Json.Serialization.JsonPropertyName("link")]
public Types.LinkMessage? MessageContentForLink { get; set; }
public Types.LinkMessage? MessageContentAsLink { get; set; }
/// <summary>
/// 获取或设置小程序消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("miniprogram")]
[System.Text.Json.Serialization.JsonPropertyName("miniprogram")]
public Types.MiniProgramMessage? MessageContentForMiniProgram { get; set; }
public Types.MiniProgramMessage? MessageContentAsMiniProgram { get; set; }
/// <summary>
/// 获取或设置菜单消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("msgmenu")]
[System.Text.Json.Serialization.JsonPropertyName("msgmenu")]
public Types.MenuMessage? MessageContentForMenu { get; set; }
public Types.MenuMessage? MessageContentAsMenu { get; set; }
/// <summary>
/// 获取或设置地理位置消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("location")]
[System.Text.Json.Serialization.JsonPropertyName("location")]
public Types.LocationMessage? MessageContentForLocation { get; set; }
public Types.LocationMessage? MessageContentAsLocation { get; set; }
/// <summary>
/// 获取或设置名片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("business_card")]
[System.Text.Json.Serialization.JsonPropertyName("business_card")]
public Types.BusinessCardMessage? MessageContentForBusinessCard { get; set; }
public Types.BusinessCardMessage? MessageContentAsBusinessCard { get; set; }
/// <summary>
/// 获取或设置事件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("event")]
[System.Text.Json.Serialization.JsonPropertyName("event")]
public Types.EventMessage? MessageContentForEvent { get; set; }
public Types.EventMessage? MessageContentAsEvent { get; set; }
/// <summary>
/// 获取或设置视频号消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("channels")]
[System.Text.Json.Serialization.JsonPropertyName("channels")]
public Types.ChannelsMessage? MessageContentAsChannels { get; set; }
/// <summary>
/// 获取或设置视频号商品消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("channels_shop_product")]
[System.Text.Json.Serialization.JsonPropertyName("channels_shop_product")]
public Types.ChannelsShopProductMessage? MessageContentForChannelsShopProduct { get; set; }
public Types.ChannelsShopProductMessage? MessageContentAsChannelsShopProduct { get; set; }
/// <summary>
/// 获取或设置视频号订单消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("channels_shop_order")]
[System.Text.Json.Serialization.JsonPropertyName("channels_shop_order")]
public Types.ChannelsShopOrderMessage? MessageContentForChannelsShopOrder { get; set; }
public Types.ChannelsShopOrderMessage? MessageContentAsChannelsShopOrder { get; set; }
/// <summary>
/// 获取或设置聊天记录消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("merged_msg")]
[System.Text.Json.Serialization.JsonPropertyName("merged_msg")]
public Types.MergedMessage? MessageContentAsMerged { get; set; }
/// <summary>
/// 获取或设置发送时间戳。

View File

@@ -92,70 +92,70 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置文本卡片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("textcard")]
[System.Text.Json.Serialization.JsonPropertyName("textcard")]
public Types.TextCardMessage? MessageContentForTextCard { get; set; }
public Types.TextCardMessage? MessageContentAsTextCard { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("news")]
[System.Text.Json.Serialization.JsonPropertyName("news")]
public Types.NewsMessage? MessageContentForNews { get; set; }
public Types.NewsMessage? MessageContentAsNews { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("mpnews")]
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
public Types.MpNewsMessage? MessageContentAsMpNews { get; set; }
/// <summary>
/// 获取或设置 Markdown 消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("markdown")]
[System.Text.Json.Serialization.JsonPropertyName("markdown")]
public Types.MarkdownMessage? MessageContentForMarkdown { get; set; }
public Types.MarkdownMessage? MessageContentAsMarkdown { get; set; }
/// <summary>
/// 获取或设置小程序通知消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("miniprogram_notice")]
[System.Text.Json.Serialization.JsonPropertyName("miniprogram_notice")]
public Types.MiniProgramNoticeMessage? MessageContentForMiniProgramNotice { get; set; }
public Types.MiniProgramNoticeMessage? MessageContentAsMiniProgramNotice { get; set; }
/// <summary>
/// 获取或设置应用 ID。如果不指定将使用构造 <see cref="WechatWorkClient"/> 时的 <see cref="WechatWorkClientOptions.AgentId"/> 参数。

View File

@@ -1013,91 +1013,91 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置文本卡片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("textcard")]
[System.Text.Json.Serialization.JsonPropertyName("textcard")]
public Types.TextCardMessage? MessageContentForTextCard { get; set; }
public Types.TextCardMessage? MessageContentAsTextCard { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("news")]
[System.Text.Json.Serialization.JsonPropertyName("news")]
public Types.NewsMessage? MessageContentForNews { get; set; }
public Types.NewsMessage? MessageContentAsNews { get; set; }
/// <summary>
/// 获取或设置图文消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("mpnews")]
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
public Types.MpNewsMessage? MessageContentAsMpNews { get; set; }
/// <summary>
/// 获取或设置 Markdown 消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("markdown")]
[System.Text.Json.Serialization.JsonPropertyName("markdown")]
public Types.MarkdownMessage? MessageContentForMarkdown { get; set; }
public Types.MarkdownMessage? MessageContentAsMarkdown { get; set; }
/// <summary>
/// 获取或设置小程序通知消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("miniprogram_notice")]
[System.Text.Json.Serialization.JsonPropertyName("miniprogram_notice")]
public Types.MiniProgramNoticeMessage? MessageContentForMiniProgramNotice { get; set; }
public Types.MiniProgramNoticeMessage? MessageContentAsMiniProgramNotice { get; set; }
/// <summary>
/// 获取或设置任务卡片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("interactive_taskcard")]
[System.Text.Json.Serialization.JsonPropertyName("interactive_taskcard")]
public Types.TaskCardMessage? MessageContentForTaskCard { get; set; }
public Types.TaskCardMessage? MessageContentAsTaskCard { get; set; }
/// <summary>
/// 获取或设置模板卡片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("template_card")]
[System.Text.Json.Serialization.JsonPropertyName("template_card")]
public Types.TemplateCardMessage? MessageContentForTemplateCard { get; set; }
public Types.TemplateCardMessage? MessageContentAsTemplateCard { get; set; }
/// <summary>
/// 获取或设置模板信息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("template_msg")]
[System.Text.Json.Serialization.JsonPropertyName("template_msg")]
public Types.TemplateMessage? MessageContentForTemplate { get; set; }
public Types.TemplateMessage? MessageContentAsTemplate { get; set; }
/// <summary>
/// 获取或设置应用 ID。如果不指定将使用构造 <see cref="WechatWorkClient"/> 时的 <see cref="WechatWorkClientOptions.AgentId"/> 参数。

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
@@ -93,14 +93,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("members")]
[System.Text.Json.Serialization.JsonPropertyName("members")]
public IList<ContactControlValueForUser>? ContactMembers { get; set; }
public IList<ContactControlValueAsUser>? ContactMembers { get; set; }
/// <summary>
/// 获取或设置 Contact 控件部门值。
/// </summary>
[Newtonsoft.Json.JsonProperty("departments")]
[System.Text.Json.Serialization.JsonPropertyName("departments")]
public IList<ContactControlValueForDepartment>? ContactDepartments { get; set; }
public IList<ContactControlValueAsDepartment>? ContactDepartments { get; set; }
/// <summary>
/// 获取或设置 File 控件值。
@@ -213,7 +213,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public IList<Types.Option> OptionList { get; set; } = new List<Types.Option>();
}
public class ContactControlValueForUser
public class ContactControlValueAsUser
{
/// <summary>
/// 获取或设置成员账号。
@@ -230,7 +230,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public string? Name { get; set; }
}
public class ContactControlValueForDepartment
public class ContactControlValueAsDepartment
{
/// <summary>
/// 获取或设置部门 ID。

View File

@@ -172,14 +172,14 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("members")]
[System.Text.Json.Serialization.JsonPropertyName("members")]
public ContactControlValueForUser[]? ContactMembers { get; set; }
public ContactControlValueAsUser[]? ContactMembers { get; set; }
/// <summary>
/// 获取或设置 Contact 控件部门值。
/// </summary>
[Newtonsoft.Json.JsonProperty("departments")]
[System.Text.Json.Serialization.JsonPropertyName("departments")]
public ContactControlValueForDepartment[]? ContactDepartments { get; set; }
public ContactControlValueAsDepartment[]? ContactDepartments { get; set; }
/// <summary>
/// 获取或设置 File 控件值。
@@ -300,7 +300,7 @@
public Types.Option[] OptionList { get; set; } = default!;
}
public class ContactControlValueForUser
public class ContactControlValueAsUser
{
/// <summary>
/// 获取或设置成员账号。
@@ -317,7 +317,7 @@
public string? Name { get; set; }
}
public class ContactControlValueForDepartment
public class ContactControlValueAsDepartment
{
/// <summary>
/// 获取或设置部门 ID。

View File

@@ -75,14 +75,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("members")]
[System.Text.Json.Serialization.JsonPropertyName("members")]
public ContactControlValueForUser[]? ContactMembers { get; set; }
public ContactControlValueAsUser[]? ContactMembers { get; set; }
/// <summary>
/// 获取或设置 Contact 控件部门值。
/// </summary>
[Newtonsoft.Json.JsonProperty("departments")]
[System.Text.Json.Serialization.JsonPropertyName("departments")]
public ContactControlValueForDepartment[]? ContactDepartments { get; set; }
public ContactControlValueAsDepartment[]? ContactDepartments { get; set; }
/// <summary>
/// 获取或设置 File 控件值。
@@ -197,11 +197,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public new Types.Option[] OptionList { get; set; } = default!;
}
public class ContactControlValueForUser : CgibinOAGetApprovalDetailResponse.Types.Approval.Types.ApplyData.Types.ApplyContent.Types.ContactControlValueForUser
public class ContactControlValueAsUser : CgibinOAGetApprovalDetailResponse.Types.Approval.Types.ApplyData.Types.ApplyContent.Types.ContactControlValueAsUser
{
}
public class ContactControlValueForDepartment : CgibinOAGetApprovalDetailResponse.Types.Approval.Types.ApplyData.Types.ApplyContent.Types.ContactControlValueForDepartment
public class ContactControlValueAsDepartment : CgibinOAGetApprovalDetailResponse.Types.Approval.Types.ApplyData.Types.ApplyContent.Types.ContactControlValueAsDepartment
{
}

View File

@@ -164,175 +164,175 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("text")]
[System.Text.Json.Serialization.JsonPropertyName("text")]
public Types.TextMessage? MessageContentForText { get; set; }
public Types.TextMessage? MessageContentAsText { get; set; }
/// <summary>
/// 获取或设置图片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image")]
[System.Text.Json.Serialization.JsonPropertyName("image")]
public Types.ImageMessage? MessageContentForImage { get; set; }
public Types.ImageMessage? MessageContentAsImage { get; set; }
/// <summary>
/// 获取或设置撤回消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("revoke")]
[System.Text.Json.Serialization.JsonPropertyName("revoke")]
public Types.RevokeMessage? MessageContentForRevoke { get; set; }
public Types.RevokeMessage? MessageContentAsRevoke { get; set; }
/// <summary>
/// 获取或设置同意/不同意消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("agree")]
[System.Text.Json.Serialization.JsonPropertyName("agree")]
public Types.AgreeMessage? MessageContentForAgree { get; set; }
public Types.AgreeMessage? MessageContentAsAgree { get; set; }
/// <summary>
/// 获取或设置语音消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voice")]
[System.Text.Json.Serialization.JsonPropertyName("voice")]
public Types.VoiceMessage? MessageContentForVoice { get; set; }
public Types.VoiceMessage? MessageContentAsVoice { get; set; }
/// <summary>
/// 获取或设置视频消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("video")]
[System.Text.Json.Serialization.JsonPropertyName("video")]
public Types.VideoMessage? MessageContentForVideo { get; set; }
public Types.VideoMessage? MessageContentAsVideo { get; set; }
/// <summary>
/// 获取或设置名片消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("card")]
[System.Text.Json.Serialization.JsonPropertyName("card")]
public Types.BusinessCardMessage? MessageContentForBusinessCard { get; set; }
public Types.BusinessCardMessage? MessageContentAsBusinessCard { get; set; }
/// <summary>
/// 获取或设置位置消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("location")]
[System.Text.Json.Serialization.JsonPropertyName("location")]
public Types.LocationMessage? MessageContentForLocation { get; set; }
public Types.LocationMessage? MessageContentAsLocation { get; set; }
/// <summary>
/// 获取或设置表情消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("emotion")]
[System.Text.Json.Serialization.JsonPropertyName("emotion")]
public Types.EmotionMessage? MessageContentForEmotion { get; set; }
public Types.EmotionMessage? MessageContentAsEmotion { get; set; }
/// <summary>
/// 获取或设置文件消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("file")]
[System.Text.Json.Serialization.JsonPropertyName("file")]
public Types.FileMessage? MessageContentForFile { get; set; }
public Types.FileMessage? MessageContentAsFile { get; set; }
/// <summary>
/// 获取或设置图文链接消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("link")]
[System.Text.Json.Serialization.JsonPropertyName("link")]
public Types.LinkMessage? MessageContentForLink { get; set; }
public Types.LinkMessage? MessageContentAsLink { get; set; }
/// <summary>
/// 获取或设置小程序消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("weapp")]
[System.Text.Json.Serialization.JsonPropertyName("weapp")]
public Types.MiniProgramMessage? MessageContentForMiniProgram { get; set; }
public Types.MiniProgramMessage? MessageContentAsMiniProgram { get; set; }
/// <summary>
/// 获取或设置会话记录消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("chatrecord")]
[System.Text.Json.Serialization.JsonPropertyName("chatrecord")]
public Types.ChatRecordMessage? MessageContentForChatRecord { get; set; }
public Types.ChatRecordMessage? MessageContentAsChatRecord { get; set; }
/// <summary>
/// 获取或设置待办消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("todo")]
[System.Text.Json.Serialization.JsonPropertyName("todo")]
public Types.TodoMessage? MessageContentForTodo { get; set; }
public Types.TodoMessage? MessageContentAsTodo { get; set; }
/// <summary>
/// 获取或设置投票消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("vote")]
[System.Text.Json.Serialization.JsonPropertyName("vote")]
public Types.VoteMessage? MessageContentForVote { get; set; }
public Types.VoteMessage? MessageContentAsVote { get; set; }
/// <summary>
/// 获取或设置填表消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("collect")]
[System.Text.Json.Serialization.JsonPropertyName("collect")]
public Types.CollectMessage? MessageContentForCollect { get; set; }
public Types.CollectMessage? MessageContentAsCollect { get; set; }
/// <summary>
/// 获取或设置红包消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("redpacket")]
[System.Text.Json.Serialization.JsonPropertyName("redpacket")]
public Types.RedPacketMessage? MessageContentForRedPacket { get; set; }
public Types.RedPacketMessage? MessageContentAsRedPacket { get; set; }
/// <summary>
/// 获取或设置会议消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("meeting")]
[System.Text.Json.Serialization.JsonPropertyName("meeting")]
public Types.MeetingMessage? MessageContentForMeeting { get; set; }
public Types.MeetingMessage? MessageContentAsMeeting { get; set; }
/// <summary>
/// 获取或设置在线文档消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("doc")]
[System.Text.Json.Serialization.JsonPropertyName("doc")]
public Types.DocumentMessage? MessageContentForDocument { get; set; }
public Types.DocumentMessage? MessageContentAsDocument { get; set; }
/// <summary>
/// 获取或设置 Markdown、图文消息或音视频通话信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("info")]
[System.Text.Json.Serialization.JsonPropertyName("info")]
public Types.InfoMessage? MessageContentForInfo { get; set; }
public Types.InfoMessage? MessageContentAsInfo { get; set; }
/// <summary>
/// 获取或设置日程消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("calendar")]
[System.Text.Json.Serialization.JsonPropertyName("calendar")]
public Types.CalendarMessage? MessageContentForCalendar { get; set; }
public Types.CalendarMessage? MessageContentAsCalendar { get; set; }
/// <summary>
/// 获取或设置混合消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("mixed")]
[System.Text.Json.Serialization.JsonPropertyName("mixed")]
public Types.MixedMessage? MessageContentForMixed { get; set; }
public Types.MixedMessage? MessageContentAsMixed { get; set; }
/// <summary>
/// 获取或设置会议音频存档消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("meeting_voice_call")]
[System.Text.Json.Serialization.JsonPropertyName("meeting_voice_call")]
public Types.MeetingVoiceCallMessage? MessageContentForMeetingVoiceCall { get; set; }
public Types.MeetingVoiceCallMessage? MessageContentAsMeetingVoiceCall { get; set; }
/// <summary>
/// 获取或设置 VoIP 音频存档消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("voip_doc_share")]
[System.Text.Json.Serialization.JsonPropertyName("voip_doc_share")]
public Types.VoIPDocumentShareMessage? MessageContentForVoIPDocumentShare { get; set; }
public Types.VoIPDocumentShareMessage? MessageContentAsVoIPDocumentShare { get; set; }
/// <summary>
/// 获取或设置视频号消息信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("sphfeed")]
[System.Text.Json.Serialization.JsonPropertyName("sphfeed")]
public Types.ChannelsFeedMessage? MessageContentForChannelsFeed { get; set; }
public Types.ChannelsFeedMessage? MessageContentAsChannelsFeed { get; set; }
/// <summary>
/// 获取或设置音频 ID。