mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 19:37:35 +08:00
feat(work): 随官方更新发送客服消息相关接口模型
This commit is contained in:
parent
f2f29777be
commit
04f67c1c8a
@ -240,6 +240,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||||
public string? Address { get; set; }
|
public string? Address { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class BusinessCardMessage
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置成员账号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("userid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||||
|
public string UserId { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -332,5 +342,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("location")]
|
[Newtonsoft.Json.JsonProperty("location")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||||
public Types.LocationMessage? MessageContentForLocation { get; set; }
|
public Types.LocationMessage? MessageContentForLocation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置名片消息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("business_card")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("business_card")]
|
||||||
|
public Types.BusinessCardMessage? MessageContentForBusinessCard { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,16 +37,6 @@
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BusinessCardMessage
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置名片的 UserId。
|
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonProperty("userid")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
|
||||||
public string UserId { get; set; } = default!;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class LinkMessage : CgibinKfSendMessageRequest.Types.LinkMessage
|
public class LinkMessage : CgibinKfSendMessageRequest.Types.LinkMessage
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -69,6 +59,10 @@
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class BusinessCardMessage : CgibinKfSendMessageRequest.Types.BusinessCardMessage
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public class EventMessage
|
public class EventMessage
|
||||||
{
|
{
|
||||||
public static class Types
|
public static class Types
|
||||||
@ -268,13 +262,6 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("file")]
|
[System.Text.Json.Serialization.JsonPropertyName("file")]
|
||||||
public Types.FileMessage? MessageContentForFile { get; set; }
|
public Types.FileMessage? MessageContentForFile { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置名片消息信息。
|
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonProperty("business_card")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("business_card")]
|
|
||||||
public Types.BusinessCardMessage? MessageContentForBusinessCard { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置图文消息信息。
|
/// 获取或设置图文消息信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -303,6 +290,13 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||||
public Types.LocationMessage? MessageContentForLocation { get; set; }
|
public Types.LocationMessage? MessageContentForLocation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置名片消息信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("business_card")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("business_card")]
|
||||||
|
public Types.BusinessCardMessage? MessageContentForBusinessCard { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置事件消息信息。
|
/// 获取或设置事件消息信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -70,5 +70,8 @@
|
|||||||
"address": "实例小区,不真实存在,经纬度无意义",
|
"address": "实例小区,不真实存在,经纬度无意义",
|
||||||
"latitude": 0,
|
"latitude": 0,
|
||||||
"longitude": 0
|
"longitude": 0
|
||||||
|
},
|
||||||
|
"business_card": {
|
||||||
|
"userid": "USERID"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user