feat(work): 随官方更新更新模版卡片消息接口模型

This commit is contained in:
Fu Diwei
2025-10-13 20:54:11 +08:00
parent 8661caaaa9
commit e12d88454b
3 changed files with 18 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
@@ -28,6 +28,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("agentid")]
public int? AgentId { get; set; }
/// <summary>
/// 获取或设置原始卡片的任务 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("original_task_id")]
[System.Text.Json.Serialization.JsonPropertyName("original_task_id")]
public string? OriginalTaskId { get; set; }
/// <summary>
/// 获取或设置替换文案。
/// </summary>

View File

@@ -82,11 +82,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public string ResponseCode { get; set; } = string.Empty;
/// <summary>
/// 获取或设置原始卡片的任务 ID
/// 获取或设置是否开启 ID 转译
/// </summary>
[Newtonsoft.Json.JsonProperty("original_task_id")]
[System.Text.Json.Serialization.JsonPropertyName("original_task_id")]
public string? OriginalTaskId { get; set; }
[Newtonsoft.Json.JsonProperty("enable_id_trans")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("enable_id_trans")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsEnableIdTranslation { get; set; }
/// <summary>
/// 获取或设置按钮信息。

View File

@@ -5,11 +5,11 @@
"atall": 0,
"agentid": 1,
"response_code": "response_code",
"original_task_id": "original_task_id",
"button": {
"task_id": "taskid",
"replace_name": "replace_name"
},
"enable_id_trans": 1,
"template_card": {
"card_type": "text_notice",
"source": {