fix(work): 修复创建或获取通讯录成员时的请求模型定义错误

This commit is contained in:
Fu Diwei
2021-09-06 18:08:21 +08:00
parent 38738e2b47
commit 79e7b0535f
5 changed files with 42 additions and 6 deletions

View File

@@ -154,6 +154,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("title")] [System.Text.Json.Serialization.JsonPropertyName("title")]
public string Title { get; set; } = string.Empty; public string Title { get; set; } = string.Empty;
} }
public class WechatChannels
{
/// <summary>
/// 获取或设置视频号名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string Nickname { get; set; } = string.Empty;
}
} }
/// <summary> /// <summary>
@@ -164,11 +174,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public string? CorpName { get; set; } public string? CorpName { get; set; }
/// <summary> /// <summary>
/// 获取或设置视频号名称 /// 获取或设置视频号信息
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("wechat_channels")] [Newtonsoft.Json.JsonProperty("wechat_channels")]
[System.Text.Json.Serialization.JsonPropertyName("wechat_channels")] [System.Text.Json.Serialization.JsonPropertyName("wechat_channels")]
public string? WechatChannels { get; set; } public Types.WechatChannels? WechatChannels { get; set; }
/// <summary> /// <summary>
/// 获取或设置对外自定义字段列表。 /// 获取或设置对外自定义字段列表。

View File

@@ -154,6 +154,23 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("title")] [System.Text.Json.Serialization.JsonPropertyName("title")]
public string Title { get; set; } = default!; public string Title { get; set; } = default!;
} }
public class WechatChannels
{
/// <summary>
/// 获取或设置对外展示视频号状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string? Nickname { get; set; }
/// <summary>
/// 获取或设置对外展示视频号状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
}
} }
/// <summary> /// <summary>
@@ -164,11 +181,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public string CorpName { get; set; } = default!; public string CorpName { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置视频号名称 /// 获取或设置视频号信息
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("wechat_channels")] [Newtonsoft.Json.JsonProperty("wechat_channels")]
[System.Text.Json.Serialization.JsonPropertyName("wechat_channels")] [System.Text.Json.Serialization.JsonPropertyName("wechat_channels")]
public string? WechatChannels { get; set; } public Types.WechatChannels? WechatChannels { get; set; }
/// <summary> /// <summary>
/// 获取或设置对外自定义字段列表。 /// 获取或设置对外自定义字段列表。

View File

@@ -36,7 +36,9 @@
"external_position": "高级产品经理", "external_position": "高级产品经理",
"external_profile": { "external_profile": {
"external_corp_name": "企业简称", "external_corp_name": "企业简称",
"wechat_channels": "视频号名称", "wechat_channels": {
"nickname": "视频号名称"
},
"external_attr": [ "external_attr": [
{ {
"type": 0, "type": 0,

View File

@@ -41,7 +41,10 @@
"external_position": "产品经理", "external_position": "产品经理",
"external_profile": { "external_profile": {
"external_corp_name": "企业简称", "external_corp_name": "企业简称",
"wechat_channels": "视频号名称", "wechat_channels": {
"nickname": "视频号名称",
"status": 1
},
"external_attr": [ "external_attr": [
{ {
"type": 0, "type": 0,

View File

@@ -44,6 +44,10 @@
"external_position": "产品经理", "external_position": "产品经理",
"external_profile": { "external_profile": {
"external_corp_name": "企业简称", "external_corp_name": "企业简称",
"wechat_channels": {
"nickname": "视频号名称",
"status": 1
},
"external_attr": [ "external_attr": [
{ {
"type": 0, "type": 0,