feat(work): 随官方更新发送应用消息接口模型

This commit is contained in:
fudiwei 2022-12-05 18:31:38 +08:00
parent 639f39e4f1
commit b621dc0771

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
@ -618,12 +618,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public class Button
{
/// <summary>
/// 获取或设置按钮点击类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int? Type { get; set; }
/// <summary>
/// 获取或设置按钮 Key 值。
/// </summary>
[Newtonsoft.Json.JsonProperty("key")]
[System.Text.Json.Serialization.JsonPropertyName("key")]
public string Key { get; set; } = string.Empty;
public string? Key { get; set; }
/// <summary>
/// 获取或设置按钮文案。
@ -638,6 +645,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("style")]
[System.Text.Json.Serialization.JsonPropertyName("style")]
public int? Style { get; set; }
/// <summary>
/// 获取或设置按钮点击跳转 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("url")]
[System.Text.Json.Serialization.JsonPropertyName("url")]
public string? Url { get; set; }
}
public class Checkbox