mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 09:54:44 +08:00
feat(work): 随官方更新更新模版卡片消息接口模型
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
/// 获取或设置按钮信息。
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"userids": ["userid1", "userid2"],
|
||||
"partyids": [2, 3],
|
||||
"tagids": [44, 55],
|
||||
"userids": [ "userid1", "userid2" ],
|
||||
"partyids": [ 2, 3 ],
|
||||
"tagids": [ 44, 55 ],
|
||||
"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": {
|
||||
|
||||
Reference in New Issue
Block a user